• Resolved vinyllicker

    (@vinyllicker)


    Hi, love this plugin, great work and lots of features in the free version. I’d like to customise it very slightly by linking the “continue shopping’ button to the shop front directly. I’ve tried to do this using a jquery href rewrite for the button class or adding a jquery onclick event to the class but it doesn’t work. Are you able to suggest any options? Cheers

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter vinyllicker

    (@vinyllicker)

    Worked it out. For anybody else you can use this jquery to add a custom url to the continue shopping button

    jQuery(‘.xoo-wsc-modal’).on(‘click’, ‘.xoo-wsc-ft-btn-continue’, function(e){
    window.location = “YOUR URL HERE”;
    });

    Add this to your footer to ease page loading times.

    Can you resolve this? Here it didn′t work.

    I put in footer.php

    <script>
    jQuery(‘.xoo-wsc-modal’).on(‘click’, ‘.xoo-wsc-ft-btn-continue’, function(e){
    window.location = “MY URL”;
    });
    </script>

    • This reply was modified 4 years, 5 months ago by broberti.
    • This reply was modified 4 years, 5 months ago by broberti.
    • This reply was modified 4 years, 5 months ago by broberti.
    Thread Starter vinyllicker

    (@vinyllicker)

    Hi

    This script works on my site however it is not placed in the footer.php file. It is inside the footer’s custom html option within my theme options (I use Valenti 5 theme). Can you try that instead?

    <script>
    jQuery(‘.xoo-wsc-modal’).on(‘click’, ‘.xoo-wsc-ft-btn-continue’, function(e){
    window.location = “url here”;
    });
    </script>

    Are you sure it has been inserted inside the php properly so it runs as php requires?
    Also check the class names on the modal window and the button, make sure they are correct for your site, they may be different in some way.

    If you are still having issues, add your site url in a response, I’ll have a look for you.

    I′ve used plugin Insert headers and footers and place the script on footer. Pls, look the site – https://ateliersoave.com/

    Thread Starter vinyllicker

    (@vinyllicker)

    Hi

    I’ve taken a look at your site and you do not have a side cart running. Can you please explain what you are attempting to achieve? If you go to my site, add a product from the shop, you will get a side bar pop out showing your current cart info. You do not have this and that is what this script is built for. It changes the continue shopping button on the pop out window. What did you think the script did?

    https://fresh927.com.au/shop/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sending ‘continue shopping’ button to a custom url’ is closed to new replies.