Disappearing price-additions (Liquid)

Solved
New Member
2 0 0

Dear Community,

I struggle with finding a solution to this problem:

I have added a text to the regular price of all products:

1x.png

which looks like this in product-price.liquid:

 

4x.png

so I just added "<a style="color:#ffffff; font-size:80%;">inkl. MwSt.</a>"  after the price code.

 

The problem is, whenever I switch the variants:

2x.png

3x.png

...that text addition disappears.

 

Any ideas, what to do here?

 

Thanks in advance!

0 Likes
Highlighted

Success.

Astronaut
1116 150 287

Instead of putting it in all those spots, try putting it in product-template.liquid in your sections folder next to the include:

 

{% include 'product-price' %} <a style="color:#ffffff; font-size:80%;">inkl. MwSt.</a>

 

I suspect that javascript is replacing it in the other spot, but I may be wrong.

If my solution helped you, please like and accept as solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
0 Likes
Highlighted
New Member
2 0 0

Nice, that pretty much helped me with the text staying in position.

Unfortunately, I couldn't handle to make the text be aligned in the same line as the price, as it now stands below it, but at least the problem is solved! Thank you!

0 Likes