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

#   Price is 0, but "Add to cart" not hidden

##

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

Less More

- Posts: 9
- Thank you received: 0
-
-

9 years 2 weeks ago [\#282447](#282447) by [samsup](/forum/user/45915-samsup "View samsup's Profile")  *[Price is 0, but "Add to cart" not hidden](/forum/26-product-category-display/892756-price-is-0-but-add-to-cart-not-hidden#282447 "-- url of the page with the problem -- :   www.samwelsupplies.com/index.php/part-gr...linders-and-heads-wl  -- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.something  Hello,  I have a little problem. Before today, my hikashop always worked fine, when price is 0euro ( acces level public) the &quot;Add to cart&quot; button was hidden, instead a text was displaying &quot;contact your dealer for more information&quot; with Joomla, and after I got that figured out this issue showed up, but I cannot figure out how this is linked to the &quot;add to cart&quot; button showing..  Any help or suggestion that can point in the right way will be much appreciated, thanks!")* was created by *[samsup](/forum/user/45915-samsup "View samsup's Profile")*

-- url of the page with the problem -- : [ www.samwelsupplies.com/index.php/part-gr...linders-and-heads-wl](http://www.samwelsupplies.com/index.php/part-groups/category/22-motor-parts-cylinders-and-heads-wl)
-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.something

Hello,

I have a little problem. Before today, my hikashop always worked fine, when price is 0euro ( acces level public) the "Add to cart" button was hidden, instead a text was displaying "contact your dealer for more information" &lt;- this text was setup in the dictionary file. AS of today, for unknown reasons to me, the add to cart button will not hide. I did make sure that the Display 'add to cart' button for free products is set to "NO"

The dealer and distributor usergroups see their prices, and the add to cart button shows as intended.

Am I missing another possible button or override setting here? I had some ACL issues today with Joomla, and after I got that figured out this issue showed up, but I cannot figure out how this is linked to the "add to cart" button showing..

Any help or suggestion that can point in the right way will be much appreciated, thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTI3NTYtcHJpY2UtaXMtMC1idXQtYWRkLXRvLWNhcnQtbm90LWhpZGRlbj90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14326
-
-

9 years 2 weeks ago [\#282451](#282451) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price is 0, but "Add to cart" not hidden](/forum/26-product-category-display/892756-price-is-0-but-add-to-cart-not-hidden#282451 "-- url of the page with the problem -- :   www.samwelsupplies.com/index.php/part-gr...linders-and-heads-wl  -- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.something  Hello,  I have a little problem. Before today, my hikashop always worked fine, when price is 0euro ( acces level public) the &quot;Add to cart&quot; button was hidden, instead a text was displaying &quot;contact your dealer for more information&quot; with Joomla, and after I got that figured out this issue showed up, but I cannot figure out how this is linked to the &quot;add to cart&quot; button showing..  Any help or suggestion that can point in the right way will be much appreciated, thanks!")*

Hi,

If the price displays 0.00€ instead of "Free", ( which you have changed with a translation override to your custom message ), it means that the price in the database is not 0.00000. It must be something like 0.00001, which is rounded to 0, but is not 0 and that's why the add to cart button still displays.
I would recommend checking your product prices (edit them when you are on the product page to see the exact value in the input field).

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

9 years 2 weeks ago -  9 years 2 weeks ago [\#282482](#282482) by [samsup](/forum/user/45915-samsup "View samsup's Profile")  Replied by *[samsup](/forum/user/45915-samsup "View samsup's Profile")* on topic *[Price is 0, but "Add to cart" not hidden](/forum/26-product-category-display/892756-price-is-0-but-add-to-cart-not-hidden#282482 "-- url of the page with the problem -- :   www.samwelsupplies.com/index.php/part-gr...linders-and-heads-wl  -- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.something  Hello,  I have a little problem. Before today, my hikashop always worked fine, when price is 0euro ( acces level public) the &quot;Add to cart&quot; button was hidden, instead a text was displaying &quot;contact your dealer for more information&quot; with Joomla, and after I got that figured out this issue showed up, but I cannot figure out how this is linked to the &quot;add to cart&quot; button showing..  Any help or suggestion that can point in the right way will be much appreciated, thanks!")*

Hi Nicholas,

Thanks for replying. When I look in the product field, the public price shows to me as:
Price

0.00000
Price with tax

0

I have imported the products via CSV file. I put the prices into the file in this fashion which has so far always worked fine ( 0 showing as free) but today it suddenly decided to go another way..
price_value;price_access
245&#124;199&#124;0;,14,&#124;,15,&#124;,1 ,

Edit;
Display 'Add to cart' button
I just found out that the "add to cart" button remains visible even when " Display 'Add to cart' button " in menu Display &gt; Default parameters for products is set to "NO"

Is there another master override for the add to cart button somewhere else?

Last edit: 9 years 2 weeks ago by [samsup](/forum/user/45915-samsup "View samsup's Profile"). Reason: Got some more information

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTI3NTYtcHJpY2UtaXMtMC1idXQtYWRkLXRvLWNhcnQtbm90LWhpZGRlbj90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14326
-
-

9 years 2 weeks ago [\#282485](#282485) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price is 0, but "Add to cart" not hidden](/forum/26-product-category-display/892756-price-is-0-but-add-to-cart-not-hidden#282485 "-- url of the page with the problem -- :   www.samwelsupplies.com/index.php/part-gr...linders-and-heads-wl  -- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.something  Hello,  I have a little problem. Before today, my hikashop always worked fine, when price is 0euro ( acces level public) the &quot;Add to cart&quot; button was hidden, instead a text was displaying &quot;contact your dealer for more information&quot; with Joomla, and after I got that figured out this issue showed up, but I cannot figure out how this is linked to the &quot;add to cart&quot; button showing..  Any help or suggestion that can point in the right way will be much appreciated, thanks!")*

Hi,

You have an extra space between the 1 and the last comma.
That might contribute to the issue.
Besides that I don't know.
If that doesn't help, then we'll need a backend access in order to check on the situation.
You can provide that via our contact form if necessary:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

9 years 2 weeks ago [\#282633](#282633) by [samsup](/forum/user/45915-samsup "View samsup's Profile")  Replied by *[samsup](/forum/user/45915-samsup "View samsup's Profile")* on topic *[Price is 0, but "Add to cart" not hidden](/forum/26-product-category-display/892756-price-is-0-but-add-to-cart-not-hidden#282633 "-- url of the page with the problem -- :   www.samwelsupplies.com/index.php/part-gr...linders-and-heads-wl  -- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.something  Hello,  I have a little problem. Before today, my hikashop always worked fine, when price is 0euro ( acces level public) the &quot;Add to cart&quot; button was hidden, instead a text was displaying &quot;contact your dealer for more information&quot; with Joomla, and after I got that figured out this issue showed up, but I cannot figure out how this is linked to the &quot;add to cart&quot; button showing..  Any help or suggestion that can point in the right way will be much appreciated, thanks!")*

The space before the comma is a copy paste error, I just typed the comma afterward to fix it. In the CSV file there is no space. I will contact you with backend acces as I am lost here

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTI3NTYtcHJpY2UtaXMtMC1idXQtYWRkLXRvLWNhcnQtbm90LWhpZGRlbj90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14326
-
-

9 years 1 week ago [\#282780](#282780) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price is 0, but "Add to cart" not hidden](/forum/26-product-category-display/892756-price-is-0-but-add-to-cart-not-hidden#282780 "-- url of the page with the problem -- :   www.samwelsupplies.com/index.php/part-gr...linders-and-heads-wl  -- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.something  Hello,  I have a little problem. Before today, my hikashop always worked fine, when price is 0euro ( acces level public) the &quot;Add to cart&quot; button was hidden, instead a text was displaying &quot;contact your dealer for more information&quot; with Joomla, and after I got that figured out this issue showed up, but I cannot figure out how this is linked to the &quot;add to cart&quot; button showing..  Any help or suggestion that can point in the right way will be much appreciated, thanks!")*

Hi,

We got the access.
I seems I got confused.
Note that if you create a price through the interface of HikaShop with the price 0.00000 and save the product, you'll see that the price will disappear from the prices listing.
You only have the price there because you specifically asked the import system to add a price entry with a value of 0.
But you actually don't want that.
You want just nothing.
So your CSV shouldn't be :
price_value;price_access
245&#124;199&#124;0;,14,&#124;,15,&#124;,1,
but it should actually be:
price_value;price_access
245&#124;199;,14,&#124;,15,
And in that case, it will work properly.

The following user(s) said Thank You: [samsup](/forum/user/45915-samsup "View samsup's Profile")

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

9 years 1 week ago [\#282783](#282783) by [samsup](/forum/user/45915-samsup "View samsup's Profile")  Replied by *[samsup](/forum/user/45915-samsup "View samsup's Profile")* on topic *[Price is 0, but "Add to cart" not hidden](/forum/26-product-category-display/892756-price-is-0-but-add-to-cart-not-hidden#282783 "-- url of the page with the problem -- :   www.samwelsupplies.com/index.php/part-gr...linders-and-heads-wl  -- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.something  Hello,  I have a little problem. Before today, my hikashop always worked fine, when price is 0euro ( acces level public) the &quot;Add to cart&quot; button was hidden, instead a text was displaying &quot;contact your dealer for more information&quot; with Joomla, and after I got that figured out this issue showed up, but I cannot figure out how this is linked to the &quot;add to cart&quot; button showing..  Any help or suggestion that can point in the right way will be much appreciated, thanks!")*

Nicholas, thank you so much for finding this out! I see how you changed my first record, it works indeed.
It did work in previous versions of hikashop like you told before, as we had been uploading CVS in that format for the past year or so without problems. Only when we did a reinstall ( and went to latest version) something must have changed. Not a problem, but good to know for others too maybe!

In any case I now know how to fix up my export scripts to provide the correct information

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

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

Less More

- Posts: 198
- Thank you received: 4
-
-

8 months 3 weeks ago -  8 months 3 weeks ago [\#370714](#370714) by [arnask](/forum/user/6752-arnask "View arnask's Profile")  Replied by *[arnask](/forum/user/6752-arnask "View arnask's Profile")* on topic *[Price is 0, but "Add to cart" not hidden](/forum/26-product-category-display/892756-price-is-0-but-add-to-cart-not-hidden#370714 "-- url of the page with the problem -- :   www.samwelsupplies.com/index.php/part-gr...linders-and-heads-wl  -- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.something  Hello,  I have a little problem. Before today, my hikashop always worked fine, when price is 0euro ( acces level public) the &quot;Add to cart&quot; button was hidden, instead a text was displaying &quot;contact your dealer for more information&quot; with Joomla, and after I got that figured out this issue showed up, but I cannot figure out how this is linked to the &quot;add to cart&quot; button showing..  Any help or suggestion that can point in the right way will be much appreciated, thanks!")*

The problem is that when you save product with price 0, it removes the price and displays as free product. But if you set the price directly in DB (for many reasons) it shoes 0,00 and Add to cart button is still present. I hide the Add to cart button in CSS with Code:

.nx-right:has(.hikashop_product_price_0) .hikabtn.hikacart, .nx-right:has(.hikashop_product_price_0) .hikashop_quantity_form, .nx-right:has(.hikashop_product_price_0) .nx-qty-line { display: none !important; } .hikashop_subcontainer:has(.hikashop_product_price_0) .hikabtn.hikacart, .hikashop_subcontainer:has(.hikashop_product_price_0) .hikashop_product_stock_count, .hikashop_subcontainer:has(.hikashop_product_price_0) input[name="add"] { display: none !important; }

but i think its not right way to do

Last edit: 8 months 3 weeks ago by [arnask](/forum/user/6752-arnask "View arnask's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTI3NTYtcHJpY2UtaXMtMC1idXQtYWRkLXRvLWNhcnQtbm90LWhpZGRlbj90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14326
-
-

8 months 3 weeks ago [\#370716](#370716) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price is 0, but "Add to cart" not hidden](/forum/26-product-category-display/892756-price-is-0-but-add-to-cart-not-hidden#370716 "-- url of the page with the problem -- :   www.samwelsupplies.com/index.php/part-gr...linders-and-heads-wl  -- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.something  Hello,  I have a little problem. Before today, my hikashop always worked fine, when price is 0euro ( acces level public) the &quot;Add to cart&quot; button was hidden, instead a text was displaying &quot;contact your dealer for more information&quot; with Joomla, and after I got that figured out this issue showed up, but I cannot figure out how this is linked to the &quot;add to cart&quot; button showing..  Any help or suggestion that can point in the right way will be much appreciated, thanks!")*

Hi,

The "Display add to cart button for free products" setting applies to products that have no price entry at all. A product with a price row set to 0 is not considered "free" by this logic - it has a price, it just happens to be zero. So the add to cart button will still display.

If that's a problem on your end because you have prices with a 0 value, you can simply run a SQL query to delete those price entries:
DELETE FROM #__hikashop_price WHERE price_value = 0

That way, those products will truly have no price and the "Display add to cart button for free products" setting will apply to them correctly.
If you only want to target specific products (e.g., from a certain category), you can use a mass action with a filter and a SQL action using:
DELETE FROM #__hikashop_price WHERE price_value = 0 AND price_product_id = {product_id}
[ www.hikashop.com/support/documentation/167-massaction-form.html](https://www.hikashop.com/support/documentation/167-massaction-form.html)

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

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