Product page – how to set it up? - by Chris

This topic has 3 replies, 2 voices, and was last updated 3 years, 2 months ago ago by Chris

  • Avatar: Chris
    Chris
    Participant
    October 11, 2021 at 17:40

    We’ve added a plugin to calculate loyalty points. Unfortunately we can’t set one item on the product page. It does not appear in the customization options of this page.
    How can we do it differently?
    An example is attached.

    https://prnt.sc/1vqbj1n

    Thank you.

    2 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 12, 2021 at 14:41

    Hello,

    Probably your plugin uses some of the default WooCommerce hooks that are replaced if you use the single product builder.
    Ask plugin authors what function do they use to display points?
    Use XStore hook in child theme functions.php, for example etheme_woocommerce_template_single_add_to_cart to show it before or after the add to cart form, for example:
    add_action('etheme_woocommerce_template_single_add_to_cart', 'custom_function_name', 5);

    Regards

    Avatar: Chris
    Chris
    Participant
    October 12, 2021 at 14:53

    Thank you 🙂

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

The issue related to '‘Product page – how to set it up?’' has been successfully resolved, and the topic is now closed for further responses

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