VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Gingerweb on October 22, 2021, 15:25:26 PM

Title: Displaying stock level as a number in Product
Post by: Gingerweb on October 22, 2021, 15:25:26 PM
J: 3.10.2
VM: 3.8.8 10472

I have got this working but the lineup isnt right.
Can anyone assist please with adding the text "In Stock"  infront of the stock level number that this line produces:

<?php echo ($this->product->product_in_stock $this->product->product_ordered); ?>

So that it says:

In Stock: (then the number shows here)


example product on build site: https://fabrics.temp-gingerweb.com/ribbons/gros-grain-ribbon-red,-green-gold-stripe-50mm-wide-detail

many thanks
Title: Re: Displaying stock level as a number in Product
Post by: GJC Web Design on October 22, 2021, 16:21:20 PM
.product-stock-sku-cont.row.row-condensed {
   margin: 0 !important;
}
.product-stock-sku-cont.row.row-condensed::before {
   content: "In Stock: ";
   display: inline;
   font-weight: bold;
}
.product-sku-cont.col-sm-12 {
   padding-left: 0 !important;
}


Title: Re: Displaying stock level as a number in Product
Post by: Gingerweb on October 22, 2021, 16:47:13 PM
Oh mate that is absolutely awesome very many thanks!