News:

Support the VirtueMart project and become a member

Main Menu

Virtuemart 3 Customfields Layout cart short description

Started by musqsim, November 14, 2016, 23:43:40 PM

Previous topic - Next topic

musqsim

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!

Studio 42

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

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum