Jump to content

Photo

Discount Badge is 0 when there is a value?


  • Please log in to reply
2 replies to this topic

#1 TripleNico

TripleNico

    Advanced Member

  • Members
  • PipPipPip
  • 124 posts

Posted 14 May 2020 - 12:29

So when i setup a product price like this:

Attached File  ProductPriceInfo.png   56.49KB   0 downloads

 

Then i would expect a view something like this:

Attached File  ProductCorrectBadge.png   35.27KB   0 downloads

 

Instead it show the view like this:

Attached File  ProductNulBadge.png   1.72KB   0 downloads

 

So what is going wrong here?

 

FYI: This product was added and updated via de WebApi.

 

Second question, is it possible to disable the precentage that is placed before the product price? Don't even know why it is there?

Attached File  ProductDiscountPercentage.png   4.2KB   0 downloads

 

Edit:

I just found out when it goes wrong; by changing the site language. If i set it to EN then everything displayes as it should but when i set in to NL (Our second language) then the value is 0. If you want to see/debug it, please PM me and i will send you the URL.



#2 TripleNico

TripleNico

    Advanced Member

  • Members
  • PipPipPip
  • 124 posts

Posted 15 May 2020 - 12:07

Solved the 0 part: It turns out that in the Dutch language the Products.SavingBadgeLabel localization was 0 instead of - {0} %

 

I also found a setting for the precentage sign but it seems that disabling this setting has no effect?



#3 Marcel Schmidt

Marcel Schmidt

    SmartStore AG

  • Administrators
  • 149 posts

Posted 02 June 2020 - 15:54

HI,

 

thanks for the info, I fixed this ressource for NL translation in 3.2.2. 

 

Regarding your second question:

There is no option to disable '%' with one click, but you can find a easy solution here:

http://community.sma...n-before-price/

 

Best regards


  • TripleNico likes this