Way to add fields on non-product page
-
I have a template which pulls in products in a custom landing page.
I can pull in the product data no problem from Woocommerce products: product name, category, price, descriptions, custom fields (meta) etc. Everything except the Yith Add-on fields.
Tried bringing code in from ‘yith-wapo-group-container.php’ file but it didn’t work. Also tried using the shortcode you provide but I get a message ‘This is not a product page!’, but how can I bring in the product add-ons in the loop on a non-product page.
I’m just using the normal:
echo $this->get_price_html( $product );
…for price etc, so $product is working fine just not with Yith Add-ons.Is there any way I can bring in the options into a product loop, but not on a product page?
Is there any way I can set a variable before the shortcode to allow the shortcode to work properly?
- The topic ‘Way to add fields on non-product page’ is closed to new replies.