No stock display
- condorazul
-
Topic Author
- Offline
Resuming, change the text out of stock for a buttom see the product in product listing view
Please Log in or Create an account to join the conversation.
You just have to do some views override.
www.hikashop.com/support/support/documen...ize-the-display.html
Edit "product / quantity" and check replace
SEE_THE_PRODUCT="See product"
Please Log in or Create an account to join the conversation.
- condorazul
-
Topic Author
- Offline
Inside the product just no stock.
Please Log in or Create an account to join the conversation.
Replace the code of the product/quantity.php with this and it should do what you want:
Please Log in or Create an account to join the conversation.
- condorazul
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
1.Can you check that you replaced the code of the "quantity" file of the "product" view of the GOOD template through "Hikashop->Display->Views" ?
2. Can you show me through some screenshots what do yo exactly want to do ?
Please Log in or Create an account to join the conversation.
- condorazul
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Please Log in or Create an account to join the conversation.
- condorazul
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
Thanks to try to replace:
Please Log in or Create an account to join the conversation.
- condorazul
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- Posts: 36
- Thank you received: 0
I am trying to follow this post in order to get rid of the no stock display, or to include something similar in order to get rid of it.
The code above does not work. Maybe any changement from 10 months ago till date?
I even tried to delete the entire line
echo JText::_('NO_STOCK');
and the text does not even delete on page products.
Honored
Please Log in or Create an account to join the conversation.
If you delete that line from the view file and you don't see any change it can come from two things:
- You're editing the file from the wrong template. Make sure that you're doing it for your frontend template.
- You have some caching on your website preventing you from seeing the change.
Please Log in or Create an account to join the conversation.
- Posts: 36
- Thank you received: 0
This is strange, because when editing products, I try to put quantity, on the quantitity field,.
I tried to change it from Unlimited to 8 for example and still says no stock display.
No cache activated and all cache and browser cache cleaned.
So I went to HikaShop > Display > Views:
I go to my template and select front end. Then going to product quantity to edit it.
I try to delete the line :
echo JText::_('NO_STOCK');
and still the display No stock appears.
So I want to delete that display, by even delete the piece or code or by including some item quantity, but nothing happens and no item quantity even displayed.
Honored dear Nicolas
Please Log in or Create an account to join the conversation.
- Posts: 36
- Thank you received: 0
Please Log in or Create an account to join the conversation.
I don't see how that's possible.
Can you give a link to the page ?
Please Log in or Create an account to join the conversation.
- Posts: 36
- Thank you received: 0
unfortunately I am finishing it on localhost. if needed i will upload for you.
By the way, this is the complete product / quantity.php .
I just deleted the end:
line echo JText::_('NO_STOCK');
after
<div class="hikashop_product_no_stock">
***************************************
Please Log in or Create an account to join the conversation.
- Posts: 36
- Thank you received: 0
Please Log in or Create an account to join the conversation.
The text don't seem to be coming from the view "product / quantity" but from another one.
We don't have that by default in HikaShop, so it is potentially a view override made by your template.
Please check in the view "product / show_default" if there is no code related on that.
Please Log in or Create an account to join the conversation.
- Posts: 36
- Thank you received: 0
This small code was at my template view "product / show_default" , I just deleted :
else{ echo '<span class="hikashop_product_stock_count">'.JText::_('NO_STOCK').'</span>';}
See all piece of code. Closed for me. i hope it to be useful to somebody else. Your are the best guys!
/////////////////
<?php
if( $this->row->main->product_quantity > 0){
echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->main->product_quantity).'</span>';
}else{ echo '<span class="hikashop_product_stock_count">'.JText::_('NO_STOCK').'</span>';} ?>
Please Log in or Create an account to join the conversation.