Hello,
I have just started using prestashop and i have an idea for an module on my homepage
this is the idea.:
A bar under the products that checks the stock in your shop for example :
A Bag comes in the sizes S M L XL
There are bags in stock of the sizes m and L and these light up green and the others that are not in stock are red
I figured even an script based on the idea of the stock amount options in prestashop itself that automaticly sets the status to a pre determined line like : not in stock. can be altered to use in the idea.
i've also looked at some script like javascript but these sometimes get blocked
<html>
<body>
<script type="text/javascript">
var d = new Date();
var time = d.getHours();
if (time < 10)
{
document.write("<b>Good morning</b>");
}
else
{
document.write("<b>Good day</b>");
}
</script>
Maybe this can be implented with some modifications like if stock = <1 display red background in table 1 for example
I hope someone can help me with this ,
Thanks in advance
|