Hello, I want to change the prices in my bundles on the URL: Controllable LED Curtain – TrendBlend. I’m getting the CORRECT debug messages, but the prices do not update. I’m not very fimiliar with coding so I don’t know what I’m doing wrong. Everything shows correctly in console, but the changes are not actually made on the site.
So my idea of changing the prices is, I want to display the price per item in the bundle, instead of the price of the actual offer. So let’s say the offer is BUY 2, get 10% off, I want to display the price 37,79 instead of the total (2x37,79)
Offer containers found: 3
controllable-led-curtain?variant=47615696077139:5168 Container 2: New original price: €41,99
controllable-led-curtain?variant=47615696077139:5169 Container 2: New discounted price: €37,79
controllable-led-curtain?variant=47615696077139:5168 Container 3: New original price: €41,99
controllable-led-curtain?variant=47615696077139:5169 Container 3: New discounted price: €35,69
This is the code I used: Oct 18 7:49 PM - Codeshare
Hello,
It appears that you’re close to getting what you want since your console has the right prices; however, here are one or two things to check within Shopify, which may assist you:
Shopify Caching: Sometimes, updates are not seen immediately because Shopify or even your browser stores older data. Try to do an explicit refresh of your browser cache or do the check in an incognito window. Shopify itself may have caching going on, too, which would delay it in refreshing information.
Placement of code: This added code is correctly placed, usually in an appropriate section in your theme files like theme.js or theme.liquid. Sometimes in Shopify templates, there’s certain specific sections where your code must be placed for effective functionality.
JavaScript Execution Timing: Maybe your script runs at the wrong time. Ensure that your JavaScript code runs after the page has loaded. You can do this by wrapping your code in a $(document).ready() function or Shopify’s Shopify.onPageLoad.
Bundle Pricing Logic: Since you want to display the price per item in a bundle, Shopify might need more tweaking. You may want to check out apps that handle bundle pricing more cohesively if the custom code becomes too tricky.
If you would like, please share the part of your code, and I can further help with it for the prices to update on the site correctly.