How to Insert Extra Product Options in Single Product Layout

We use a plugin called WooCommerce Extra Product Options and it inserts its options box onto the single product page. In the settings, you can select where it’s placed (eg. Before Add to Cart button, After Product, After Product Image, etc.). Without using a custom single product layout, it works fine.

But when we create out own custom single product layout in pro, it doesn’t show up. Certain placement options (eg. After Product) show a giant amount of white space where I presume the Extra Options box should be.

The plugin supports custom hooks for placement but I don’t know how to do this with Pro. It does not to my knowledge have a shortcode you can just pop in. Can you tell me the best way to get this to show up in Pro with a custom layout?

Page w/Pro: https://sandwichspotssf.com/product/build-your-own-sandwich/

Proper Page w/Other Theme: https://thesandwichspotcafe.com/product/build-your-own-sandwich/

Hey Greg,

Try using the Add to Cart Form element as it just outputs the cart form part of WooCommerce. See if the 3rd party plugin will hook to it.

image

Just note I don’t guarantee that it’ll work since the custom WooCommerce archive and single pages don’t have the hooks a standard WC PHP templates has. If WooCommerce Elements don’t output 3rd party hooks, you cannot have a custom WC single layout or template unless you do custom coding which is beyond the scope of our theme support.

Hope that explains it and thank you for understanding.

That worked. Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.