Add View Cart button to top of site

  • Posts: 17
  • Thank you received: 0
8 years 9 months ago #230790

-- HikaShop version -- : 2.6.1

Hi, I've been looking through all the posts on here regarding adding a new button to CSS so users can click on a Cart icon at the top of the site... however, I'm unable to get it to work..

Steps taken -
1. Under Modules, I created a new module of type Hikashop (mini cart), gave it suffix - hika_cart_mini. Positioned this module to display right hand side.
2. under HikaShop > Configuration > Display > CSS I added the following CSS -

.hika_cart_mini h3 {
padding-left: 15px;
padding-top: 5px;
color: #FFF;
font-size: 12px;
background: url(../images/cart_top.png) no-repeat;
height: 25px;
}

When I save, then refresh the front page I can see the mini cart Total but no icon... when I inspect the CSS via firefox it doesn't show any of the CSS I created above.. Am I missing a step?

regards,
Craig,

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 9 months ago #230824

Hi,

Your website is in maintenance so we can't access it.
I guess that the issue is with the class which isn't the same in the HTML that what you're using in your CSS.
The suffix is added to the existing class of the module, so the class will be different unless you prepend the suffix with a space.

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

  • Posts: 17
  • Thank you received: 0
8 years 9 months ago #230832

hi, I'm not understanding what you mean.. ?

I created a copy of the Hikacart module and renamed this to Hikacart (mini) as I dont want to change the main cart as it is not a mini cart.

see attached images.

site is now online.

thanks

Attachments:

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 9 months ago #230847

Hi,

I'm saying that this option is a class name suffix setting, not a class name setting. There is already a class name and what you enter there is added to the class name already there.
If you want to use a specific class name, you need to add a space at the beginning of your class name so that is not appended to the already existing class name but considered as a class name of itself.

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

  • Posts: 17
  • Thank you received: 0
8 years 9 months ago #230978

Hi, I put a space in front of the suffix so its now " hika_cart_mini"

then I saved, cleared cache and reloaded page.. class still not showing on page.

see attachements

Attachments:

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

  • Posts: 4753
  • Thank you received: 644
  • MODERATOR
8 years 9 months ago #230999

Hello,

Did you create some override on your cart view? Or else maybe some plugin modify your html?...
The most simple way to be sure of it, is to unpublished one by one each plugin, and check if " hika_cart_mini" class appear a moment or an other.
You will know if a plugin are link to your issue.

If you are unable to get a plugin link to your issue, can you send us backend access to process some tests via our "Contact Us" form?
Use this topic subject to fill in your message subject to keep the link.

Regards,

Last edit: 8 years 9 months ago by Philip.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 9 months ago #231154

Hi,

We're not able to login with the account you provided.
But from what I can see, it's just that your Joomla template isn't adding any HTML element around the module and isn't using the class suffix of the module. It's normally the Joomla template which adds the class suffix to the div encompassing the module.
Try to switch to the Joomla default template and see if you get the class suffix added around the module.

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

  • Posts: 17
  • Thank you received: 0
8 years 9 months ago #231249

hi, I managed to get the icon to be added by following the link - adding cart icon

The only other problem is how to I position the icon correctly .. can this be done via CSS.. if so how.. I'd like it to sit next to the Login link on the page

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

  • Posts: 12953
  • Thank you received: 1778
8 years 9 months ago #231253

Hello,
Yes the solution will probably to use some CSS code like this for example :

#menuright #hikashop_cart_module {
    padding-left: 89px;
}
Note that if you want that CSS code to only be applied for laptops and not mobile phone screens you'll have to use media queries :

You can do the modifications in the frontend css file via the menu Configuration > Display > CSS
Use the @media tags to change the width of the columns when the width of the page is less than xx.

ex:
@media (max-width: 767px) {
.hikashop_products .row-fluid .span4 { width: 49% !important;}
}


Here is some documentation about the layout customization:
www.hikashop.com/support/documentation/1...ize-the-display.html

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

  • Posts: 17
  • Thank you received: 0
8 years 9 months ago #231325

Thanks for your Help!

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

Time to create page: 0.084 seconds
Powered by Kunena Forum