Post by twicksisted » Wed Apr 10, 2013 12:47 am

I have had a look through the available modules/extensions for stock quantities and cant find the right one so hopefully someone can help.

Currently my stock items show on the site as either "in stock" or "out of stock". Alternatively it will show how many items that I actually have in stock for that product.

What I want is to show everything in stock up from 0-5 items... then if I have more than 5 items it just shows "5+ items in stock" but not the actual amount more. Reasoning for this is I generally do not carry more than 10 items in stock of each product at this point in time and this will make the store look better and give a better impression and also not give away how many sales im making to competitors.

Anyone knows of a module / extension that does this?

Many thanks :)

Newbie

Posts

Joined
Sat Sep 29, 2012 12:44 am

Post by iceptic » Wed Apr 10, 2013 1:20 am

there isnt a module i have see you would need to modify core files


you would need to have like this(ont have enough time at the moment to write it fully for you and give you core files will edit post later with full info)

$product_quantity = mysql_query("select * from product,'quantity');

if $product_quantity < 5 echo "less than 5"
{
else
$product_quantity => 5 echo "more than 5 availble"
}

as i said stripped down version not even proper syntax will update later with files u need to edit with proper code...

New member

Posts

Joined
Tue Mar 19, 2013 7:50 am

Post by twicksisted » Wed Apr 10, 2013 1:44 am

wow thank you! I'm not sure how to edit the files as you have in your post above but if you could send me the files/code at a later stage it would be much appreciated :)

Newbie

Posts

Joined
Sat Sep 29, 2012 12:44 am
Who is online

Users browsing this forum: Bing [Bot] and 2 guests