Display on Stock

  • Posts: 40
  • Thank you received: 0
12 years 1 month ago #66002

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: 12 years 1 month ago by fnuus.

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #66009

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

<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
<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.

  • Posts: 40
  • Thank you received: 0
12 years 1 month ago #66029

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.

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #66034

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.

  • Posts: 40
  • Thank you received: 0
12 years 1 month ago #66103

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.

  • Posts: 12953
  • Thank you received: 1778
12 years 1 month ago #66162

Can you show me your error ? (with a screenshot :)).

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

  • Posts: 4
  • Thank you received: 0
12 years 1 month ago #67867

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.086 seconds
Powered by Kunena Forum