Hi
I use the (sj market) template for my website with joomla 3X
I want to know how to display the merchandise of virtumart in stock products on the home page.
for example:
30 item in stock
thanks
Probably something like this:
$stocklevel = $product->product_in_stock - $product->product_ordered;
echo $stocklevel . vmText::_ ('VM_ITEM_IN_STOCK'));
Otherwise, ask SJ market.
Jörgen @ Kreativ Fotografi
Thank
Where should I add this code to my template?
QuoteI use the (sj market) template for my website with joomla 3X
You have a custom template, my guess would be in the templates/your_template/html/com_virtuemart/sublayouts/products.php.
regards
Jörgen @ Kreativ Fotografi
In the description of the product virtumart displays the product inventory only in stuck and I want to show the stuok count. Will this problem be replaced by the replacement of this code?
My code shows (instock - ordered) amount, I can not know what your current template shows.
Jörgen @ Kreativ Fotografi
my template show "in stock" too but i want to display the number of inventory for example "30 item in stock"
Did you understand؟
NO, did You read my answer ?
available = instock - ordered, what Do You want to see ????
Jörgen @ Kreativ Fotografi
$product->product_in_stock - $product->product_ordered;
Display the stock that the customer can order