Skip to main content

Stock levels

More
13 years 10 months ago #80741 by jimbud
Stock levels was created by jimbud
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.

More
13 years 10 months ago #80765 by Jerome
Replied by Jerome on topic Stock levels
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.

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

More
13 years 10 months ago #80770 by jimbud
Replied by jimbud on topic Stock levels
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.

More
13 years 10 months ago #80815 by Xavier
Replied by Xavier on topic Stock levels
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.

More
13 years 10 months ago #80861 by jimbud
Replied by jimbud on topic Stock levels
Thanks, found and edited the file. Works perfect, thank you :)

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

More
13 years 4 months ago - 13 years 4 months ago #108034 by mirkozax
Replied by mirkozax on topic Stock levels
Hi, If I add:
Code:
.hikashop_product_stock_count{ display:none; }

there is a space before button cart, how I can hide this ?
Last edit: 13 years 4 months ago by mirkozax.

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

More
13 years 4 months ago #108057 by Xavier
Replied by Xavier on topic Stock levels
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.

More
13 years 4 months ago #108064 by mirkozax
Replied by mirkozax on topic Stock levels
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.

More
13 years 4 months ago #108079 by Mohamed Thelji
Replied by Mohamed Thelji on topic Stock levels
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.

More
13 years 4 months ago - 13 years 4 months ago #108100 by mirkozax
Replied by mirkozax on topic Stock levels
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
Last edit: 13 years 4 months ago by mirkozax.

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

More
13 years 4 months ago #108121 by Mohamed Thelji
Replied by Mohamed Thelji on topic Stock levels
I tried to reproduce the problem but your product listing seems to be ok.

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

More
13 years 4 months ago - 13 years 4 months ago #108126 by mirkozax
Replied by mirkozax on topic Stock levels
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: 13 years 4 months ago by mirkozax.

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

More
13 years 4 months ago #108146 by Mohamed Thelji
Replied by Mohamed Thelji on topic Stock levels
Ok and how did you edited your language file ?

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

More
13 years 4 months ago #108153 by mirkozax
Replied by mirkozax on topic Stock levels
like this
Code:
X_ITEMS_IN_STOCK=""

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

More
13 years 4 months ago #108250 by Jerome
Replied by Jerome on topic Stock levels
Hi,

Try to add a CSS rule:
Code:
.hikashop_product_stock_count{ display:none; }

And edit the view "product | quantity" to replace the line:
Code:
echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>';
By:
Code:
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.
The following user(s) said Thank You: mirkozax

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

More
13 years 4 months ago #108419 by mirkozax
Replied by mirkozax on topic Stock levels
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.114 seconds
Powered by Kunena Forum