Hi there,
I used a code that also shows the weight for each item.
→ Shipping weight: {{ product.selected_or_first_available_variant.weight }}g
Unfortunately, this does not work for variation items. The selection is not accepted and only the weight of the first item is displayed.
How can I set it up so that the appropriate weight is also adopted for each new selection?
Question 2: How can I display an asterisk * on all my prices and the € sign after the price?
→ 9.99€*
The asterisk * next to the price is stored, but only for articles without further selection.
Unfortunately, this does not work for variation items. As soon as you select a different size, the * is gone again.
How can this be solved?
Theme: DUBUT
Best regards
Daniel
Hi @Aqua-Birne ,
It also needs to be changed at theme.js file. Because when you change variants, it will execute JS and you need to change at js file.
Go to theme.js file, find ‘_liveRegionText: function(variant)’ and add code here:
Both questions will be coded here if you have JS experience.
This is a complex request and needs to be debugged directly on site, so if you are unsure, hire an expert for it, as it will be difficult for someone else to guide you in more detail with the code.
Hope it helps!
1 Like
Hi @Aqua-Birne ,
If it helped you solve your issue, please mark it as a solution. Thank you and good luck.
Hi there,
I’ve tried 2 options, but both don’t work.
What is the correct option?
Best regards
Daniel
Hi @Aqua-Birne ,
Don’t have to deal with this, it needs to be added by Javascript code, not liquid.
Therefore, you need to hire an expert if you have no experience in Javascript code.
Hope it is clear to you.