News:

Looking for documentation? Take a look on our wiki

Main Menu

Custom filed Position is not working.

Started by goudmahendra, June 10, 2016, 15:05:21 PM

Previous topic - Next topic

goudmahendra

Hello All,
                  My  joomla version is 3.5.0 and virtuemart version is 3.0.12. I have two custom fields and by default their layout position is 'add to cart' but for the layout changes I have create a new custom position 'custom'  on listing page and published custom fields on 'custom' position fields are visible and my layout purpose is solved. But when I choose value in custom fields prices are not updating and again if I choose position 'adddtocart' price is changing.

so, please let me know why price is not updating with custom position or I am missing something.

please help

thanks in advance.

jenkinhill

So your field code is not placed within the add to cart form?
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

PRO

you need to have the position addtocart for price changes.

YOU can display them in the category page

goudmahendra

No my position in not within addtocart form it is out of the add to cart form and on the product page.

goudmahendra

my custom field position is in template->mytemplate->html->com_virtuemat->sublayouts->products.php

<?php echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$product,'position'=>'custom')); ?>

please help.

Studio 42

Hi,
the problem is that your customfieds, need to be inside the <form></form> tags.
If you add it outside add to cart form, vm javascript do not check for it.
A possible solution is to move the add to cart <form></form> that your customfield are called by the javascript in your productdetails layout.

goudmahendra

Thanks  studio 42 for your replay. now I understand what is the problem.