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

  • Posts: 120
  • Thank you received: 2
8 years 9 months ago #228247

Thank you
I used latest version of hikashop. How can do it?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 9 months ago #228255

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.

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.
The following user(s) said Thank You: kaya

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

  • Posts: 120
  • Thank you received: 2
8 years 9 months ago #228301

Thank you
I think I can get cart id by this 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.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 9 months ago #228355

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.058 seconds
Powered by Kunena Forum