Skip to main content

Add to cart link. Ajax or Stay same page POSSIBLE?

More
10 years 8 months ago #228247 by kaya
Thank you
I used latest version of hikashop. How can do it?

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

More
10 years 8 months ago #228255 by Jerome
Hi,

With that kind of code ; you cannot.
But it will be possible in HikaShop 3.

You have the latest version of HikaShop ; so you have the version 2.6.1
So you do not have HikaShop 3 ; which is fully logical because we are still working on that development.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: kaya

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

More
10 years 7 months ago #228301 by kaya
Thank you
I think I can get cart id by this code
Code:
$app->getUserState( HIKASHOP_COMPONENT.'.cart_id', 0, 'int' );

and remove product from my cart with prodct_id and cart id by using ajax post method.

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

More
10 years 8 months ago #228355 by nicolas
Hi,

As this post says www.hikashop.com/forum/4-how-to/8572-add...-possible.html#27582 you can set the quantity to 0 in the add to cart URL in order to reset the quantity to 0 for the product in the cart.

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

Time to create page: 0.156 seconds
Powered by Kunena Forum