Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi team
I am using the Prestige theme for my website.
When the user sees a product and clicks on Quick buy (The icon with a plus sign), I want to redirect the user to an external link instead of pulling up the cart and adding the product there.
Can you help me understand where I can handle this onclick event and redirect to the site of my choice.
Website: https://rahalooms.com/
Thanks in advance!
Hi,
Need to Modify the Quick Buy Event Handler
Code example
$('.quick-buy-button').on('click', function(e) {
e.preventDefault(); // Prevent the default action
window.location.href = 'https://example.com'; // Replace with your external link
});
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024