Custom widget in single product page - by a4ashan

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

  • Avatar: a4ashan
    a4ashan
    Participant
    October 26, 2021 at 11:56

    I’m based in UAE and I’m using a local payment gateway in my website. They provide a widget that can be displayed in the single product page. In the Payment gateway settings, under widget location, if I mentioned .price , the widget will be displayed in woocommerce single product page. Since Xstore single product page is a custom made page I need to know what should I mentioned in the widget settings to display it after the product price in single product page. Please refer to the screenshot links.

    Payment gateway settings page – https://ibb.co/QdjjDcb
    My Single product page – https://ibb.co/FskbMNd
    Competitor single page – https://ibb.co/VVYM530

    13 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 26, 2021 at 13:56

    Hello,

    Provide temporary wp-admin access, so we can take a closer look.
    Please note that we do not give a guaranty for full theme compatibility with all existing 3rd party plugins.

    Regards

    Avatar: a4ashan
    a4ashan
    Participant
    October 26, 2021 at 14:02

    Make sense. but I believe this is a basic feature that you may fix minimum efforts. Please have a look in to it.

    Basically this works well in Woocommerce product page. When u specify the location as ‘.price’. But in xstore product page what is equal to ‘.price’.

    FYI – in my previous theme I had to mention ‘.product-price’ to work this out.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 26, 2021 at 14:41

    Hello,

    What is the name of the plugin you are using and where we can find settings of it?

    Regards

    Avatar: a4ashan
    a4ashan
    Participant
    October 26, 2021 at 14:48

    Plugin is called Spotii.

    Its under woocommerce, payment gateways.

    Please refer to the screen shots shared in post.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 26, 2021 at 16:00

    Hello,

    The plugin add its own code – https://prnt.sc/1xdxl8d , but we do not have such action when Single Product Builder is activated, so we added custom code via snippet plugin, that shows the desired content on the single product page via another action https://prnt.sc/1xdxsic http://prntscr.com/1xdxzbi
    Clear cache and check now.

    Regards

    Avatar: a4ashan
    a4ashan
    Participant
    October 26, 2021 at 16:57

    Thank you so much. works like a charm.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 26, 2021 at 17:20

    Hello,

    You are welcome.

    Regards

    Avatar: a4ashan
    a4ashan
    Participant
    December 7, 2021 at 09:59

    Hi Rose,

    The workaround you provided worked very well till the last theme update (v.8.0.10).

    Kindly look in to this.

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 7, 2021 at 14:17

    Hello,

    Seems that you removed snippet that we added https://prnt.sc/225rvgi
    I have added it again.

    Regards

    Avatar: a4ashan
    a4ashan
    Participant
    January 12, 2022 at 14:54

    Hello Olga,

    I need to display this snippet content category wise. How can we do it? Or can we restrict this from some certain categories?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 13, 2022 at 09:05

    Hello,

    Does that plugin has such options and it works with the default theme?

    Regards

    Avatar: a4ashan
    a4ashan
    Participant
    January 13, 2022 at 11:56

    No there is no option in the plugin. Is it possible in the Snippets?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 13, 2022 at 12:11

    Hello,

    Contact plugin support about this because we don’t have such option in our theme.

    Regards

  • Viewing 14 results - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.Log in/Sign up

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