How to have both minicart and regular cart module

  • Posts: 7
  • Thank you received: 0
11 years 10 months ago #83292

Hi,
I need to display minicart on mobile and regular cart on desktop browsers.I could able to achieve that with bootstrap's css class but Hikashop is not supporting this scenario.If two cart modules are enabled, then hikashop's add to cart is not working correctly even there is only one cart module displayed on the page.


Can you please advice a workaround?

Regards
Chola

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

  • Posts: 82817
  • Thank you received: 13360
  • MODERATOR
11 years 10 months ago #83632

Hi,

You can have both on the same page I think but in that case, you need to turn off the "Use AJAX when possible for add to cart buttons" option of the configuration. Otherwise, only one of the two carts will be updated when you add a product to the cart.
It's not possible for now to have both on the same page and that option turned on.

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

  • Posts: 7
  • Thank you received: 0
11 years 10 months ago #83758

Hi,
Thanks for the reply..There is only one cart displayed at any point of time, but still it is not working with Ajax turned on..

Can I customize the ajax calls to look for a specific item id to add the item to the cart?

Regards
Chola

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

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

Hi,

Are the both carts displayed at the same place ?
Because, if it's the case you can maybe edit the view "product / cart" in HikaShop > Display > Views. And check if it's a desktop browser you let the full cart, else you change the condition to display the mini cart.

The ajax must be turned off.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum