Welcome Guest, Not a member yet? Register   Sign In
Merchandise Inventory Management
#4

[eluser]CtheB[/eluser]
Yeah i just tell you how i handled this.

I think you could build in an option where it would be possible to do it.
It's not that hard to implement.

Do it like the following:

With every page refresh, look at the product id's from a client's shopping cart against the stock of the product inside the database.
If the stock is 0 and the product is marked as "pop up message if stock is zero and product is in shopping cart".

foreach(products as id)
{

select stock, message, title from products where id = $id

if(stock == 0 && message == 1)
{
message[id] = title;
}
}

the idea is simple and also fast. You only have to make it valid php and sql.
The hardest part is, how to bring the message to the customer.
Some nice jquery pop up box? Or just a redirect to another page. That's up to you.
You should implement them both and let the customer decide wich version he uses.


Messages In This Thread
Merchandise Inventory Management - by El Forum - 12-09-2009, 01:42 PM
Merchandise Inventory Management - by El Forum - 12-09-2009, 05:26 PM
Merchandise Inventory Management - by El Forum - 12-09-2009, 06:02 PM
Merchandise Inventory Management - by El Forum - 12-09-2009, 06:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB