News:

Looking for documentation? Take a look on our wiki

Main Menu

Messed up product-page

Started by erwin_m, December 05, 2018, 22:05:48 PM

Previous topic - Next topic

erwin_m

Hi,

I have updated my site with some major updates, it really was time. Changed a lot of template-files and other stuf. It looks good now. Had still a problem with using custom fields. My productdetails template wasn't suitable for the new versions. So I've grabbed the default.php and changed it to y own design. Works fine, so far. Did this on my test-site with vm 3.2.15. Changed it on the live-site and it stopped working. I do see that I'm using 3.4.2 on that site.Selecting the default.php again doesn't give me the custom fields back.

Does anyone have a template-file which does support custom fields? I'm only using this for choosing a color of an item. Or can anyone tell me what else to do? I believe it isn't possible to downgrade, correct?

Hope someone can help me with this problem.

Regards,

Erwin

GJC Web Design

customfields are rendered by

sublayouts/customfields.php

chk over rides etc for that and that the sublayout is called in the details
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

erwin_m

For testing purpose I changed the name of the productdetails-folder in the template-files. Then it works fine, but my layout is obviously changed. Can anyone tell me which template the default is for productdetails? Then I can use that file as source for my own customization.

GJC Web Design

it is ALL files in the components\com_virtuemart\views\productdetails\tmpl\

plus the appropriate sublayouts
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

erwin_m

Thank you, I've found it and edited it so the desired layout is working.

I do see another problem nog, the fancybox doesn't also seem to work properly in this version. It's to small and not the total image is visible, also the thumbs beneath aren't visible. Do you perhaps have more suggestions?

GJC Web Design

at a guess you have other css interfering with the display
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

erwin_m

Right again! Commented some css-code and now it works fine.

Thank you!