- Posts: 59
- Thank you received: 2
Traffic Light System for Stock
13 years 9 months ago #81426
by MikeB
Traffic Light System for Stock was created by MikeB
Hello,
is it possible (now or in the near future) to make a "traffic light" system,
for the avaible stock.
RED for not on stock
ORANGE for small stock
GREEN for on stock
Because the Avaible with Number on Stock looks not very nice. And some Products
have a deliever time of 2 or 3 days - so the Light can be green or orange when the
stock is on zero... (now it displays not avaible)
just a request / wish
thank you
is it possible (now or in the near future) to make a "traffic light" system,
for the avaible stock.
RED for not on stock
ORANGE for small stock
GREEN for on stock
Because the Avaible with Number on Stock looks not very nice. And some Products
have a deliever time of 2 or 3 days - so the Light can be green or orange when the
stock is on zero... (now it displays not avaible)
just a request / wish
Please Log in or Create an account to join the conversation.
13 years 9 months ago - 13 years 9 months ago #81468
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Traffic Light System for Stock
Hi,
You can already implement such feature in your product page.
Thanks to view override, you can edit the view "product | quantity".
In this view, the quantity is display like that:
So you can remove it and display in image depending the value of "$this->row->product_quantity".
In the view there are three section.
The first when the product quantity is unlimited
The second when the product quantity have a value
And the last one, when the product does not have stock.
Regards,
You can already implement such feature in your product page.
Thanks to view override, you can edit the view "product | quantity".
In this view, the quantity is display like that:
Code:
echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>';
In the view there are three section.
The first when the product quantity is unlimited
Code:
if($this->row->product_quantity==-1){
/* ... */
}
Code:
}elseif($this->row->product_quantity>0){
?>
<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/>';
/* ... */
}
Code:
}else{
?>
<div class="hikashop_product_no_stock">
<?php
echo JText::_('NO_STOCK');
/* ... */
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Last edit: 13 years 9 months ago by Jerome.
Please Log in or Create an account to join the conversation.
13 years 9 months ago #81492
by MikeB
Replied by MikeB on topic Traffic Light System for Stock
:blink: uuuuh ! i think i´m to stupid for that...
is it possible that you can write me the code ready so that i can it past it in my view ?
the images are stored in the joomla media folder named "stocksigns"
for unlimted stock - ampel0.png
less then 6 pcs on stock - ampel1.png
no stock - ampel2.png
that want to be nice - because in the moment i collect experience - but i donßt wont to destroy
the shop... :blush:
thanks a lot
is it possible that you can write me the code ready so that i can it past it in my view ?
the images are stored in the joomla media folder named "stocksigns"
for unlimted stock - ampel0.png
less then 6 pcs on stock - ampel1.png
no stock - ampel2.png
that want to be nice - because in the moment i collect experience - but i donßt wont to destroy
the shop... :blush:
thanks a lot
Please Log in or Create an account to join the conversation.
13 years 9 months ago #81536
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Traffic Light System for Stock
Hi,
This would be some customization that we could not provide like that as support. It would ask for several lines of code and so, so times to implement it.
You can ask for 3th party developer, use our "commercial jobs" section.
But the most important thing is that, you can use "view overrides" without breaking anything.
At any moment, you can delete your override and retrieve the original HikaShop file (which wouldn't be overwrite, just override).
Regards,
This would be some customization that we could not provide like that as support. It would ask for several lines of code and so, so times to implement it.
You can ask for 3th party developer, use our "commercial jobs" section.
But the most important thing is that, you can use "view overrides" without breaking anything.
At any moment, you can delete your override and retrieve the original HikaShop file (which wouldn't be overwrite, just override).
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.145 seconds