News:

Support the VirtueMart project and become a member

Main Menu

Custom fields not work after update to 3.0.18

Started by FabioZumbi12, October 06, 2016, 09:06:21 AM

Previous topic - Next topic

FabioZumbi12

Hello,

After update to 3.0.18 my custom fileds stoped to work on product details.

When i change an option the value dont update and the button "Add to cart" not work. On tests i know its the custom fields. When i disable the custom filed, the button "Add to Cart" back to work.

Can someone help?
Thanks.
Joomla - 3.6

GJC Web Design

??  http://virtuemart.net/news/latest-news/477-release-of-3-0-18-connecting-the-loose-ends

The new js for using ajax for reloading product content uses now always the same class. The class is "product-container". Just search for the div with "productdetails-view productdetails" and add "product-container". In case you want the ajax reload within a product modul, you need to adjust the overrides here also. Furthermore the layout login of the user view is now in the sublayout folder. Members who used the ajax for child variants within the browse view should change the layout back to default.
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

FabioZumbi12

I dont have ideia on how or where i need to change this. I am not only the unique people with this problem.
http://forum.virtuemart.net/index.php?topic=135402.msg472593#msg472593

Can you xplain with more details or where i change this? I am not a virtuemart dev then i dont know where all files and all calsses/system and etc :(

Thank you.
Joomla - 3.6

GJC Web Design

look in your

\templates\xxxxxxxxx\html\com_virtuemart\productdetails\default.php if over ridden .. if not in the VM views

find the html container holding the whole code

normally something like

<div id="productdetails-view" class="productdetails-view productdetails">

change it to

<div id="productdetails-view" class="productdetails-view productdetails product-container">



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

FabioZumbi12

Thanks for your help.

I didnt find the php file on my templates folder. This the tree on my site:

http://prnt.sc/cr8w5z

And on "/components/com_virtuemart/views/productdetails/tmpl" i found this:

<div class="product-container productdetails-view productdetails" >

I think i not using ovwrride for virtuemart but if yes, where i see this?
Thanks.
Joomla - 3.6

GJC Web Design

so it has the product-container class so it must be some other problem

JS?
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

FabioZumbi12

I dont know.

I have the joomla plugin jQuery Easy to fix imcompatibilities but the problem its only when i enable custom fields.

Any other ideia what can be?
Joomla - 3.6

websmith

Fabio this worked for me.

look in your components/com_virtuemart/views/productdetails/tmpl/default.php  Around line 36 change the

<div class="product-container productdetails-view productdetails" >

to the following

<div class="productdetails-view productdetails product-container" >

This seemed to work for me on a quick test.

Thanks GJC Web Design for the heads up on editing this file.

Milbo

I have no clue, why this code

while(!Virtuemart.container.hasClass(cl) && runs<=maxruns){
Virtuemart.container = Virtuemart.container.parent();
runs++;
}

works different, when you change the order of the classes
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

cvrak

Hi,

I'm facing the same problem since I've upgraded to 3.0.18
Custom fields created with last version and with the new one as well, are not working in administration. When I choose a custom field, nothing happens.
I've tried to change components/com_virtuemart/views/productdetails/tmpl/default.php

<div class="product-container productdetails-view productdetails" >

to the following

<div class="productdetails-view productdetails product-container" >

but the problem remains. Any suggestions??
Thanks

jenkinhill

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

GJC Web Design

and if so is the correct js loaded at the bottom of the product details template?
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

bortolani

Which is at the moment the correct js?

Inviato dal mio E5303 utilizzando Tapatalk


GJC Web Design

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

cvrak

Quote from: GJC Web Design on October 19, 2016, 11:21:07 AM
and if so is the correct js loaded at the bottom of the product details template?

As you can see at the attachment, I use Hudrogen template for the e-shop (site), and no overrides for the products.

How I can check for the correct Js??