Author Topic: Custom fields no longer showing  (Read 951 times)

zorigo

  • Beginner
  • *
  • Posts: 11
Custom fields no longer showing
« on: July 12, 2022, 19:22:10 pm »
I have a couple of sites that I have updated to VM 4.0.6.  Within these sites I had custom fields that were pulled into the product details page.  However, they are no longer showing on the page.  Specifically, one is a custom field that is supposed to show is an editor type custom field that shows the ingredients for the the product.  Previously, the below worked.  Has this changed?

<?php echo shopFunctionsF::renderVmSubLayout('customfieldstabs',array('product'=>$this->product,'position'=>'ingredients'));?>

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1599
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Custom fields no longer showing
« Reply #1 on: July 12, 2022, 23:55:27 pm »
Why don't you look inside origin template from VM for compare code?

Oh men, do it you anything self :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

zorigo

  • Beginner
  • *
  • Posts: 11
Re: Custom fields no longer showing
« Reply #2 on: July 13, 2022, 14:24:30 pm »
I did and the logic is the same in the original product details page.  It's just simply not pulling in custom fields from my custom sublayout.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1599
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Custom fields no longer showing
« Reply #3 on: July 13, 2022, 16:40:20 pm »
and your sublayout is only in template override?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

zorigo

  • Beginner
  • *
  • Posts: 11
Re: Custom fields no longer showing
« Reply #4 on: July 14, 2022, 16:18:18 pm »
Yes, that is correct.

Sub Layout is in /templates/template_name/html/com_virtuemart/sublayouts
Product Details is in /templates/template_name/html/com_virtuemart/productdetails

And everything worked correctly until I updated virtuemart to VM 4.0.6

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10629
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Custom fields no longer showing
« Reply #5 on: July 14, 2022, 17:36:15 pm »
if u temp rename your sublayout folder?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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

zorigo

  • Beginner
  • *
  • Posts: 11
Re: Custom fields no longer showing
« Reply #6 on: July 15, 2022, 17:09:04 pm »
Doesn't the product details look for sublayouts in the sublayouts folder?  Won't that break the page entirely?  Maybe I'm not understanding what you are saying.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1599
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Custom fields no longer showing
« Reply #7 on: July 15, 2022, 18:07:00 pm »
no, temporary rename your folder - name sublayout in template folder in
html/com_virtuemart/sublayout

to html/com_virtuemart/_sublayout

and check on your website if cusotmfiled show on product detail or not == now you use not override from template but original sublayout forlder from core VM.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

zorigo

  • Beginner
  • *
  • Posts: 11
Re: Custom fields no longer showing
« Reply #8 on: July 15, 2022, 19:49:53 pm »
That worked!  SO weird. Thank you so much!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10629
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Custom fields no longer showing
« Reply #9 on: July 15, 2022, 19:54:51 pm »
it's not weird .. it simply proves that the override in  /templates/template_name/html/com_virtuemart/sublayouts is not compatible with VM4
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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