Skip to main content

Ad to cart all the products as one

More
11 years 11 months ago #178155 by RobertC
-- 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.

More
11 years 11 months ago #178183 by nicolas
Hi,

A solution will be to add a link like this:
Code:
<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.

More
11 years 11 months ago #178240 by RobertC
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.

More
11 years 10 months ago #178245 by Xavier
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.

More
11 years 10 months ago #178395 by RobertC
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.

More
11 years 10 months ago #178422 by Jerome
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.

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

Time to create page: 0.196 seconds
Powered by Kunena Forum