• Hi, I wanted some help, i want to use the plugin in a custom integration and im looking for a hook where i can add the product id and get all options associated with that product (also please let me know if the same hook works in the free and paid version because im thinking about getting the paid version).

    Thank you in advance

Viewing 1 replies (of 1 total)
  • Plugin Support Vanesa

    (@vanesarodriguez)

    Hello there!

    You can use the following code to get the option blocks:

    $blocks = YITH_WAPO_DB()->yith_wapo_get_blocks_by_product( $_product_id, $_variation_id, 'yes' );

    This should work for both versions.

    Let us know if you could achieve what you want.

Viewing 1 replies (of 1 total)

The topic ‘Get product options’ is closed to new replies.