Page 1 of 1

[SOLVED]Error when setting up special price

Posted: Thu Feb 15, 2018 3:34 am
by shoppingcarter
Hello,

I am using OC 1.5.6. I set up the special price so that the old price is visible, red and crossed off. When I set up the special price I get this errorr:

Notice: Use of undefined constant PHP_ROUND_HALF_UP - assumed 'PHP_ROUND_HALF_UP' in public_html/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 323Warning: Wrong parameter count for round() in public_html/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 323

The code from line 323 to 327 says:

Code: Select all

$this->data['special_percentage'] = round(100/($product_info['price']/($product_info['price'] - $product_info['special'])), 2, PHP_ROUND_HALF_UP) . '% OFF';
			
			} else {
				$this->data['special'] = false;
			}
Thanks in advance for your help.

Re: Error when setting up special price

Posted: Fri Feb 16, 2018 6:19 am
by straightlight
Caused by an installed extension on an old OC version.

Re: Error when setting up special price [SOLVED]

Posted: Fri Feb 16, 2018 8:53 pm
by shoppingcarter
Hi Straightlight,

you were right, the problem was an extension I installed. Thank you!

Regards