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

#   Shopping Cart Image on Add to Cart button

##

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

Less More

- Posts: 301
- Thank you received: 1
-
-

10 years 6 months ago [\#238354](#238354) by [Huski](/forum/user/3364-huski "View Huski's Profile")  *[Shopping Cart Image on Add to Cart button](/forum/26-product-category-display/884173-shopping-cart-image-on-add-to-cart-button#238354 "-- HikaShop version -- : 2.6.2  I have searched the forum but couldn't find an answer  I am trying to find the view where I can add a Shopping Cart image next to the text &quot;Add to Cart&quot; on the Add to Cart Button.  I have a span code I can use which I want to use -   My other question is - how do you know which elements are on which View. I can't work this out and it can take me a long time trying to find it in the Views.")* was created by *[Huski](/forum/user/3364-huski "View Huski's Profile")*

-- HikaShop version -- : 2.6.2

I have searched the forum but couldn't find an answer

I am trying to find the view where I can add a Shopping Cart image next to the text "Add to Cart" on the Add to Cart Button.

I have a span code I can use which I want to use - &lt;span class="zen-icon zen-icon-shopping-cart"&gt;&lt;/span&gt;

My other question is - how do you know which elements are on which View. I can't work this out and it can take me a long time trying to find it in the Views.

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 6 months ago -  10 years 6 months ago [\#238385](#238385) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Shopping Cart Image on Add to Cart button](/forum/26-product-category-display/884173-shopping-cart-image-on-add-to-cart-button#238385 "-- HikaShop version -- : 2.6.2  I have searched the forum but couldn't find an answer  I am trying to find the view where I can add a Shopping Cart image next to the text &quot;Add to Cart&quot; on the Add to Cart Button.  I have a span code I can use which I want to use -   My other question is - how do you know which elements are on which View. I can't work this out and it can take me a long time trying to find it in the Views.")*

Hello,

I confirm that there isn't option like this, but you create **override view**in order to custom this.
Note : Override aren't erased when you update your HikaShop Version.

To reach your override, and especially which process your add to cart button, follow this steps :
- Go to **Components** =&gt; **HikaShop** =&gt; **Configuration**
- On **Display** dropdown, select **Views**

[ ![views.png](/forum/attachment/31053) ](/forum/attachment/31053 "views.png")

- Use dropdown to find more easily your view, here quantity View like on screen below :

[ ![quantityView.png](/forum/attachment/31054) ](/forum/attachment/31054 "quantityView.png")

**Note** : For the red value, of course select your front end template, here on my example it's protostar

- Find **show\_quantity**, and edit the view to insert your image directly in the html with an span and a src="url/path/image"

**Note** : Later, if you want erased your override, click on the little trash icon.

For your second point, maybe I had bring some part of your response, the other part will come with views time and experience thanks to view and override system.

Hope this will help you.

Regards.

- [ ![views.png](/forum/attachment/31053) ](/forum/attachment/31053 "views.png") [ ](/forum/attachment/31053?download=1 "views.png")
- [ ![quantityView.png](/forum/attachment/31054) ](/forum/attachment/31054 "quantityView.png") [ ](/forum/attachment/31054?download=1 "quantityView.png")

Last edit: 10 years 6 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 96
- Thank you received: 1
-
-

10 years 1 week ago [\#254810](#254810) by [dafyalex](/forum/user/40197-dafyalex "View dafyalex's Profile")  Replied by *[dafyalex](/forum/user/40197-dafyalex "View dafyalex's Profile")* on topic *[Shopping Cart Image on Add to Cart button](/forum/26-product-category-display/884173-shopping-cart-image-on-add-to-cart-button#254810 "-- HikaShop version -- : 2.6.2  I have searched the forum but couldn't find an answer  I am trying to find the view where I can add a Shopping Cart image next to the text &quot;Add to Cart&quot; on the Add to Cart Button.  I have a span code I can use which I want to use -   My other question is - how do you know which elements are on which View. I can't work this out and it can take me a long time trying to find it in the Views.")*

Hi,

I need to do the same thing, but I don't understand where insert an image on 'add cart button' in the view product/show_quantity.

Could you help me, please ?

Here's the link of the concerned page : [ www.netweb3d.o2switch.net/mauritiusprodu...gory/25-thes-maurice](http://www.netweb3d.o2switch.net/mauritiusproducts/fr/categories/category/25-thes-maurice)

Thank's

- [ ![Capture1.PNG](/forum/attachment/34530) ](/forum/attachment/34530 "Capture1.PNG") [ ](/forum/attachment/34530?download=1 "Capture1.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQxNzMtc2hvcHBpbmctY2FydC1pbWFnZS1vbi1hZGQtdG8tY2FydC1idXR0b24/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: 86574
- Thank you received: 14317
-
-

10 years 1 week ago [\#254827](#254827) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shopping Cart Image on Add to Cart button](/forum/26-product-category-display/884173-shopping-cart-image-on-add-to-cart-button#254827 "-- HikaShop version -- : 2.6.2  I have searched the forum but couldn't find an answer  I am trying to find the view where I can add a Shopping Cart image next to the text &quot;Add to Cart&quot; on the Add to Cart Button.  I have a span code I can use which I want to use -   My other question is - how do you know which elements are on which View. I can't work this out and it can take me a long time trying to find it in the Views.")*

Hi,

You don't need to edit any PHP code.
You can add such image on the add to cart button with simple CSS.
For example, you could add: Code:

a.hikashop_cart_button { background-image: url(/mauritiusproducts/images/User-green-icon.png); background-repeat: no-repeat; width: 180px !important; display: block; height: 35px; }

And that would display like that:
[ take.ms/IP6cg](http://take.ms/IP6cg)
[ www.hikashop.com/support/documentation/1...ize-the-display.html](https://www.hikashop.com/support/documentation/153-customize-the-display.html)

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

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

Less More

- Posts: 96
- Thank you received: 1
-
-

10 years 1 week ago [\#254844](#254844) by [dafyalex](/forum/user/40197-dafyalex "View dafyalex's Profile")  Replied by *[dafyalex](/forum/user/40197-dafyalex "View dafyalex's Profile")* on topic *[Shopping Cart Image on Add to Cart button](/forum/26-product-category-display/884173-shopping-cart-image-on-add-to-cart-button#254844 "-- HikaShop version -- : 2.6.2  I have searched the forum but couldn't find an answer  I am trying to find the view where I can add a Shopping Cart image next to the text &quot;Add to Cart&quot; on the Add to Cart Button.  I have a span code I can use which I want to use -   My other question is - how do you know which elements are on which View. I can't work this out and it can take me a long time trying to find it in the Views.")*

I added the code you gave me in 'frontend_custom_css' for testing, but it doesn't work (see image linked).

What is the issue ?

Thank's

- [ ![Capture2.PNG](/forum/attachment/34536) ](/forum/attachment/34536 "Capture2.PNG") [ ](/forum/attachment/34536?download=1 "Capture2.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQxNzMtc2hvcHBpbmctY2FydC1pbWFnZS1vbi1hZGQtdG8tY2FydC1idXR0b24/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: 86574
- Thank you received: 14317
-
-

10 years 1 week ago [\#254847](#254847) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shopping Cart Image on Add to Cart button](/forum/26-product-category-display/884173-shopping-cart-image-on-add-to-cart-button#254847 "-- HikaShop version -- : 2.6.2  I have searched the forum but couldn't find an answer  I am trying to find the view where I can add a Shopping Cart image next to the text &quot;Add to Cart&quot; on the Add to Cart Button.  I have a span code I can use which I want to use -   My other question is - how do you know which elements are on which View. I can't work this out and it can take me a long time trying to find it in the Views.")*

Hi,

The CSS is overwritten by other CSS on your website. Do it like that instead: Code:

a.hikashop_cart_button { background-image: url('/mauritiusproducts/images/User-green-icon.png') !important; background-repeat: no-repeat !important; width: 180px !important; display: block !important; height: 35px !important; }

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

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

Less More

- Posts: 96
- Thank you received: 1
-
-

10 years 1 week ago [\#254913](#254913) by [dafyalex](/forum/user/40197-dafyalex "View dafyalex's Profile")  Replied by *[dafyalex](/forum/user/40197-dafyalex "View dafyalex's Profile")* on topic *[Shopping Cart Image on Add to Cart button](/forum/26-product-category-display/884173-shopping-cart-image-on-add-to-cart-button#254913 "-- HikaShop version -- : 2.6.2  I have searched the forum but couldn't find an answer  I am trying to find the view where I can add a Shopping Cart image next to the text &quot;Add to Cart&quot; on the Add to Cart Button.  I have a span code I can use which I want to use -   My other question is - how do you know which elements are on which View. I can't work this out and it can take me a long time trying to find it in the Views.")*

Hi,

I'm sorry but it doesn't work !
I don't understand why.

None of the modifications I do is working (color for example).

Thank's for your help.

- [ ![Capture3.PNG](/forum/attachment/34561) ](/forum/attachment/34561 "Capture3.PNG") [ ](/forum/attachment/34561?download=1 "Capture3.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQxNzMtc2hvcHBpbmctY2FydC1pbWFnZS1vbi1hZGQtdG8tY2FydC1idXR0b24/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: 86574
- Thank you received: 14317
-
-

10 years 1 week ago [\#254926](#254926) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shopping Cart Image on Add to Cart button](/forum/26-product-category-display/884173-shopping-cart-image-on-add-to-cart-button#254926 "-- HikaShop version -- : 2.6.2  I have searched the forum but couldn't find an answer  I am trying to find the view where I can add a Shopping Cart image next to the text &quot;Add to Cart&quot; on the Add to Cart Button.  I have a span code I can use which I want to use -   My other question is - how do you know which elements are on which View. I can't work this out and it can take me a long time trying to find it in the Views.")*

Hi,

That's because since then, you changed the "button style" setting of the HikaShop configuration from "CSS" to "input" and because of that, the CSS code I provided isn't applied to the buttons as they use different HTML code.
Switch back to CSS in that setting of the HikaShop configuration and it should work fine.

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

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

Less More

- Posts: 96
- Thank you received: 1
-
-

10 years 1 week ago [\#254964](#254964) by [dafyalex](/forum/user/40197-dafyalex "View dafyalex's Profile")  Replied by *[dafyalex](/forum/user/40197-dafyalex "View dafyalex's Profile")* on topic *[Shopping Cart Image on Add to Cart button](/forum/26-product-category-display/884173-shopping-cart-image-on-add-to-cart-button#254964 "-- HikaShop version -- : 2.6.2  I have searched the forum but couldn't find an answer  I am trying to find the view where I can add a Shopping Cart image next to the text &quot;Add to Cart&quot; on the Add to Cart Button.  I have a span code I can use which I want to use -   My other question is - how do you know which elements are on which View. I can't work this out and it can take me a long time trying to find it in the Views.")*

It's ok now. Thank's

But the problem is that the image appears on others buttons that "Add to cart".

How can I do to prevent this.

Thank's

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQxNzMtc2hvcHBpbmctY2FydC1pbWFnZS1vbi1hZGQtdG8tY2FydC1idXR0b24/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: 86574
- Thank you received: 14317
-
-

10 years 1 week ago [\#254980](#254980) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shopping Cart Image on Add to Cart button](/forum/26-product-category-display/884173-shopping-cart-image-on-add-to-cart-button#254980 "-- HikaShop version -- : 2.6.2  I have searched the forum but couldn't find an answer  I am trying to find the view where I can add a Shopping Cart image next to the text &quot;Add to Cart&quot; on the Add to Cart Button.  I have a span code I can use which I want to use -   My other question is - how do you know which elements are on which View. I can't work this out and it can take me a long time trying to find it in the Views.")*

Hi,

Then prepend that CSS code with the class .hikashop_product_stock
and that way it will only apply to that button.

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

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

Less More

- Posts: 96
- Thank you received: 1
-
-

10 years 1 week ago [\#255061](#255061) by [dafyalex](/forum/user/40197-dafyalex "View dafyalex's Profile")  Replied by *[dafyalex](/forum/user/40197-dafyalex "View dafyalex's Profile")* on topic *[Shopping Cart Image on Add to Cart button](/forum/26-product-category-display/884173-shopping-cart-image-on-add-to-cart-button#255061 "-- HikaShop version -- : 2.6.2  I have searched the forum but couldn't find an answer  I am trying to find the view where I can add a Shopping Cart image next to the text &quot;Add to Cart&quot; on the Add to Cart Button.  I have a span code I can use which I want to use -   My other question is - how do you know which elements are on which View. I can't work this out and it can take me a long time trying to find it in the Views.")*

Hi,

Thank you very much. It's working !

Best regards.

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

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