Inhalte aufrufen

Profilbild

Removing % from product price


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
5 Antworten zu diesem Thema

#1 honeymaze

honeymaze

    Newbie

  • Members
  • 2 Beiträge

Geschrieben: 18 August 2019 - 08:38

air-pump-venus-ap-208.jpg?size=250
- 13 %
Air pump Venus AP 208
% ₹ 130.00 ₹ 150.00

 

 

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 !!!!



#2 Marcel Schmidt

Marcel Schmidt

    SmartStore AG

  • Administrators
  • 39 Beiträge

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

 

 

Angehängte Bilder



#3 honeymaze

honeymaze

    Newbie

  • Members
  • 2 Beiträge

Geschrieben: 03 September 2019 - 09:31

Wonderful. It worked .

 

Thanks a lot for helping me out.



#4 nickh

nickh

    Advanced Member

  • Members
  • 94 Beiträge

Geschrieben: 05 September 2019 - 14:43

Is this by design?  I actually had to make the same change because it looked strange...



#5 Marcel Schmidt

Marcel Schmidt

    SmartStore AG

  • Administrators
  • 39 Beiträge

Geschrieben: 05 September 2019 - 20:09

Yes, this is the case by default if you install a fresh version of smartstore.

 

Best regards



#6 Sherif Ahmed

Sherif Ahmed

    Advanced Member

  • Members
  • 35 Beiträge

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