Shopping cart icon module

  • Posts: 121
  • Thank you received: 2
3 years 2 months ago #329858

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23
-- PHP version -- : 7.3.25
-- Browser(s) name and version -- : Firefox

On some online stores there is a module that provides an icon linking to the shopping cart and showing the total amount of the items already on the cart. They look like this:



Is there such a feature available for Hikashop?

Attachments:
Last edit: 3 years 2 months ago by andrewwinkler.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
3 years 2 months ago #329878

Hi,

Yes. You can do that with the HikaShop cart module.
Configure it to display in "mini cart" mode with only the price displayed and you'll have something similar to your screenshot, minus the cart icon. And the cart icon can be added to that HikaShop cart module with a bit of CSS or translation overrides:
www.hikashop.com/forum/4-how-to/878588-a...ini-cart.html#210741
www.hikashop.com/forum/4-how-to/21694-di...ge-in-mini-cart.html

The following user(s) said Thank You: andrewwinkler

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

  • Posts: 121
  • Thank you received: 2
3 years 2 months ago #329887

On my site, the HikaShop Cart module goes to the checkout, not the cart.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
3 years 2 months ago #329891

Hi,

That's correct, the cart module's link will go to the checkout not the cart details page.
You have two solutions to change that:
- You can modify your checkout workflow to have only the cart view on the first step of your checkout in the HikaShop configuration. In that case, the first page of the checkout will only have the cart, and will be similar to the cart details page.
- You can edit the file product / cart.php via the menu Display>Views and change the URL of that link to your cart details page. You can just add such line at the beginning:

<?php $this->url_checkout =  hikashop_completeLink('cart&task=showcart&cart_id='.$this->element->cart_id.'&cart_type='.$this->element->cart_type . $this->cart_itemid); ?>

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

  • Posts: 121
  • Thank you received: 2
3 years 2 months ago #329977

How can I modify your checkout workflow to have only the cart view on the first step of your checkout in the HikaShop configuration?

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

  • Posts: 12953
  • Thank you received: 1778
3 years 2 months ago #330005

Hello,

To do that, you'll have to edit your checkout workflow via "Hikashop->System->Configuration->Checkout" and make sure you only have the "Cart" through your checkout workflow's first step.

Kind regards,
Mohamed.

The following user(s) said Thank You: andrewwinkler

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

  • Posts: 121
  • Thank you received: 2
3 years 1 month ago #330423

I couldn't work out what to do following your previous instructions. Here's the relevant screen. What do I need to change?

Attachments:
Last edit: 3 years 1 month ago by andrewwinkler.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
3 years 1 month ago #330438

Hi,

I would recommend you to first read this tutorial which explains how to modify your checkout workflow:
www.hikashop.com/support/documentation/4...eckout-workflow.html
Once you read it and understand how this all works, our messages here should be easier to understand.

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

Time to create page: 0.094 seconds
Powered by Kunena Forum