[Skip to main content](#vessel-content)

#   Custom Add to Cart button

##

- **[mashdun](/forum/user/7106-mashdun "View mashdun's Profile")**
- [![mashdun's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7106-mashdun "View mashdun's Profile") Topic Author
- [ Offline](/forum/user/7106-mashdun)

Less More

- Posts: 4
- Thank you received: 0
-
-

14 years 7 months ago [\#47121](#47121) by [mashdun](/forum/user/7106-mashdun "View mashdun's Profile")  *[Custom Add to Cart button](/forum/4-how-to/47121-custom-add-to-cart-button#47121 "I am helping the owner of a site that has Hikashop. They want to add a custom Add To Cart button. I have successfully accomplished this by editting the CSS in the backend, but when I do that ALL the...")* was created by *[mashdun](/forum/user/7106-mashdun "View mashdun's Profile")*

I am helping the owner of a site that has Hikashop. They want to add a custom Add To Cart button. I have successfully accomplished this by editting the CSS in the backend, but when I do that ALL the other buttons relating to the shop also change.

I'd like to leave all the normal buttons (proceed to checkout, login, registration, continue shopping, etc) as they are and just change the Add To Cart button (beside the product image) to the image attached.

Basically I want to just add this to the CSS and make the change in the code to change the class to hikashop_cart_button2... leaving the normal button as is. Is this possible? Where would I change the Add To Cart button class?
Code:

a.hikashop_cart_button2, a.hikashop_cart_button2:hover{ background-image:url(../images/add_to_cart_custom.jpg); text-decoration:none; cursor:pointer; float:left; white-space:nowrap; width:354px; height:140px; }

- [ ![add&#95;to&#95;cart&#95;custom.jpg](/forum/attachment/3506) ](/forum/attachment/3506 "...art&#95;custom.jpg") [ ](/forum/attachment/3506?download=1 "...art&#95;custom.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MTIxLWN1c3RvbS1hZGQtdG8tY2FydC1idXR0b24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14321
-
-

14 years 7 months ago [\#47122](#47122) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom Add to Cart button](/forum/4-how-to/47121-custom-add-to-cart-button#47122 "I am helping the owner of a site that has Hikashop. They want to add a custom Add To Cart button. I have successfully accomplished this by editting the CSS in the backend, but when I do that ALL the...")*

You need such css:

.hikashop_product_page a.hikashop_cart_button{
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MTIxLWN1c3RvbS1hZGQtdG8tY2FydC1idXR0b24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mashdun](/forum/user/7106-mashdun "View mashdun's Profile")**
- [![mashdun's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7106-mashdun "View mashdun's Profile") Topic Author
- [ Offline](/forum/user/7106-mashdun)

Less More

- Posts: 4
- Thank you received: 0
-
-

14 years 7 months ago [\#47124](#47124) by [mashdun](/forum/user/7106-mashdun "View mashdun's Profile")  Replied by *[mashdun](/forum/user/7106-mashdun "View mashdun's Profile")* on topic *[Re: Custom Add to Cart button](/forum/4-how-to/47121-custom-add-to-cart-button#47124 "I am helping the owner of a site that has Hikashop. They want to add a custom Add To Cart button. I have successfully accomplished this by editting the CSS in the backend, but when I do that ALL the...")*

Don't understand what you mean. I tried adding that with no attributes and it still changes all the other buttons. Where do I add that CSS?

Initially i changed the "a.hikashop_cart_button, a.hikashop_cart_button:hover" class to how I wanted the button to be displayed but when I did... ALL Hikashop buttons changed on the that as well... in the modules.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MTIxLWN1c3RvbS1hZGQtdG8tY2FydC1idXR0b24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mashdun](/forum/user/7106-mashdun "View mashdun's Profile")**
- [![mashdun's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7106-mashdun "View mashdun's Profile") Topic Author
- [ Offline](/forum/user/7106-mashdun)

Less More

- Posts: 4
- Thank you received: 0
-
-

14 years 7 months ago -  14 years 7 months ago [\#47126](#47126) by [mashdun](/forum/user/7106-mashdun "View mashdun's Profile")  Replied by *[mashdun](/forum/user/7106-mashdun "View mashdun's Profile")* on topic *[Re: Custom Add to Cart button](/forum/4-how-to/47121-custom-add-to-cart-button#47126 "I am helping the owner of a site that has Hikashop. They want to add a custom Add To Cart button. I have successfully accomplished this by editting the CSS in the backend, but when I do that ALL the...")*

Ok figured it out...

Basically changed this...
Code:

/* cart buttons */ a.hikashop_cart_button, a.hikashop_cart_button:hover{ background-image:url(../images/button.jpg); border:1px solid #356AA0; color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:11px; padding:5px 8px; text-decoration:none; cursor:pointer; float:left; white-space:nowrap; } a.hikashop_cart_button:hover{ outline: 2px solid #92C1FF; }

To this... (basically added the first class, leaving the rest alone)
Code:

/* cart buttons */ .hikashop_product_page a.hikashop_cart_button, .hikashop_product_page a.hikashop_cart_button:hover{ background-image:url(../images/add_to_cart_custom.jpg); background-repeat:no-repeat; margin-right:-20px; cursor:pointer; float:left; border: none; width:354px; height:140px; } a.hikashop_cart_button, a.hikashop_cart_button:hover{ background-image:url(../images/button.jpg); border:1px solid #356AA0; color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:11px; padding:5px 8px; text-decoration:none; cursor:pointer; float:left; white-space:nowrap; } a.hikashop_cart_button:hover{ outline: 2px solid #92C1FF; }

To remove the "Add to Cart" text... go to the /language/en-GB/en-GB.com_hikashop.ini

Change...

ADD_TO_CART="Add to cart"

To...

ADD_TO_CART=""

Also in the CSS, I had to adjust the width of my left side.

Thanks! Maybe this will help someone else down the road.

Last edit: 14 years 7 months ago by [mashdun](/forum/user/7106-mashdun "View mashdun's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MTIxLWN1c3RvbS1hZGQtdG8tY2FydC1idXR0b24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mashdun](/forum/user/7106-mashdun "View mashdun's Profile")**
- [![mashdun's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7106-mashdun "View mashdun's Profile") Topic Author
- [ Offline](/forum/user/7106-mashdun)

Less More

- Posts: 4
- Thank you received: 0
-
-

14 years 7 months ago [\#47128](#47128) by [mashdun](/forum/user/7106-mashdun "View mashdun's Profile")  Replied by *[mashdun](/forum/user/7106-mashdun "View mashdun's Profile")* on topic *[Re: Custom Add to Cart button](/forum/4-how-to/47121-custom-add-to-cart-button#47128 "I am helping the owner of a site that has Hikashop. They want to add a custom Add To Cart button. I have successfully accomplished this by editting the CSS in the backend, but when I do that ALL the...")*

Update... I had to remove this CSS... it was creating an outline when hovering over the new Add To Cart button...
Code:

a.hikashop_cart_button:hover{ outline: 2px solid #92C1FF; }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MTIxLWN1c3RvbS1hZGQtdG8tY2FydC1idXR0b24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[keithstanley](/forum/user/29843-keithstanley "View keithstanley's Profile")**
- [![keithstanley's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29843-keithstanley "View keithstanley's Profile")
- [ Offline](/forum/user/29843-keithstanley)

Less More

- Posts: 45
- Thank you received: 1
-
-

12 years 10 months ago [\#140103](#140103) by [keithstanley](/forum/user/29843-keithstanley "View keithstanley's Profile")  Replied by *[keithstanley](/forum/user/29843-keithstanley "View keithstanley's Profile")* on topic *[Re: Custom Add to Cart button](/forum/4-how-to/47121-custom-add-to-cart-button#140103 "I am helping the owner of a site that has Hikashop. They want to add a custom Add To Cart button. I have successfully accomplished this by editting the CSS in the backend, but when I do that ALL the...")*

Where would I find that? I know it is a css but as you know there hundreds of folders to search through and it would help a lot if you could tell where to find it.
Thanks ![:-)](/media/kunena/emoticons/3.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MTIxLWN1c3RvbS1hZGQtdG8tY2FydC1idXR0b24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[keithstanley](/forum/user/29843-keithstanley "View keithstanley's Profile")**
- [![keithstanley's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29843-keithstanley "View keithstanley's Profile")
- [ Offline](/forum/user/29843-keithstanley)

Less More

- Posts: 45
- Thank you received: 1
-
-

12 years 10 months ago [\#140104](#140104) by [keithstanley](/forum/user/29843-keithstanley "View keithstanley's Profile")  Replied by *[keithstanley](/forum/user/29843-keithstanley "View keithstanley's Profile")* on topic *[Re: Custom Add to Cart button](/forum/4-how-to/47121-custom-add-to-cart-button#140104 "I am helping the owner of a site that has Hikashop. They want to add a custom Add To Cart button. I have successfully accomplished this by editting the CSS in the backend, but when I do that ALL the...")*

> nicolas wrote: You need such css:
>
> .hikashop\_product\_page a.hikashop\_cart\_button{
> }

Where would I find that?
I know it is a css but as you know there hundreds of folders to search through and it would help a lot if you could tell where to find it.
Thanks ![:-)](/media/kunena/emoticons/3.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MTIxLWN1c3RvbS1hZGQtdG8tY2FydC1idXR0b24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14321
-
-

12 years 10 months ago [\#140138](#140138) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom Add to Cart button](/forum/4-how-to/47121-custom-add-to-cart-button#140138 "I am helping the owner of a site that has Hikashop. They want to add a custom Add To Cart button. I have successfully accomplished this by editting the CSS in the backend, but when I do that ALL the...")*

You can add such CS on the frontend CSS file of HikaShop: [ www.hikashop.com/support/support/documen...ize-the-display.html](http://www.hikashop.com/support/support/documentation/153-customize-the-display.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ3MTIxLWN1c3RvbS1hZGQtdG8tY2FydC1idXR0b24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.075 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
