This topic has 7 replies, 2 voices, and was last updated 6 years, 9 months ago ago by Rose Tyler
Hi,
I need to win distance on the single product page. The customer should see the ‘Buy product’ button immediately on first sight. But this is not the case for my single product page (because of the short description).
First, the middle section of the single product needs to be moved up.
Second, the breadcrumb with the title of the product should be made smaller.
Please see these before and after picture.
Thank you.
For login codes please see Private Content.
Actually, even better would be either:
1) to put the ‘Buy’-button above the short description product information (but under the price). Is this possible?
Please see these before and after image.
Or, if this is not possible,
2) to put the ‘Buy’-button next to the price. Like on this website.
Is this possible? Thank you
Hello,
1) to put the ‘Buy’-button above the short description product information (but under the price). Is this possible?
2) to put the ‘Buy’-button next to the price. Like on this website.
– this is possible, but requests customization in file
child-theme/functions.php
add_action('after_setup_theme', 'et_replace_cart');
function et_replace_cart () {
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30);
add_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 10);
}
Regards
Can I please ask you to put the‘Buy’-button above the short description product information (but under the price). So that it becomes like this image.
I do not know how to put the code in child theme
Hello,
I’ve added the code in child-theme/functions.php file. Please check.
Regards
Thank you
You’re welcome!
Regards
The issue related to '‘Win distance’' has been successfully resolved, and the topic is now closed for further responses