Skip Navigation

[Resolved] Embedding short code onto product page

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 2 voices.

Last updated by Minesh 5 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#1265837

Hello,

We would like to use this service for ratings on the site
hidden link

The plugin has been installed and set up, but due to the nature of TS I believe we will need to add a short code to a product template or view so that we can see search results appear.

Here is the info on short codes.
hidden link

Can you tell me where and what I'd need to edit to add the short code and therefore reviews to the product page?

Thanks

#1266481

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I would like to know here that do you want to customize the single product page? If yes:

Please check the following Doc - you should install the add on plugin "WooCommrce Views":
=> https://toolset.com/learn/create-an-ecommerce-wordpress-site/single-product/
=> https://toolset.com/documentation/user-guides/getting-started-woocommerce-views/

In addition to this, I strongly recommend you to use our free test platform discover-wp.com and create a test site using any of our available reference sites and try to play with it and learn how you can create content templates, views, custom searches etc..etc.

More info:
=> https://toolset.com/faq/how-and-why-to-create-a-test-site-in-discover-wp/
=> https://toolset.com/documentation/user-guides/using-toolset-with-wpbakery-page-builder/creating-templates-for-woocommerce-single-product-pages/

#1267113

Thanks, but I think we need your support further.

We already have views on the site, but I'm unsure where to add the short code to the single product.

Could you add the code for me and explain what you did?

Thanks so much

#1267693

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

To run the shortcode I suggest you to create a content template and assign it to product post type and within the content template try to add your required shortcode - for example:

[Woo_stamped_io type="widget"]
#1267749

Could I get you to do this form me please, as I feel thats the best option to start with.

Thanks

#1267885

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Sorry but I do not get your requirement yet. What I understand is you want to run a shortcode that belongs to another plugin on product page. So I shared the solution that you should create a content template to display your product and add the desired shortcode there.

Please check the following Doc - you should install the add on plugin "WooCommrce Views":
=> https://toolset.com/learn/create-an-ecommerce-wordpress-site/single-product/
=> https://toolset.com/documentation/user-guides/getting-started-woocommerce-views/

#1268473

I already said we have woocommerce views installed and that for the next step yes I needed your help to add the short cut to the product template.

If you're unable to help, please pass the ticket to someone that can.

Thank you.

#1269111

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Sorry, but setting up sites for clients is outside of our support policy. I can tell you how to do it, pointing you to the documentation or outlining the steps here if you cannot understand the documentation, but you will need to create the content template and insert the shortcodes from the 3rd-party plugin.

I already shared how you can add the shortcode to the content template:
https://toolset.com/forums/topic/embedding-short-code-onto-product-page/#post-1267693

I would like like to know whether you actually want a custom template for products
OR
You want to use the theme/WC template and just wants to add these reviews.

You will have two choices:
- One is to edit the product PHP template and insert the reviews as it describes in the plugin documentation.
- If you don't want to do that, then he will have to recreate the entire product template using a Views Content Template (or Layouts) just to be able to add such a shortcode to it, which sounds like a lot more work.