Post by trixiemay » Thu Feb 02, 2023 5:22 am

OC3.0.3.2
How do I hide the dollar value after the label text in the options on product page? see attachment

thanks
Rob

Attachments

Screen Shot 2023-02-02 at 10.19.22 AM.png

Screen Shot 2023-02-02 at 10.19.22 AM.png (56.16 KiB) Viewed 274 times


___________________________________________
"Speak softly but carry a big stick" :crazy:


Active Member

Posts

Joined
Thu Mar 09, 2017 2:53 pm


Post by by mona » Thu Feb 02, 2023 10:48 am

catalog/view/theme/default/template/product/product.twig
change

Code: Select all

{{ option_value.price }}
to

Code: Select all

{{ option_value.price|replace({'$': ''}) }}

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: Semrush [Bot] and 257 guests