VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: musqsim on November 14, 2016, 23:43:40 PM

Title: Virtuemart 3 Customfields Layout cart short description
Post by: musqsim on November 14, 2016, 23:43:40 PM
Hi there,

I have a custom field for my customers to input 3 letters on some products, it is a Text input Plugin Custom Field.

My only problem is that I can only see what letters they input if I choose Layout Position: addtocart because this is only the unique position that is called inside addtocart form...

Is there a way to set this customfield in other position that inside add to cart form?

Thanks!
Title: Re: Virtuemart 3 Customfields Layout cart short description
Post by: Studio 42 on November 15, 2016, 12:07:18 PM
You need to modify your HTML and set cart HTML<form> tags for the whole product and not only add to cart.
After this, you can call any inputs inside the product.
Note : this need to add a new or modify addtocart layout (remove the form tags) and the productdetails default.php (add the form tags) so all is send on add to cart
Title: Re: Virtuemart 3 Customfields Layout cart short description
Post by: jenkinhill on November 15, 2016, 12:17:05 PM
The custom fields code must be within the <form> but where it is displayed within your layout can be controlled with some css. It is usually easier to use css than to edit & override template files.