News:

Looking for documentation? Take a look on our wiki

Main Menu

Creating new custom field position at VM3

Started by fotonio, July 13, 2015, 15:29:17 PM

Previous topic - Next topic

fotonio

Hi, i would like to create a new position for a custom field to appear below the addtocart position and above add to cart button.

How can i do it? I have not much experience with php.

I am using VM 3.0.9.4 with the default template and joomla 3.4.1.

Thank you,
Yiannis

jenkinhill

Quote from: fotonio on July 13, 2015, 15:29:17 PM
Hi, i would like to create a new position for a custom field to appear below the addtocart position and above add to cart button.

That makes no sense. In the default template the add to cart button is within the addtocart-bar - which is of course, the "add to cart position".  Maybe provide a picture to show what you want to do.
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

fotonio

Now i have a parent product with a multivariant custom field and another custom field below. They are both positioned in addtocart position. I like the layout but i want to create a separate position for the second because something doesn't work well with the javascript when it is in the same position with another field.

Thanks

PS. I can send a link of the site if it helps.

GJC Web Design

isn't it just
<?php
echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'mynewpos'));
?>

and put this snippet in components\com_virtuemart\views\productdetails\tmpl\default.php where ever u want it to appear?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

fotonio