Win distance - by ycs7a - on WordPress WooCommerce support

This topic has 7 replies, 2 voices, and was last updated 6 years, 9 months ago ago by Rose Tyler

  • Avatar: ycs7a
    ycs7a
    Participant
    February 3, 2018 at 21:23

    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.

    Please, contact administrator
    for this information.
    6 Answers
    Avatar: ycs7a
    ycs7a
    Participant
    February 4, 2018 at 17:21

    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

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 5, 2018 at 13:33

    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

    Avatar: ycs7a
    ycs7a
    Participant
    February 5, 2018 at 20:58

    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

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 6, 2018 at 09:11

    Hello,

    I’ve added the code in child-theme/functions.php file. Please check.

    Regards

    Avatar: ycs7a
    ycs7a
    Participant
    February 6, 2018 at 21:25

    Thank you

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 7, 2018 at 08:19

    You’re welcome!

    Regards

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Win distance’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.