1
geeker
oledrion price calculation problem
  • 2010/5/1 10:58

  • geeker

  • Just popping in

  • Posts: 2

  • Since: 2010/5/1 1


Hi,

I have problems regarding oledrion.
If the discount price is above 1, it shows both, the crossed out price and beneath that the discount price.
If the calculated discount price is beneath 1, only the price is shown.

So my question is the following: where in the code is the discount price calculated or at least, where is the product information printed? I think I could fix this problem if only I would know where to look. I searched everywhere in the code, but I can't find it.
If anyone can help, thanks in advance.

2
geeker
Re: oledrion price calculation problem
  • 2010/5/1 18:43

  • geeker

  • Just popping in

  • Posts: 2

  • Since: 2010/5/1 1


Solved.

If anyone has the same problem:

in the file class/oledrion_products.php you have to change line 372 (in the function toArray) from:

if( intval($this->getVar('product_discount_price')) != 0 ) {

to:

if( floatval($this->getVar('product_discount_price')) > 0 ) {

The reason is, that the intval function returns the rounded number of an number, which for values smaller than 1 is 0.


Login

Who's Online

344 user(s) are online (44 user(s) are browsing Support Forums)


Members: 0


Guests: 344


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits