- Posts: 9
- Thank you received: 0
Код кнопки " В корзину"
-- Joomla version -- : 3.2
-- PHP version -- : 5
Всем привет!
столкнулся с проблемой, хочу добавить кнопку прямо в материал, есть привязка товара но нет добавить кнопку " в корзину" кто то сталкивался с подобной проблемой и как ее решить. Если есть код отдельно кнопки, буду признателен!
Please Log in or Create an account to join the conversation.
I moved your question into the Russian section of the forum.
Please understand that we do not speak Russian at HikaShop and we can't offer support in Russian.
If you want support from the HikaShop team, please make a new post in English in the appropriate section.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- progreccor
-
- Offline
- SEO, webdesign
вроде так
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- progreccor
-
- Offline
- SEO, webdesign
www.hikashop.com/support/documentation/1...-product-insert.html
можно в принципе переопределить сам код кнопки, в хика есть такой механизм. Если есть определенные навыки в php - то могу подсказать куда рыть
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
судя по документации должен ставить именно кнопку
www.hikashop.com/support/documentation/1...-product-insert.html
можно в принципе переопределить сам код кнопки, в хика есть такой механизм. Если есть определенные навыки в php - то могу подсказать куда рыть
Да, мне пригодиться на будущее, можешь скинуть?
Please Log in or Create an account to join the conversation.
- progreccor
-
- Offline
- SEO, webdesign
А то вопрос задан,а как было решено - не написал. Может еще кто столкнется...
Насчет кнопки вот:
For the buttons:
You need to create the file templates/YOUR_TEMPLATE/html/hikashop_button.php. We invite you to look at the file administrator/components/com_hikashop/helpers/cart.php for the default code of the function you will define in it. In that file, you will be able to define the function:
hikashop_button_render($map,$name,$ajax,$options,$url) => The $map variable contains the name of the button, the $name variable contains the value of the button (what the user see). The $ajax variable can contains additional attributes for the HTML element of your button as well as the $options attribute. The $url variable can contain a URL where to redirect when the button is used as a link. You need to return the whole HTML of your buttons at the end of your function.
www.hikashop.com/support/support/documen...r-documentation.html
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
- progreccor
-
- Offline
- SEO, webdesign
в папке /templates/ваш_шаблон/html/hikashop_button.php
в качестве образца можете использовать administrator/components/com_hikashop/helpers/cart.php
на самом деле как образец его можно использовать с трудом....
можете использовать для начала мой файл:
его можно просто скопировать и затем изучать.:
переменная $map здесь определяет где именно кнопка появляется... В категории, на странице товара или же в корзине...
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 2
- Thank you received: 0
Please Log in or Create an account to join the conversation.