how to set free product

  • Posts: 42
  • Thank you received: 0
8 years 2 months ago #228003

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8
-- PHP version -- : 3.5.3

Hi,

When i set the product price to zero, i have to put in 0.00 in order for it to be saved. Further, the product display shows $0.00 rather than free product and the add to cart buttonis not hidden. I am sure i have seen it works before until now. Sorry if it has been answered somewhere.

Gary

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
8 years 1 month ago #228010

Hello Gary,

Regarding the "Add to cart" button, you'll just have to set the "Display 'add to cart' button for free products" option to NO via "Hikashop->System->Configuration->Main".
Also, for a free product, it should actually display the "Free" text that you can translate through your translation file.

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 0
8 years 1 month ago #228087

I have done what you have said and i still get the amount "0.00". I have attached the screens.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
8 years 1 month ago #228097

Hi,

You need to delete the price with 0.00. Click on the bin icon for this price's row and that should do it.

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 0
8 years 1 month ago #228190

Hi, do you mean to click the delete icon? it will delete the whole row. If i leave the row blank, it won't be saved.

Please Log in or Create an account to join the conversation.

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
8 years 1 month ago #228199

Hi,

Yes. So what is the problem with having the row deleted ?

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 0
8 years 1 month ago #228328

let me explain one more time. i want to the product to show free, but if i leave the price field blank, it won't be saved. what should i put on the price field.

Gary

Please Log in or Create an account to join the conversation.

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
8 years 1 month ago #228332

Hi,

-0.000

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 0
8 years 1 month ago #228486

I tried but sorry, same result, show zero price. what can be done now.

Gary

Please Log in or Create an account to join the conversation.

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
8 years 1 month ago #228508

I really don't understand the problem here.
There are two cases possible:

1. You want to show "0.00$" on your product page. In that case, you enter a price row with 0.00 or -0.00 and that will display that on the product page;
2. You want to show "free" on your product page. In that case, you remove completely the price row. As the system won't find any price, it will display the text "free" on your product page.

We already provided the solution for both cases before. So if that's none of these that you want, then we don't know what you're trying to do.

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 2
7 years 1 month ago #261887

Hope it's ok to dig up this old thread. I am as equally confused as the OP.

How do I 'remove completely the price row' ?
I don't see any way to do that within the Product.

Many thanks.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
7 years 1 month ago #261903

Hi,

That default row is there so that you don't have to click plus to load the first row since most of the time, products have one price.
But that price row is not stored in the database.

When you don't have any price like in your product edition screenshot, you should see the text "Free" on the frontend, that you can change with a translation override.
I don't see why you would get $0.00.
That should only happen when you have a price with something like that: 0.00001 which would be stored in the database and then rounded to 0.00 on the frontend.

Please Log in or Create an account to join the conversation.

  • Posts: 42
  • Thank you received: 2
7 years 1 month ago #261978

Thanks Nicolas it worked great.

* set Price to 0
* set Quantity to Unlimited
* Edit Langauage file: Sysyem / Configuration / Languages <English> change FREE_PRICE from 'Free' to something else,
e.g. "Please Contact Us For Purchasing Details"

Paul.

Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.099 seconds
Powered by Kunena Forum