Display product in pop-up...

  • Posts: 1
  • Thank you received: 0
10 years 2 months ago #207503

-- url of the page with the problem -- : d-media.rs/dentalsm/index.php/kat01/modeli
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.36
-- Browser(s) name and version -- : any/all

First of all Hi,

Here is the problem, I've used www.hikashop.com/forum/2-general-talk-ab...n-popup-product.html and www.hikashop.com/forum/4-how-to/42220-li...d-products-list.html , to set that when you click on Product Name, it opens product page in pop-up.

Now, what i need is that when you click on Add to Cart button from that pop-up, it close pop-up and open Cart in regular browser page, or in worst case to open it in new pop-up, but without other modules/components (just like product page).

Any suggestion and technique is appreciated.

Please Log in or Create an account to join the conversation.

  • Posts: 84305
  • Thank you received: 13700
  • MODERATOR
10 years 2 months ago #207507

Hi,

You would have to create a template override of the function hikashopModifyQuantity of the file administrator/components/com_hikashop/helpers/cart.php implementing the hikashop_cart_js_render trigger.
You need to create the template override file templates/YOUR_TEMPLATE/html/hikashop_button.php where you'll put the hikashop_cart_js_render function which has to define itself the hikashopModifyQuantity.
We invite you to look at the file administrator/components/com_hikashop/helpers/cart.php for the default code of the function and base yourself on it in order to change the behavior of the add to cart button with your custom javascript.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum