Skip to main content

Display on Stock

14 years 1 month ago - 14 years 1 month ago #66002 by fnuus
Display on Stock was created by fnuus
Hello,

Hikashop has the ability to "in stock" functions to display. It will be in stock products show. But now I do not want the number of stocks are products show, but I did manage it in stock products in hikashop. (Back-end)


For example :: in stock some products (keep in back-end) in the display (no display)
not in stock (keep in back-end) in the display (not in stock) that works.

Is this possible?

And is it possible to change the number of products in only "in stock"

For example: 11 products in stock (back-end) in the display front-end "product is in stock" so no numbers.

with kind regards,
Fred
Last edit: 14 years 1 month ago by fnuus.

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

14 years 1 month ago #66009 by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: Display on Stock
Hi Fred,

1. I didn't realy understood your question.

2. You'll just have to edit the quantity file of the product view of the front-end template that you are currently using, and replace the code
Code:
<div class="hikashop_product_stock"> <?php echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>'; if($config->get('button_style','normal')=='css'){ echo '<br />'; }
by this code
Code:
<div class="hikashop_product_stock"> <?php echo '<span class="hikashop_product_stock_count">Product is on stock</span><br/>'; if($config->get('button_style','normal')=='css'){ echo '<br />'; }

Hope this will help you.
The following user(s) said Thank You: fnuus

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

14 years 1 month ago #66029 by fnuus
Replied by fnuus on topic Re: Display on Stock
Hello,

I checked already my Template ( JSN_Epic_Pro ) but i can't find this piece of script.

Do you have some idea('s).

Fred

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

14 years 1 month ago #66034 by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: Display on Stock
I wasn't talking about your template but about your quantity file of the product view of the front-end template that you are currently using, you'll be able to edit this file through "Hikashop->Display->View".
The following user(s) said Thank You: fnuus

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

14 years 1 month ago #66103 by fnuus
Replied by fnuus on topic Re: Display on Stock
Sorry that i see that, my head was somewhere else. When i change this i get a error in the shop, but i think that i must change something in the translation to. NL-nl.com

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

14 years 1 month ago #66162 by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: Display on Stock
Can you show me your error ? (with a screenshot :)).

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

14 years 1 month ago #67867 by orient
Replied by orient on topic Re: Display on Stock
That was something i was trying to do, thanks for question and answer.

I went to to Hikashop, then Display and View. In the listing i found quantity file then customized it just like Mohamed told. I even added a little green tick image, it become better. It didnt get an error at all.

Thank you again for help.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum