Ad to cart all the products as one

  • Posts: 32
  • Thank you received: 3
10 years 10 months ago #178155

-- url of the page with the problem -- : www.nfornails.eu/jewelry1/product/build-pack01.html
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.1
-- Browser(s) name and version -- : Firefox 33.0.2

Hi.
I make some packages with some products adding them as options. www.nfornails.eu/jewelry1/product/build-pack01.html
I want to have the option to ad them all with one button and to get the price ( -2€ ) as it is at the above link. I could make a product with all the products that i want to have in that pack but I cant control inventory. Any help or suggestion is welcome

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

  • Posts: 84303
  • Thank you received: 13698
  • MODERATOR
10 years 10 months ago #178183

Hi,

A solution will be to add a link like this:

<a href="/jewelry1/product/updatecart.html?product_id=526&hikashop_product_option[0]=386&hikashop_product_option[1]=389&hikashop_product_option[2]=58&hikashop_product_option[3]=62&hikashop_product_option[4]=64&hikashop_product_option[5]=60&quantity=1&popup=1">Add all the options of the pack to the cart</a>

Otherwise, it would require some more heavy customization.

The following user(s) said Thank You: RobertC

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

  • Posts: 32
  • Thank you received: 3
10 years 10 months ago #178240

It works. Thank you.
But sent user directly to purchase and my general settings are to stay & display a popup window. Can that be done too?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 10 months ago #178245

Hi,

That should already display a popup. Is the popup displayed when adding a common product ?

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

  • Posts: 32
  • Thank you received: 3
10 years 10 months ago #178395

No it isn't. It's not displaying the popup window. It sent directly to purchase
The common products display it as I set it to be display ( 2sec ) and stay at the same page.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 10 months ago #178422

Hi,

When you use a product/updatecart in GET mode ; you have to give a "return_url" parameter if you want to indicate to which page you want to redirect the user.
Otherwise HikaShop will use the checkout page as the final destination.
You can use "return_url" (which is urlencode and then base64encode) or you can use "url" (which is just urlencode).

Otherwise, you can use the parameter "tmpl=component", it will display the HikaShop cart (without the rest of the website ; like if you display the content in a popup).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum