Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Is it possible to change the price of a product when it’s added to the cart by using the shopify API in the liquid code? we have some customers that have a custom meta field set. If that is set then I can display a different price that is stored in a custom product meta field. But I can’t make the check out process use that price.
I’ve tried using discounts but there are problems using that method.
so I’m hoping to be able to make a custom API call to add the product with a different price.
Liquid is a front end templating language, so you could emulate a different price, but it doesn't change the price. Looks like you've already figured that part out. So to change the price based on a metafield you'd be looking at things like Functions or the Cart Transform API
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024