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
});
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025