Shortcode from Plugin to add on Single Product Page

This topic has 23 replies, 3 voices, and was last updated 3 years, 10 months ago ago by Olga Barlow

  • Avatar: Jef
    filmguerilla
    Participant
    May 31, 2020 at 15:31

    Hi guys, just curious what to use to add a shortcode to show a plugin button on Single product page? Adding Request a Quote plugin for my client product page but i can’t seem to make it work. Testing it before buying. Wanna implement first before deciding .

    Thanks

    22 Answers
    Avatar: Jef
    filmguerilla
    Participant
    May 31, 2020 at 15:39

    Just read the plugin info. I don’t need to add the shortcodes on single page but when the plugin is activated the add to quote button should be automatically added on the single product page but it doesn’t work. Anyone can help?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 31, 2020 at 15:52

    Hello,

    Provide FTP access, we will check what can be done to help you.
    Please note that we do not give a guaranty for full theme compatibility with all existing 3rd party plugins.

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    May 31, 2020 at 16:37

    Oh no. I hope it gets done. I need this feature for my client..
    The plugin is YITH WooCommerce Request a Quote

    Testing this one first if it’s what we need.

    FTP info in private content.

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 31, 2020 at 18:24

    Hello,

    You provided access to empty directory http://prntscr.com/sr777r
    Please, change the destination folder of the FTP user, we need access to your WP installation.

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    June 2, 2020 at 01:32

    That is weird. You should be able to access the site. Please try this again i made a new one

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 3, 2020 at 13:00

    Hello,

    Thank you. I have passed your issue to our developers. I’ll inform you once they fix the problem.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 5, 2020 at 14:10

    Hello,

    We checked the issue and unfortunately plugin that you use has functions that can’t be overwritten in child theme to show the button with the single product builder. Also, we found that there is shortcode to display the quote button https://docs.yithemes.com/yith-woocommerce-request-a-quote/premium-version-settings/shortcodes/add-to-quote-button/ that could be used in the CUstom HTML element but seems it’s available for the pro version only. So, use pre-created layouts of you need that plugin and customize default product layout using child theme and WooCommerce hooks to change the position of some elements https://businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    June 7, 2020 at 11:58

    There is another plugin that i wanna check.. Can you check if this will work on xstore? https://woocommerce.com/products/request-a-quote-plugin-for-woocommerce/

    We really need this featre on our website. 🙁

    Avatar: Jef
    filmguerilla
    Participant
    June 8, 2020 at 03:04

    Hello guys, so using the custom single page builder would not work with either the 2 plugins that we need? So, this problem is from the theme right?

    The custom HTML won’t work for me i need to set each shortcodes to each products. We have 400+ products..

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 8, 2020 at 13:30

    Hello,

    Third-party plugins like that use the WooCommerce hooks https://businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/ to show their custom content. Single product builder does not include these hooks because you change the position of the elements and at this moment we did not find the way to keep hooks and allow the rebuilding of the single product page structure. So, in case you need third-party plugins then use the pre-created structure of the single product and change the position of the elements using child theme and WooCommerce hooks, not the builder elements.

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    June 10, 2020 at 06:50

    Hi Olga,

    So disabling the builder will have my single product page back to default?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 10, 2020 at 12:03

    Hello,

    Yes, you’ll get single product layout according to your chosen type http://prntscr.com/sx5b5v

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    June 11, 2020 at 04:12

    So tha tabs and other elements which i built will be gone? http://prntscr.com/sxlyqw

    Avatar: Jef
    filmguerilla
    Participant
    June 11, 2020 at 12:37

    Hello guys.. i disable the single product page builder. Is it possible to change Additional INformation table to a custom tab like the one i had on the single page builder?

    http://prntscr.com/sxum6x

    I only can make 1 custom tab on that. 🙁

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 11, 2020 at 13:39

    Hello,

    1) Tabs could be moved above the product title using WooCommerce actions

    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );
    add_action( 'woocommerce_single_product_summary', 'woocommerce_output_product_data_tabs', 1 );

    I have added them to your child theme functions.php. Check your single product now.

    2) You can use either custom tab of the product http://prntscr.com/sxvyjq or WooCommerce snippet https://docs.woocommerce.com/document/editing-product-data-tabs/#section-5

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    June 11, 2020 at 14:11

    Yay thank you. Though the custom tab i need was HOW TO ORDER> Should i put it on each product? We have hundreds already waaaahhh

    Avatar: Jef
    filmguerilla
    Participant
    June 11, 2020 at 14:24

    opps guys. i’ll check again with the single page builder we have on xstore. maybe the plugin maker can make it work with the theme. if not ill revert it to normal single page layout. ill keep you guys updated.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 11, 2020 at 14:36

    Hello,

    If you need the same custom tab for all the products then use WooCommerce snippet WooCommerce snippet https://docs.woocommerce.com/document/editing-product-data-tabs/#section-5

    Take your time. Contact us if you need any other help.

    Regards

    Avatar: Jef
    filmguerilla
    Participant
    June 11, 2020 at 14:42

    YAY!!! the premium plugin works on single product page builder!!!!

  • 1 2
    Viewing 20 results - 1 through 20 (of 23 total)

The issue related to '‘Shortcode from Plugin to add on Single Product Page’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.