Stock levels

  • Posts: 13
  • Thank you received: 0
  • Hikashop Business
11 years 11 months ago #80741

How do i keep product stock levels from displaying?
I want thee software to track inventory and display out of stock status i just don't want the "28 items in stock" to show anywhere on the front end.

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #80765

Hi,

There a three methods:
- You can edit the translation "X_ITEMS_IN_STOCK" in order to empty it (and so, display nothing instead).
- You can edit the view "product | quantity" and remove the line which would display the span with the translation of "X_ITEMS_IN_STOCK"
- You can add a css rule in order to hide the span which have the class "hikashop_product_stock_count".

The first solution would be, I think, the better one.

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: 13
  • Thank you received: 0
  • Hikashop Business
11 years 11 months ago #80770

Thank you for the reply. I am not sure where I find the file needed to modify and exactly how to empty it.
When I go to views the only Translation files I find do not contain that term.

Also any edits I make to the "product / quantity" file do not seem to stick and I am not sure exactly what line to remove.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #80815

Hi,

You can find the translation in HikaShop > Configuration > Language, then edit your language file and empty the value of "X_ITEMS_IN_STOCK"

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

  • Posts: 13
  • Thank you received: 0
  • Hikashop Business
11 years 10 months ago #80861

Thanks, found and edited the file. Works perfect, thank you :)

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

  • Posts: 57
  • Thank you received: 0
11 years 5 months ago #108034

Hi, If I add:

.hikashop_product_stock_count{ display:none; }

there is a space before button cart, how I can hide this ?

Last edit: 11 years 5 months ago by mirkozax.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #108057

Hi,

Without a link to your website it will be difficult to help you.
But you can probably solve the problem with some css.
www.hikashop.com/fr/support/documentatio...ize-the-display.html

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

  • Posts: 57
  • Thank you received: 0
11 years 5 months ago #108064

thi is the site: www.cartashop.com/cartoleria/index.php

now all products are -1

but I would like to put a stock in some

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

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #108079

Hi,

Can you tell me what your problem exactly is and what you really want to do with some screenshots for example.

Thanks :).

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

  • Posts: 57
  • Thank you received: 0
11 years 5 months ago #108100

you can see in the screenshoot, to the right is the product with 10 piece in stock, I have hide in language file ITEM IN STOCK, to the left is the product whit correct space with -1 product in stock

Attachments:
Last edit: 11 years 5 months ago by mirkozax.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #108121

I tried to reproduce the problem but your product listing seems to be ok.

Attachments:

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

  • Posts: 57
  • Thank you received: 0
11 years 5 months ago #108126

yes because now is -1...

I set at 10 in stock only for make screenshoot

When I hide the number of products in stock using the language file remain a space as you can see in the screen shot, I would delete this space

Last edit: 11 years 5 months ago by mirkozax.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #108146

Ok and how did you edited your language file ?

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

  • Posts: 57
  • Thank you received: 0
11 years 4 months ago #108153

like this

X_ITEMS_IN_STOCK=""

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 4 months ago #108250

Hi,

Try to add a CSS rule:

.hikashop_product_stock_count{ display:none; }

And edit the view "product | quantity" to replace the line:
echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>';
By:
echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'<br/></span>';
I think we will add this modification in HikaShop.

(You can also remove the line in the view, so the quantity won't be displayed at all).

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.
The following user(s) said Thank You: mirkozax

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

  • Posts: 57
  • Thank you received: 0
11 years 4 months ago #108419

Work, thanks, please add this in the next version, I think there is many people that don't need to display the stock at customers

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

Time to create page: 0.120 seconds
Powered by Kunena Forum