VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: giobono on January 02, 2015, 13:42:46 PM

Title: Customfields in Virtuemart 3.0
Post by: giobono on January 02, 2015, 13:42:46 PM
I have a site that updated from VM2 toVM3 with no problems except that customfields for my products are not showing in Virtuemart 3.0.2 on Joomla 2.5.17

THe custom field data has moved across successfully.

I have tried a number of different templates and purchased a template that claims to be VM3.0 compatible.

The code generated in the addtocart-area does not even contain the custom fields details regardless of what template I use so it is unlikely to be a CSS or template issue.

eg:
<div class="addtocart-area">

   <form method="post" class="product js-recalculate" action="/">
      <input name="quantity" type="hidden" value="1" />
      
      <div class="addtocart-bar">

                     <!-- <label for="quantity52" class="quantity_box">Quantity: </label> -->
               <span class="quantity-box">
                  <input type="text" class="quantity-input js-recalculate" name="quantity[]" onblur="check(this);"
                        value="1"/>
               </span>
               <span class="quantity-controls js-recalculate">
               <input type="button" class="quantity-controls quantity-plus"/>
               <input type="button" class="quantity-controls quantity-minus"/>
               </span>
                                  <span class="addtocart-button">
                   <input type="submit" name="addtocart" class="addtocart-button" value="Add to Cart" title="Add to Cart" />                   </span>
               <input type="hidden" class="pname" value="4080 Lady&#039;s Cardigan Oatmeal"/>
               <input type="hidden" name="view" value="cart"/>
               <noscript><input type="hidden" name="task" value="add"/></noscript>
               <input type="hidden" name="virtuemart_product_id[]" value="52"/>
                              <div class="clear"></div>
      </div>
            <input type="hidden" name="option" value="com_virtuemart"/>

   </form>
   <div class="clear"></div>
</div>


I have gone through the FAQs installation documents and forums and this does not seem to be a common problem.

Can anyone suggest what I might have missed?
Title: Re: Customfields in Virtuemart 3.0
Post by: jjk on January 02, 2015, 19:51:21 PM
I would suggest to create a backup of your site (with Akeeba) and install the backup on your local PC (with xampp from apachefriends.org) and experiment with updates on your local PC first.
- Update Joomla to version 2.5.28 (VM 3.0.2 might not have been tested on J.2.5.17, because that's a pretty old unsecure version.
- Update VirtueMart to VM 3.0.2. The installer should take care of converting the custom fields to the new VM3 format.
- Go to VM 'Tools & Migration' and try the 'Update VM2 order format of custom fields to VM3 format' (Currently there is a duplicate button) and also the 'Remove old VM2 inherited customfields'.
- Check your custom fields.