How to remove % sign while displaying product price when some discount is applied. for example % sign is displaying before ₹ 130.00
someone please help me out !!!!
Geschrieben: 18 August 2019 - 08:38
How to remove % sign while displaying product price when some discount is applied. for example % sign is displaying before ₹ 130.00
someone please help me out !!!!
Geschrieben: 19 August 2019 - 11:12
Hi,
to remove the '%' from discounted products you'll need to change one line in the Product.List.Item.Price.cshtml view file.
(see attached image)
You can find this file in: Views > Shared > Partials
Change line
@(Model.Price.SavingAmount.HasValue() ? "% " : "")@Model.Price.Price
to simply
@Model.Price.Price
Hope that helps,
Best regards
Geschrieben: 03 September 2019 - 09:31
Wonderful. It worked .
Thanks a lot for helping me out.
Geschrieben: 05 September 2019 - 14:43
Is this by design? I actually had to make the same change because it looked strange...
Geschrieben: 05 September 2019 - 20:09
Yes, this is the case by default if you install a fresh version of smartstore.
Best regards
Geschrieben: 10 September 2019 - 22:31
I faced the same, but when I try to override it using themes it does not work.
I copied the same view into Themes/Flex/Views/Shared/Partials/Product.List.Item.Price.cshtml
and did my changes but didnot work
Is this normal behavior or not?
Best Regards
Sherif Ahmed
Software Engineer
Egypt
Geschrieben: 16 September 2019 - 14:24
Yes, this is the case by default if you install a fresh version of smartstore.
Best regards
Do you mind me asking why? It just looks completely wrong. This screenshot was taken from your live demo site: