News:

Support the VirtueMart project and become a member

Main Menu

Displaying stock level as a number in Product

Started by Gingerweb, October 22, 2021, 15:25:26 PM

Previous topic - Next topic

Gingerweb

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

GJC Web Design

.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;
}


GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Gingerweb

Oh mate that is absolutely awesome very many thanks!