Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Место и момент сохранения заказа


Recommended Posts


Подскажите, пожалуйста, где происходит сохранение заказа.

Я хочу вывести $option['price'] в письме из магазина, но до туда (/catalog/controller/mail/order.php) уже не доходит цена.

Если я при сохранении сделаю, $option['price'] = $option['value'], то данные будут доступны.

Link to comment
Share on other sites

Нашёл сам.

В /catalog/controller/checkout/confirm.php в цикле

foreach ($product['option'] as $option) {
				    if ($option['name'] == $delivery_field){
						$delivery_charge = round($option['price']);
						$option['value'] = round($option['price']).' EURO';
				    if ($option['name'] == $service_field){
						$service_charge = round($option['price']);
						$option['value'] = round($option['price']).'%';
				    if ($option['name'] == $price_field){ $euro_price = $option['value']; }
					$option_data[] = array(
						'product_option_id'       => $option['product_option_id'],
						'product_option_value_id' => $option['product_option_value_id'],
						'option_id'               => $option['option_id'],
						'option_value_id'         => $option['option_value_id'],
						'name'                    => $option['name'],
						'value'                   => $option['value'],
						'type'                    => $option['type'],


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.