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

#   HikaShop Button

##

- **[1GREG](/forum/user/37258-1greg "View 1GREG's Profile")**
- [![1GREG's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37258.png)](/forum/user/37258-1greg "View 1GREG's Profile") Topic Author
- [ Offline](/forum/user/37258-1greg)

Less More

- Posts: 14
- Thank you received: 0
-
-
- [](http://blueskylimited.tk)
-

11 years 1 month ago [\#214071](#214071) by [1GREG](/forum/user/37258-1greg "View 1GREG's Profile")  *[HikaShop Button](/forum/26-product-category-display/879257-hikashop-button#214071 "-- HikaShop version -- : 2.50 -- Joomla version -- : 3.4 -- PHP version -- : 2.4 -- Browser(s) name and version -- : Chrome  Welcome  I am trying to change button for HikaShop and i have found code where to insert CSS mod but i cannot find this on FTP.  div class=&quot;hikashop&#95;product&#95;stock&quot;&gt;Add to cartinput id=&quot;hikashop&#95;product&#95;quantity&#95;field&#95;1&quot; type=&quot;hidden&quot; value=&quot;1&quot; class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; name=&quot;quantity&quot;  I need to change class=&quot;button-default&quot; but can you tell me where to find this in Hika Files. &#91;image&#93; Greetings and Thank you G")* was created by *[1GREG](/forum/user/37258-1greg "View 1GREG's Profile")*

-- HikaShop version -- : 2.50
-- Joomla version -- : 3.4
-- PHP version -- : 2.4
-- Browser(s) name and version -- : Chrome

Welcome

I am trying to change button for HikaShop and i have found code where to insert CSS mod but i cannot find this on FTP.

div class="hikashop_product_stock"&gt;&lt;a rel="nofollow" **class="hikashop\_cart\_button"** href="#" onclick="var field=document.getElementById('hikashop_product_quantity_field_1');if(hikashopCheckChangeForm('item','hikashop_product_form_5_hikashop_category_information_module_106')){ return hikashopModifyQuantity('5',field,1,'hikashop_product_form_5_hikashop_category_information_module_106','cart',106); } return false;"&gt;Add to cart&lt;/a&gt;&lt;input id="hikashop_product_quantity_field_1" type="hidden" value="1" class="hikashop_product_quantity_field" name="quantity"

I need to change **class="button-default"** but can you tell me where to find this in Hika Files.
[ ![&#91;IMG](http://i57.tinypic.com/o07xjm.png) ](http://i57.tinypic.com/o07xjm.png "&#91;IMG")

***Greetings and Thank you G***

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzkyNTctaGlrYXNob3AtYnV0dG9uP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 1 month ago [\#214077](#214077) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[HikaShop Button](/forum/26-product-category-display/879257-hikashop-button#214077 "-- HikaShop version -- : 2.50 -- Joomla version -- : 3.4 -- PHP version -- : 2.4 -- Browser(s) name and version -- : Chrome  Welcome  I am trying to change button for HikaShop and i have found code where to insert CSS mod but i cannot find this on FTP.  div class=&quot;hikashop&#95;product&#95;stock&quot;&gt;Add to cartinput id=&quot;hikashop&#95;product&#95;quantity&#95;field&#95;1&quot; type=&quot;hidden&quot; value=&quot;1&quot; class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; name=&quot;quantity&quot;  I need to change class=&quot;button-default&quot; but can you tell me where to find this in Hika Files. &#91;image&#93; Greetings and Thank you G")*

Hi,

It comes from the line: Code:

$html= '&lt;a rel="nofollow" class="hikashop_cart_button'.$classname.'" '.$options.' '.$url.$ajax.'&gt;'.$name.'&lt;/a&gt;';

of the file administrator/components/com_hikashop/helpers/cart.php

But I would recommend instead to edit the file "quantity" via the menu Display&gt;Views and change the lines: Code:

echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'), 'add', $this-&gt;params,$url, $this-&gt;ajax, '', $max, $min);

to: Code:

echo str_replace('hikashop_cart_button','button-default',$this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'), 'add', $this-&gt;params,$url, $this-&gt;ajax, '', $max, $min));

That way, the change will be as a view override and you won't loose it when you update HikaShop in the future.

The following user(s) said Thank You: [1GREG](/forum/user/37258-1greg "View 1GREG's Profile")

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

- **[1GREG](/forum/user/37258-1greg "View 1GREG's Profile")**
- [![1GREG's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37258.png)](/forum/user/37258-1greg "View 1GREG's Profile") Topic Author
- [ Offline](/forum/user/37258-1greg)

Less More

- Posts: 14
- Thank you received: 0
-
-
- [](http://blueskylimited.tk)
-

11 years 1 month ago -  11 years 1 month ago [\#214149](#214149) by [1GREG](/forum/user/37258-1greg "View 1GREG's Profile")  Replied by *[1GREG](/forum/user/37258-1greg "View 1GREG's Profile")* on topic *[HikaShop Button](/forum/26-product-category-display/879257-hikashop-button#214149 "-- HikaShop version -- : 2.50 -- Joomla version -- : 3.4 -- PHP version -- : 2.4 -- Browser(s) name and version -- : Chrome  Welcome  I am trying to change button for HikaShop and i have found code where to insert CSS mod but i cannot find this on FTP.  div class=&quot;hikashop&#95;product&#95;stock&quot;&gt;Add to cartinput id=&quot;hikashop&#95;product&#95;quantity&#95;field&#95;1&quot; type=&quot;hidden&quot; value=&quot;1&quot; class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; name=&quot;quantity&quot;  I need to change class=&quot;button-default&quot; but can you tell me where to find this in Hika Files. &#91;image&#93; Greetings and Thank you G")*

Oh buttons looks so beautiful now ![XD](/laugh.gif "XD") As you see i even fixed stars code but i have problem with Finding that Class= in FTP files how did you found this?I mean you have this in memory or maybe you know easy way to find this class in files?

I am asking you this becose i have last button in coalacontact and once again i cannot find this simple line in files and maybe you know easy way to find wanted code.**If yes can you tell me how you doing this?**
[ ![&#91;IMG](http://i57.tinypic.com/8wzi3p.png) ](http://i57.tinypic.com/8wzi3p.png "&#91;IMG")

No i was wrong its not last one HikaShop- Procced to Checkout button also left i am trying now to find this now.
[ ![&#91;IMG](http://i57.tinypic.com/2efteyt.png) ](http://i57.tinypic.com/2efteyt.png "&#91;IMG")

**Greetings and Thank you**

Last edit: 11 years 1 month ago by [1GREG](/forum/user/37258-1greg "View 1GREG's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzkyNTctaGlrYXNob3AtYnV0dG9uP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 1 month ago [\#214169](#214169) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[HikaShop Button](/forum/26-product-category-display/879257-hikashop-button#214169 "-- HikaShop version -- : 2.50 -- Joomla version -- : 3.4 -- PHP version -- : 2.4 -- Browser(s) name and version -- : Chrome  Welcome  I am trying to change button for HikaShop and i have found code where to insert CSS mod but i cannot find this on FTP.  div class=&quot;hikashop&#95;product&#95;stock&quot;&gt;Add to cartinput id=&quot;hikashop&#95;product&#95;quantity&#95;field&#95;1&quot; type=&quot;hidden&quot; value=&quot;1&quot; class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; name=&quot;quantity&quot;  I need to change class=&quot;button-default&quot; but can you tell me where to find this in Hika Files. &#91;image&#93; Greetings and Thank you G")*

Hi,

I've developed myself HikaShop so I know it by memory.
But it's easy to search.
I just use the "search in files of a folder" feature of the software Notepad++, give it the path of my test website and it displays me all the results. You can do that too provided that you have a copy of your website files on your local computer.

The following user(s) said Thank You: [1GREG](/forum/user/37258-1greg "View 1GREG's Profile")

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

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

[](#top)
