In Woocommerce, is there a way to work without CART, in single shop page hide quantities and changing ADD TO CART button by GO TO CHECKOUT ?
i also found this
add_filter ('add_to_cart_redirect', 'redirect_to_checkout');
function redirect_to_checkout() {
return WC()->cart->get_checkout_url();
}
Try this plugin, I think this should work for you... https://de.wordpress.org/plugins/woocommerce-direct-checkout/
Below is an alternative that will delete the cart button. However, it will also remove the checkout system.
It is useful for creating a products catalog with WooCommerce.
http://chrislema.com/woocommerce-product-page-without-shopping-cart/
Related
I created a page using a combination of Woocommerce and Advanced Custom Fields ACF to achieve a product list with a very complex layout. Products might appear more than once but can only be bought once and other weird stuff. The products are pulled in using ACF post objects within a repeater field.
I also managed to display an add to cart button for each product using the [products] shortcode provided by woocommerce.
What I would love to have now is a an "Add all products to cart"-button to buy all products on this page instead of adding them to the cart individually.
I already tested woocommerce grouped and bundled products, but I need much more flexibility in terms of layout. The hooks provided to adjust the layout are not flexible enough.
Any help is appreciated! Thanks!
You could use some jQuery. Have a custom button that when clicked it triggers the 'add to cart button' on all the products?
Something like
$('.addall').on('click', function() {
$('.product').each(function(){
$(".addToCart", this).trigger( "click" );
});
});
Simple fiddle to show trigger working.
I've been looking for a working solution to either hide or delete the "Ship to a different address?" checkbox in Woocommerce checkout page in Wordpress, but I haven't figured out how to do so, so far.
Is there any way to do this?
By the way, I use Sahifa theme.
Any help is greatly appreciated.
There is an option that allows you to remove this checkbox along with shipping section. Go to
Administration->Woocommerce->Settings->Shipping->Shipping Options
and find Shipping Destination, and make sure that Force shipping to the customer billing address checkbox is checked.
In case someone wants to remove it using code, it is doable by adding this filter to your functions.php
add_filter( 'woocommerce_cart_needs_shipping_address', '__return_false');
Hope this helps.
Simply add this code to functions.php file
add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );
I use woocommerce and instead of marking my product page within the woocommerce>config>products section I use a woocommerce shortcode to insert my products into a page. Now whenever I try to use any sort of filter plugin it doesn't work. Is there a way to make filters work with this configuration?
thanks,
Amir
I am using woocommerce for one of my websites.Now i want to add an optional (checkbox) 1$ product at the checkout page. If checked ,1$ will be added to the total payment or else as it is.
Do i need to use some extra add-on plugin for this functionality ?.
Any advice will be highly helpful.
Thank you
I've been looking for this too. An optional addons to the main product, all that I've found is official woocommerce plugin (Woocommerce Product Addons) http://www.woothemes.com/products/product-add-ons/
I have a question regarding WooCommerce.
In the last step of the checkout, I want to add some meta information to the product. Basically, at the end of the checkout process the user can choose to offer the product to a friend. He will enter fields such as friend's email, name...
I want to be able to retrieve this information in the admin panel when I click on the details of the order, in the "product" block.
... And I have to idea how to do that. I found some information on how to add custom fields to the order, but how do I add information to the product in the order and not the order itself?
Thank you. I'm in a bit of a blur right now.
Mike Jolley posted the complete code you can insert in your theme's functions.php
I recently used it and works like a charm.
https://gist.github.com/mikejolley/1604009
I think the Woothemes Product Add-ons plugin may be exactly what you are looking for. You can use it to add custom fields of nearly any type to your individual products. It will display them on the cart page and save them in your admin.
Woocommerce allow some hooks and filters to add fields on checkout pag, but yes it requires strong php knowleget. However there is plugin available here: Checkout option manager plugin