I would need a conditional product sequensing

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
8 years 6 months ago #256285

Hi,

That looks ok to me. Note that if you have variants in these products, you need to enter the id of the variants in the array, and not the id of the main product.

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

  • Posts: 88
  • Thank you received: 0
8 years 6 months ago #256297

Thanks Nicolas, that's also what I thought :)

Now we try to check the cart content when the customer clicks the "Panier" button.

This is only valid if the customer comes form a "A la carte" link or sublink :

We have to be sure that the customer does not remove a product from Etape 1 if he has a product from Etape 2 in the cart.
If he does so we want him to be redirected to the A la carte main menu entry and it's cart emptied.

Have you maybe an idea how we could reach this ?
Thanks in advance for your help and advise,

PS : the "A la Carte" menu control works with the Regular Labs ReReplace extension !
Best regards
Stéphane

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

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
8 years 6 months ago #256302

Hi,

I would recommend to implement the onAfterCartProductsLoad trigger of HikaShop in a custom HikaShop plugin. That way, in that trigger, you can check the products in the cart and redirect automatically where you want (with the redirect function of Joomla docs.joomla.org/API15:JApplication/redirect ) when necessary.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum