Module cart hover

  • Posts: 113
  • Thank you received: 1
  • Hikashop Business
1 week 2 days ago #310775

-- url of the page with the problem -- : www.vignaiolitreviso.com/shop
-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.11

Hi,
I would like to change the cart form like this:
  - instead of text enter an icon
  - when an article is entered, the number of articles appears
  - in hover I don't want the quantity of articles to appear, at this time the option in the module is active.
  - when I add the item to the cart I don't want the notice in the popup at the top right to belong

Thanks so much
Matteo

Attachments:

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

  • Posts: 2215
  • Thank you received: 297
  • MODERATOR
1 week 1 day ago #310799

Hello,

I think that you will have to use 2 ways to get what you need :
1° Go in the module cart options
- In Extensions dropdown => Modules
- Click on the module cart title
- Then in HikaShop Options tab

Here, you will be able to do lot of different things, for the other unavailable configuration, let's speak about css custom



Use some custom css in your frontend file css
- Have a look on this tutorial to see how to proceed
- Use html class to define your selector and add your command like for the quantity :

.hikashop_cart_module_product_quantity_value.hikashop_cart_value {
display: none;
}


Last and not least, I'm drawing your attention to this module cart plugin in our Marketplace that maybe will help you to do progress faster and more easily on maybe what you need.
Regards

Last edit: 1 week 1 day ago by Philip.

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

  • Posts: 113
  • Thank you received: 1
  • Hikashop Business
4 days 2 hours ago #310979

Hi,
thanks for your answer.

I try to add quantity form module but not add number on icon cart but only on dropdown.
How can I add quantity on icon cart without buy the package style?

Thanks so much
Matteo

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

  • Posts: 2215
  • Thank you received: 297
  • MODERATOR
3 days 9 hours ago #311000

Hello,

I'm not sure to understand your sentence : "How can I add quantity on icon cart without buy the package style"

But you can from my previous answer, add quantity and via a css custom don't display it in a Html block and not another, with this kind of command :

.html_class_with_qty .quantity_class {
display: inline-block;
}
.html_class_without_qty .quantity_class {
display: none;
}

Hope this will help you.
Regards

Last edit: 3 days 10 hours ago by Philip.

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

  • Posts: 113
  • Thank you received: 1
  • Hikashop Business
2 days 9 hours ago #311052

Good morning,
I try to explain myself better. What I want to do, as shown in the screenshot above, is to get the total items on the cart icon without having to enable the function in the module; this because otherwise I would see the quantity for each individual product.

I tried modifying the mod_hikashop_cart module but the file does not have the module structure

Thanks
Matteo

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

  • Posts: 2215
  • Thank you received: 297
  • MODERATOR
1 day 22 hours ago #311056

Hello,

I'm sorry but with my answers you realize easily what you requested, I will answer you step by step :
"is to get the total items on the cart icon"
=> Unable the quantity in the module options / No Custom Css required

" I would see the quantity for each individual product"
=> Use custom Css to don't display quantity, example :
.cart_dropdown_html_class .quantity_input {
display: none;
}

The override is of course possible but more complex to manage as you said, because you have a mix html element from Joomla & HikaShop.

Regards

Last edit: 2 days 8 hours ago by Philip.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum