Page 1 of 1

Notice: Undefined variable: product_option_value

Posted: Fri Jan 09, 2015 9:13 pm
by bero
Ik krijg de error Undefined variable: product_option_value, maar ik kan niet vinden wat het wel moet zijn?
Iemand een idee? Het gaat om OC 2.0.11

Code: Select all

foreach ($this->model_catalog_product->getProductOptions($this->request->get['product_id']) as $option) {
				$product_option_value_data = array();

				foreach ($option['product_option_value'] as $option_value) {

			if ($option_value['price_prefix'] == '-') {
				$option_value['price'] = (($product_info['special'] ? ($product_info['special'] - $product_option_value['price']) : ($product_info['price']) - $option_value['price']));
			} else {
				$option_value['price'] = (($product_info['special'] ? ($product_info['special'] + $product_option_value['price']) : ($product_info['price']) + $option_value['price']));
			}
Het gaat om het deel na foreach