VirtueMart Forum

VirtueMart 2 + 3 => Templating & Layouts => Topic started by: kode5 on October 14, 2011, 18:11:11 pm

Title: How to add product details?
Post by: kode5 on October 14, 2011, 18:11:11 pm
Hi,

How do I add the information from the back-end to the product details?
I would like to add: Product URL, Product SKU and all the Product dimensions and weight?

Please help...

Thanks and cheers!
Title: Re: How to add product details?
Post by: PRO on October 14, 2011, 18:54:33 pm

http://forum.virtuemart.net/index.php?topic=90935.0


<?php echo $this->product->product_sku ?>
Title: Re: How to add product details?
Post by: kode5 on October 15, 2011, 09:14:58 am
I Tried for many hours now, and I just can make is show anything.

Can you please send me some example code I can copy and paste?  ::)

Thanks and regards.
Title: Re: How to add product details?
Post by: PRO on October 15, 2011, 14:45:30 pm
what have you tried?
Title: Re: How to add product details?
Post by: kode5 on October 15, 2011, 17:44:45 pm
I copy and pasted this code:

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

Location:
components/com_virtuemart/views/productdetails/tmpl
And made a copy of the default.php to test.php.

After that I assigned test in VirtueMart > Configuration > Template: Product layout = test.

No change when I view a product.
Title: Re: How to add product details?
Post by: PRO on October 16, 2011, 15:23:48 pm
you have to go into each category and set the default flypage.

BETTER way is to do a template override of default.php

http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core