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

#   How to Create a Custom Add to Cart Button

##

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

Less More

- Posts: 110
- Thank you received: 0
-
-

15 years 8 months ago [\#9119](#9119) by [deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")  *[How to Create a Custom Add to Cart Button](/forum/4-how-to/9119-how-to-create-a-custom-add-to-cart-button#9119 "Hi  I have created a custom cart button to use on our new site. I have set up the class .hikashop&#95;cart&#95;input&#95;button in my CSS but I cannot get it to work.  I know somewhere there was an option where you could opt for CSS or standard buttons in the configuration but I cannot find where it is.  Please advise, do I have the right class declaration for the buttons and how can I get this to work?  Please advise.  Many thanks :lol:")* was created by *[deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")*

Hi

I have created a custom cart button to use on our new site. I have set up the class .hikashop_cart_input_button in my CSS but I cannot get it to work.

I know somewhere there was an option where you could opt for CSS or standard buttons in the configuration but I cannot find where it is.

Please advise, do I have the right class declaration for the buttons and how can I get this to work?

Please advise.

Many thanks :lol:

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkxMTktaG93LXRvLWNyZWF0ZS1hLWN1c3RvbS1hZGQtdG8tY2FydC1idXR0b24/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: 86561
- Thank you received: 14307
-
-

15 years 8 months ago [\#9121](#9121) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to Create a Custom Add to Cart Button](/forum/4-how-to/9119-how-to-create-a-custom-add-to-cart-button#9121 "Hi  I have created a custom cart button to use on our new site. I have set up the class .hikashop&#95;cart&#95;input&#95;button in my CSS but I cannot get it to work.  I know somewhere there was an option where you could opt for CSS or standard buttons in the configuration but I cannot find where it is.  Please advise, do I have the right class declaration for the buttons and how can I get this to work?  Please advise.  Many thanks :lol:")*

Hi,

You have the option "button style" in the configuration under the tab display where you can select CSS or normal.
If you chose normal, you will be able to use the class hikashop_cart_input_button to style your buttons.
If you choose CSS, you will be able to use the class hikashop_cart_button.

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

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

Less More

- Posts: 110
- Thank you received: 0
-
-

15 years 8 months ago -  15 years 8 months ago [\#9239](#9239) by [deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")  Replied by *[deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile")* on topic *[Re: How to Create a Custom Add to Cart Button](/forum/4-how-to/9119-how-to-create-a-custom-add-to-cart-button#9239 "Hi  I have created a custom cart button to use on our new site. I have set up the class .hikashop&#95;cart&#95;input&#95;button in my CSS but I cannot get it to work.  I know somewhere there was an option where you could opt for CSS or standard buttons in the configuration but I cannot find where it is.  Please advise, do I have the right class declaration for the buttons and how can I get this to work?  Please advise.  Many thanks :lol:")*

Hi

I am trying to use the CSS custom layout but I am having no joy at all.

[ 212.113.133.235/~englishr/index.php?opti...=childrens&amp;Itemid=53](http://212.113.133.235/~englishr/index.php?option=com_hikashop&ctrl=category&task=listing&cid=10&name=childrens&Itemid=53) shows how much of a dog's dinner it is making of my layout.

But on [ 212.113.133.235/~englishr/index.php?opti...&amp;category\_pathway=10](http://212.113.133.235/~englishr/index.php?option=com_hikashop&ctrl=product&task=show&cid=6&name=-the-nursery-qaliceq-by-lewis-carroll&Itemid=53&category_pathway=10) it looks OK.

Last edit: 15 years 8 months ago by [deborahharrison](/forum/user/1040-deborahharrison "View deborahharrison's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkxMTktaG93LXRvLWNyZWF0ZS1hLWN1c3RvbS1hZGQtdG8tY2FydC1idXR0b24/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: 86561
- Thank you received: 14307
-
-

15 years 8 months ago [\#9248](#9248) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to Create a Custom Add to Cart Button](/forum/4-how-to/9119-how-to-create-a-custom-add-to-cart-button#9248 "Hi  I have created a custom cart button to use on our new site. I have set up the class .hikashop&#95;cart&#95;input&#95;button in my CSS but I cannot get it to work.  I know somewhere there was an option where you could opt for CSS or standard buttons in the configuration but I cannot find where it is.  Please advise, do I have the right class declaration for the buttons and how can I get this to work?  Please advise.  Many thanks :lol:")*

In the CSS, you have that code:
.hikashop_products a.hikashop_cart_button, .hikashop_products a.hikashop_cart_button:hover, #hikashop_checkout_coupon a.hikashop_cart_button, #hikashop_checkout_coupon a.hikashop_cart_button:hover {
float: none;
width: 100px;
}

If you remove .hikashop_products a.hikashop_cart_button, .hikashop_products a.hikashop_cart_button:hover, from it, that will avoid the button to be squeezed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkxMTktaG93LXRvLWNyZWF0ZS1hLWN1c3RvbS1hZGQtdG8tY2FydC1idXR0b24/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.064 seconds

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