News:

Looking for documentation? Take a look on our wiki

Main Menu

How to display "Units in Box"

Started by tzic, May 02, 2014, 13:50:23 PM

Previous topic - Next topic

tzic

Hi,

there is a field called "Units in box" inside product creation menu. I tried to find the product page field in order to use it in my custom productdetailspage but I could not find it. I tried

<?php echo $this->product->product_units_in_box ?>

but it didnt work

Any ideas?

jenkinhill

<?php echo $this->product->product_unit ?>

It is in a sticky at the top of this page!  http://forum.virtuemart.net/index.php?topic=92756.0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

tzic

thank you for the reply but this is something else. I have read the sticky. You are reffering to product unit eg Kilogramm, milligram, pounds etc. I want to show the "units in box" that is, how many units are inside the box. Example, product is a box of medical examination gloves, which contains 100 gloves in the packaging. So units in the box = 100.

ANy other ideas?

Quote from: jenkinhill on May 02, 2014, 20:44:51 PM
<?php echo $this->product->product_unit ?>

It is in a sticky at the top of this page!  http://forum.virtuemart.net/index.php?topic=92756.0

GJC Web Design

does <?php echo $this->product->product_packaging ?>  show it?
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

tzic

Quote from: GJC Web Design on May 02, 2014, 21:59:54 PM
does <?php echo $this->product->product_packaging ?>  show it?

unfortunately this shows something else. It is for liquid units or weight units. For example how many litres is the product. It's not how many units are in the box...

jenkinhill

I always understood that the units in a box value is to be used with shipping plugins that use the parameter in calculating shipping cost.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

Found it

$this->product->product_box
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

tzic

Quote from: GJC Web Design on May 02, 2014, 23:52:07 PM
Found it

$this->product->product_box

I tried various compinations but not this one! Thank you very much!