Post by shoppingcarter » Thu Feb 15, 2018 3:34 am


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.
Last edited by shoppingcarter on Sat Feb 17, 2018 1:49 am, edited 1 time in total.


Wed Feb 14, 2018 9:43 pm

Post by straightlight » Fri Feb 16, 2018 6:19 am

Caused by an installed extension on an old OC version.

The most generated errors being found on Opencart forum originates from contributed programming.


Legendary Member


Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by shoppingcarter » Fri Feb 16, 2018 8:53 pm

Hi Straightlight,

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



Wed Feb 14, 2018 9:43 pm
Who is online

Users browsing this forum: No registered users and 13 guests