Support » Plugin: YITH WooCommerce Product Add-Ons » action or hook to display add-on options?

  • Hi,

    I’m curious what method I should use in order to display the options for the products in a custom page (where currently none of the ‘add-ons’ options are working or displaying);

    I’ve tried using something along the lines of:
    add_action( 'woocommerce_before_add_to_cart_button', array( $this, 'show_product_options' ), 15 );

    But this doesn’t seem to have any effect. Listing a number of products in a page (not the single product page) and they are “simple” products (not product variations — yet)

    However, using the WooCommerce Product Add-Ons plugin, I’ve managed to get the options for simply products to display using
    add_action( 'woocommerce_before_add_to_cart_button', array($GLOBALS['Product_Addon_Display'], 'display'), 10);

    But I’d rather use your plugin as it includes support for product variations, unlike the WooCommerce one, but need to ensure it will work with my custom page before purchasing.

    Any help is appreciated!

    • This topic was modified 1 year, 5 months ago by  ouija.
    • This topic was modified 1 year, 5 months ago by  ouija.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES


    Hi there,

    Thank you for contacting us.

    Can you show me the page where you want display them?
    The add-ons are always related to a product.

    Best regards,

    Apologies, but the site is currently on a development server inaccessible to the public, however I’ve managed to get around this by overriding the ‘add to cart’ button on these product archive pages, which then forward to the single product page and display all the available add on options and such.

    I have a feeling that the plugin may not work with the ajax add to cart method from pages other than the single product page, but I could be wrong?

    Anyways, I’ve come up with a somewhat decent solution to get around this for now. Thanks for your response!

    • This reply was modified 1 year, 5 months ago by  ouija.
    Plugin Author YITHEMES


    You’re welcome! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘action or hook to display add-on options?’ is closed to new replies.