-
AuthorPosts
-
February 15, 2018 at 12:06 pm #912719
I want to ad a text before the woocommerce price.
Something like “daily rent price”I have allready used the price suffix option in woocommerce for tax price after the amount.
How can i ad a text before the pricing field in css?.
February 15, 2018 at 1:12 pm #912739Hey Gilbert,
Try this code in the General Styling > Quick CSS field:.woocommerce-Price-amount.amount:before { content: "Daily Rent Price\00a0\00a0"; }
Best regards,
MikeFebruary 15, 2018 at 2:16 pm #912768Thanxs, that works!
But now the price suffix (with tax) also does this.
How can i hide it there? Or have the “rentprice” only on the price excl. tax.
See https://www.celebrationevents.nl/product/allen-heath-sq5-digitale-mixer/Regards
Gilbert
February 15, 2018 at 2:49 pm #912774Hi,
Please try this code instead:.woocommerce-Price-amount.amount:before { content: "Daily Rent Price\00a0\00a0"; } .woocommerce-price-suffix .woocommerce-Price-amount.amount:before { content: ""; }
Best regards,
MikeFebruary 15, 2018 at 3:00 pm #912778That works!
Still a final issue with product variations
see :https://www.celebrationevents.nl/product/podiumafrok-zwart-met-klittenband/
Is it possible to hide the secons “huurprijs” ??Thanxs once again.
gilbertFebruary 15, 2018 at 3:36 pm #912786Hi,
It looks like “huurprijs” is the word you used in the code above, can you explain if you want to hide only on some pages and which one of them as the word “huurprijs” is on the page many times.
Also perhaps if you could explain if and when the code is working correctly and when you want to hide it so we can adjust it better. Thank you.Best regards,
MikeFebruary 16, 2018 at 9:41 am #913182Hi Mike,
Your code is working fine, except on the woocommerce grouped products.
see https://www.celebrationevents.nl/product/insteekpoten-podium/The price range the varies between the lowest and hist price
The word “”Huurprijs” should be mentioned once in this pricerange like “Huurprijs: € 0.35 – € 0.75”
instead of “Huurprijs: € 0.35 – Huurprijs: € 0.75”I hope this answers your question.
Gilbert
February 16, 2018 at 11:52 am #913221Hi,
Please try adding this for the grouped products#top .product-type-grouped .woocommerce-Price-amount.amount:nth-child(2):before { content: ""; }
Best regards,
MikeFebruary 16, 2018 at 2:05 pm #913262Hello Mike,
YOU ARE GREAT…MANY MANY THANXS
It’s works as requested.
Gilbert
February 16, 2018 at 2:08 pm #913267 -
AuthorPosts
- The topic ‘Woocommerce price suffix’ is closed to new replies.