I am trying to add the width and length information to the product description in my template. I am new to virtualmart but not to php. I am trying to figure out how to use their api and framework.
What I am trying to do is to populate $product_width and $product_height with the values that you enter in at the admin level under the product dimensions and weight tab. Can anyone help?
Thanks
http://forum.virtuemart.net/index.php?topic=92756.0
Thank you very much for your reply. I am new to Virtualmart so I am having to learn the framework while trying to develop for my client.
The site I am working on uses VirtueMart 1.1.9 stable. I looked at upgrading, but they use a plugin called vmupload which doesn't appear to be available for version 2.
What they want me to do is to create a preview of what the product will look like with the uploaded photo. Their products are door mats. My code takes the uploaded photo and then places it over a box the size of the door mat. Each door mat is a different size so I need to get the dimensions of the product to create the box. The page you gave me was excellent except it didn't work. I am guessing because it is version 2.
Below is the code I was using to put the dimensions on the page and to pass the dimensions to my code. This is being put in flypage.tpl.php.
<?php
global $product_height;
$product_height= $this->product->product_height;
echo "Height: ";
echo $product_height;
echo "<br>";
global $product_width;
$product_width= $this->product->product_width;
echo "<br>Width: ";
echo $product_width;
?>
From within the modified plugin I am am reading the
QuoteThe site I am working on uses VirtueMart 1.1.9 stable.
Then why are you posting here and not in the old VirtueMart 1.1 section?????
That old VM version is no longer supported - and Joomla 1.5 is no longer supported either as from last September. http://forum.virtuemart.net/index.php?topic=106865.0
VMupload has been available for VirtueMart 2 since January last year. http://www.joomlavm.com/index.php?/Components/VMUpload-2.7-for-virtuemart-2.0/flypage.tpl.html
There is another uploader, too: http://virtuemart-order-upload.cmsmart.net/virtuemart-extensions/virtuemart-order-upload-plugin