VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: erwin_m on December 05, 2018, 22:05:48 PM

Title: Messed up product-page
Post by: erwin_m on December 05, 2018, 22:05:48 PM
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
Title: Re: Messed up product-page
Post by: GJC Web Design on December 06, 2018, 10:23:07 AM
customfields are rendered by

sublayouts/customfields.php

chk over rides etc for that and that the sublayout is called in the details
Title: Re: Messed up product-page
Post by: erwin_m on December 06, 2018, 18:33:22 PM
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.
Title: Re: Messed up product-page
Post by: GJC Web Design on December 06, 2018, 21:57:28 PM
it is ALL files in the components\com_virtuemart\views\productdetails\tmpl\

plus the appropriate sublayouts
Title: Re: Messed up product-page
Post by: erwin_m on December 06, 2018, 23:35:45 PM
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?
Title: Re: Messed up product-page
Post by: GJC Web Design on December 07, 2018, 08:08:49 AM
at a guess you have other css interfering with the display
Title: Re: Messed up product-page
Post by: erwin_m on December 07, 2018, 23:20:14 PM
Right again! Commented some css-code and now it works fine.

Thank you!