Stock level

GK User
Thu May 31, 2012 10:44 am
Hello,

on this template the stock level is displayed as an green bar. But it is not accurate.

How can i change this to numerick value?

so like this:

Stock: 39
User avatar
Fresh Boarder

teitbite
Sat Jun 02, 2012 8:02 am
Hi

Please show me an exact page with an example.
User avatar
Moderator

GK User
Mon Jun 04, 2012 10:50 am
teitbite wrote:Hi

Please show me an exact page with an example.


https://www.deeenhoornsieraden.nl/shop/ ... 11f61.html
User avatar
Fresh Boarder

teitbite
Tue Jun 05, 2012 7:18 am
Hi

This link is leading to 404 error. Please tell me the correct url.
User avatar
Moderator

GK User
Wed Jun 06, 2012 9:48 pm
Never mind, i removed the stock image. This can be closed
User avatar
Fresh Boarder

teitbite
Thu Jun 07, 2012 10:51 am
Hi

Ok. No problem.
User avatar
Moderator

GK User
Wed Dec 12, 2012 1:13 pm
Hello. I'm really interested on show in my website the stocklevel in numbers, not in a level bar. The previous responese said he removed the stocklevel but i would like to achieve it. Also, in the product details does not appear the stock level of the seleced product. Anyway to add the stock level in the product details page?

How can I do it?


Menwhile, enjoy the girl on the photo! ;)
User avatar
Junior Boarder

teitbite
Thu Dec 13, 2012 1:54 pm
Hi

@zrylux I can help You with stock number instead of a bar. Please just show me an example page with this bar.
User avatar
Moderator

GK User
Thu Dec 13, 2012 2:47 pm
You can see my website in my previous reply. There is an attached image showing the stock level bar. Do you see that green line? That's the stock level.

I'm using the eSport template.

The green bar also appears here:

http://demo.gavick.com/joomla25/eSport/ ... ut/goggles
User avatar
Junior Boarder

teitbite
Thu Dec 13, 2012 8:01 pm
Hi

I needed to see the live site to check the code. Now I see that there is no numbers given just options like: nostock, normalstock, lowstock. Each got the same visual presentation. I'm sure it's possible to bring that out but I will need an FTP access to play with code and see how to display that.
User avatar
Moderator

GK User
Mon Dec 17, 2012 11:38 am
I've sent to you ftp acces details via PM.

Thanks
User avatar
Junior Boarder

teitbite
Tue Dec 18, 2012 1:38 am
Hi

I've edited /html/com_virtuemart/category/default.php and replaced this code:

Code: Select all
<span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span>


into

Code: Select all
<span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"><?php echo $product->product_in_stock; ?></span>


Please just add this to css to make it look better:

Code: Select all
.vm2-normalstock, .vm2-nostock, .vm2-lowstock {
    margin-bottom: 15px;
}
User avatar
Moderator


cron