Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Добавление в модуль Feedback id, name, url товара


 Share

Recommended Posts

Есть модуль Feedback (opencart 3.0.2.0.), можно использовать для разных этолей, я использовал как Задать вопрос.

В Дизайне посивил его на страницу товара

Модуль выводит кнопку (В моём случае - Задать вопрос) при клике открывает мадальное окно, ггде имя, телефон, вопрос и отправка на гдефолный емайл магазина

Но в модуле нет, как я слиию важной функции- это передача названия, id и url товара!

У модуля свой файл контролера и файл feedback.twig

Хочу передать в модальном окне значения product_id, product_name, product_url

 

В файле feedback.twig после полей input name, phone добавляю:

 

 <input type="hidden" name="prod_id" value="{{ product_id }}" />
 <input type="hidden" name="prod_name" value="{{ product_name }}" />
 <input type="hidden" name="prod_url" value="{{ product_url }}" />

 

Что добавить в контролере feedback.php и надо ли, что-то добавить в контролер product.php ?

 

Жду помощи 

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.