Jump to content
Sign in to follow this  

[Решено] Descr у способа доставки в корзине

Recommended Posts



Добавил способ доставки, через добавление файлов в







Получилось как на скрине.

Теперь не могу понять как добавить description?

как например у оплаты при получении подпись "(Оплата товара происходит в момент передачи заказа клиенту)"


Прошел поиском по файлам и по базе, нигде этого текста нет, как его дабавить к "Пункт самовывоза" ?




Снимок экрана_2018-08-28_14-27-42.png

Share this post

Link to post
Share on other sites

Simple из коробки поддерживает вывод описания к методам доставки, просто передайте массив из модели доставки вместе с description, он сам выведется. Пример:

$quote_data['advanced_shipping' . $key] = array(
	'key' => $key,
	'code' => 'advanced_shipping.advanced_shipping' . $key,
	'title' => html_entity_decode($value['name'][$this->current_language_id], ENT_QUOTES, 'UTF-8'),
	'description' => html_entity_decode($value['description'][$this->current_language_id], ENT_QUOTES, 'UTF-8'),
	'cost' => $value['cost'],
	'tax_class_id' => $tax_class_id,
	'text' => $this->currency->format($this->tax->calculate($value['cost'], $tax_class_id, $this->config->get('config_tax')), $this->session->data['currency'])

Для тех у кого simle не стоит, поддержку вывода description можно сделать так:

<?xml version="1.0" encoding="UTF-8"?>
	<id>Advanced Shipping</id>
	<author>Shashakhmetov Talgat [[email protected]]</author>
	<file name="catalog/view/theme/default/template/checkout/shipping_method.tpl">
		<operation error="log">
			<search position="replace"><![CDATA[<label for="<?php echo $quote['code']; ?>"><?php echo $quote['title']; ?></label>]]></search>
			<add><![CDATA[<label for="<?php echo $quote['code']; ?>"><?php echo $quote['title']; ?><?php echo isset($quote['description']) ? "<br/>".$quote['description'] : ""; ?></label>]]></add>


Share this post

Link to post
Share on other sites

спасибо, добавил массив во вьюхе

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.


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.