VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: jjk on October 28, 2011, 17:46:34 PM

Title: [Solved] Product custom fields with stock control - Options don't show
Post by: jjk on October 28, 2011, 17:46:34 PM
J1.7.2/VM2 revision 4579
When using 'Product custom fields with stock control' - 'Select a plugin' - 'VM - Custom, stockable variants' and enter several options in the 'Option List', in the frontend product details view only the first line shows in the drop down list. Can anybody confirm this?

Update:
Disregard this - I finally figured out how it works :-)
Title: Re: [Solved] Product custom fields with stock control - Options don't show
Post by: thekalle on March 20, 2012, 11:07:16 AM
It would be nice when you find out what's wrong that you explain how you managed it for the other people who're having the same problem.
Title: Re: [Solved] Product custom fields with stock control - Options don't show
Post by: corymp on March 20, 2012, 12:41:15 PM
I've been making some progress on this.

Read through this thread -> http://forum.virtuemart.net/index.php?topic=90833.0 (http://forum.virtuemart.net/index.php?topic=90833.0)
Title: Re: [Solved] Product custom fields with stock control - Options don't show
Post by: TBoele on March 20, 2012, 13:15:49 PM
Quote from: corymp on March 20, 2012, 12:41:15 PM
I've been making some progress on this.

Read through this thread -> http://forum.virtuemart.net/index.php?topic=90833.0 (http://forum.virtuemart.net/index.php?topic=90833.0)

Great job. But are you also going to describe your last steps in the template override, for example category and product pages ?
Title: Re: [Solved] Product custom fields with stock control - Options don't show
Post by: corymp on March 20, 2012, 16:50:49 PM
/templates/yourtemplate/html/com_virtuemart/category/default.php

You will be using the short description as the product name on the category page....

If there is no short description, it will display the product title like normal

You will then lose the short description, so it would be wise to comment out the lines that displays it under the product image as well


<?php /*  If Short Desc is set change Product Title to Short Description     */ ?>
<h2><?php // Product Short Description
if (!empty($product->product_s_desc)) {
   echo JHTML::link($product->link$product->product_s_desc);

else {
   echo JHTML::link($product->link$product->product_name);
?>

</h2>