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

Recommended Posts

1) Столкнулся с такой проблемой, подскажите возможно ли убрать ненужное предложение когда заказ оформлен - смотрите фото . если да то как заранее спасибо.

и возможно ли удалить вкладку "Файлы для скачивания"

 

 

5a15f285a674a_.png.085bd609f4ab293dbe6d5e3365bf56cf.png 

 

 

 

2) и вторая проблема со Счетом. можно ли как отредактировать счет? для печати .убрать дублирование адреса доставки и адрес оплаты?(адерс доставки  и адрес доставки пишет одно и тоже)  смотрите фото. и  возможно ли  добавить  на СЧЕТ  логотип магазина?  заранее всем спасибо не судите строго новичок, все делаю с нуля)  

 

5a15f34eec6d4_.thumb.png.c3f70fd7e2b7bfa1e348e6a6d2d427e5.png

 

Link to comment
Share on other sites


По первому пункту нужно отредактировать в language файл language/ru-ru/checkout/success.php.

По второму во вьюшке mail/order.tpl

Link to comment
Share on other sites


9 часов назад, glum сказал:

По первому пункту нужно отредактировать в language файл language/ru-ru/checkout/success.php

это решил спасибо большое. 

 

а вот второе не могу понять ..

во вьюшке это в :  /public_html/catalog/view/theme/default/template/mail  и order.tpl ? 

если да, то что там менять там ничего не понятно одни знаки - вот такого типа:

( <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $title; ?></title>
</head>
<body style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000;">
<div style="width: 680px;"><a href="<?php echo $store_url; ?>" title="<? ) и т.д

и как вставить Логотип, и возможно ли менять цвет текста в этих текстовых файлах ?

распишите более развернуто,как и где это делается,огромное вам спасибо.

 

Link to comment
Share on other sites


  • 4 weeks later...

Добрый день
А есть ли вариант вывода фото при печати заказа?
/admin/view/template/sale/order_invoice.tpl
сюда добавил
<img src="<?php echo $product['image']; ?>" title="<?php echo $product['name']; ?>" style="float:left;" />
Но фото не выводится. Что и где ещё надо добавить?

Link to comment
Share on other sites


8 часов назад, Allaur сказал:

А есть ли вариант вывода фото при печати заказа?

есть

8 часов назад, Allaur сказал:

сюда добавил

естественно.  изображение не передается в шаблон, да и в контроллере  его нет.

как вариант, без заморочек

1.  получить изображение в контроллере

 $sql = "select image from " . DB_PREFIX . "product where product_id = '".$product['product_id']."'";
 $query = $this->db->query($sql);
 $query_res = $query->row;
 $image_product = $query_res['image'];

2. передать в шаблон

$product_data[] = array(
						'name'     => $product['name'],
						'model'    => $product['model'],
						'option'   => $option_data,
						'quantity' => $product['quantity'],
						'price'    => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']),
						'total'    => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']),
                                                'image_link'  => $this->model_tool_image->resize( $image_product, 50, 50)
					);

3. вывести в шаблоне

<img src="<?php echo $product['image_link']; ?>">

 

  • +1 1
Link to comment
Share on other sites

13 минут назад, AlexDW сказал:

как вариант есть такое

 

Посмотрел демку нет там фото при печати заказа

 

 

2 часа назад, fanatic сказал:

есть

естественно.  изображение не передается в шаблон, да и в контроллере  его нет.

как вариант, без заморочек

1.  получить изображение в контроллере


 $sql = "select image from " . DB_PREFIX . "product where product_id = '".$product['product_id']."'";
 $query = $this->db->query($sql);
 $query_res = $query->row;
 $image_product = $query_res['image'];

2. передать в шаблон


$product_data[] = array(
						'name'     => $product['name'],
						'model'    => $product['model'],
						'option'   => $option_data,
						'quantity' => $product['quantity'],
						'price'    => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']),
						'total'    => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']),
                                                'image_link'  => $this->model_tool_image->resize( $image_product, 50, 50)
					);

3. вывести в шаблоне


<img src="<?php echo $product['image_link']; ?>">

 


Принял
Сейчас буду пробовать, благодарю

Link to comment
Share on other sites


2 часа назад, fanatic сказал:

2. передать в шаблон


$product_data[] = array(
						'name'     => $product['name'],
						'model'    => $product['model'],
						'option'   => $option_data,
						'quantity' => $product['quantity'],
						'price'    => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']),
						'total'    => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']),
                                                'image_link'  => $this->model_tool_image->resize( $image_product, 50, 50)
					);

 



Прописал тут /admin/controller/sale/order.php
Получил вот такую ошибку

Fatal error: Call to a member function resize() on a non-object in /www/site/vqmod/vqcache/vq2-admin_controller_sale_order.php on line 3574

 

Прошу прощения что немного протупил, сразу не написал.

У меня версия 1.5.6, но по фото в заказе нашёл только эту тему потому здесь и отписал.

Link to comment
Share on other sites


нужно подгрузить модель

 $this->load->model('tool/image');

перед

					$product_data[] = array(
						'name'     => $product['name'],
						'model'    => $product['model'],
						'option'   => $option_data,
						'quantity' => $product['quantity'],
						'price'    => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']),
						'total'    => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']),
                                                'image_link'  => $this->model_tool_image->resize( $image_product, 50, 50)
					);

 

  • +1 1
Link to comment
Share on other sites

1 минуту назад, fanatic сказал:

нужно подгрузить модель


 $this->load->model('tool/image');

 

 

Всё отлично встало, Благодарю!

Link to comment
Share on other sites


Только что, fanatic сказал:

мои советы для 2.3.  

 

Код идентичный в данном случае.
Плюсанул репутацию. :D

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
 Share

×
×
  • 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.