VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: maurizius on January 04, 2015, 19:27:51 PM

Title: sublayouts
Post by: maurizius on January 04, 2015, 19:27:51 PM
Hi to all,
I've the following problem.

On my joomla 3.3.6 with VM 3.0.2 if I add one product all works fine, but if I add one related product on the front end when the product is displayed I see the following error:

Fatal error: Class 'JxHtml' not found in www.site.com/htdocs/templates/my_template/html/com_virtuemart/sublayouts/customfields.php on line 32

Someone know the solution?

Searching with google with JxHtml and virtuemart only 3 link will be showed.

Thanks.
Title: Re: sublayouts
Post by: maurizius on January 04, 2015, 20:19:15 PM
Maybe I found a solution

in file www.site.com/htdocs/templates/my_template/html/com_virtuemart/sublayouts/customfields.php on line 32

modify:
echo JxHtml::tooltip (vmText::_($field->custom_tip), vmText::_ ($field->custom_title), 'tooltip.png');

with:
echo JHtml::tooltip (vmText::_($field->custom_tip), vmText::_ ($field->custom_title), 'tooltip.png');

Someone could let me know if this is right or only a work around?
Title: Re: sublayouts
Post by: GJC Web Design on January 04, 2015, 21:40:59 PM
but VM doesn't install anything in  templates/my_template/html/com_virtuemart
that is from your template and must be their typo - no such thing  as JxHTML
Title: Re: sublayouts
Post by: maurizius on January 05, 2015, 09:57:31 AM
If you want to override the template you have to copy the folder from VM path to your template.
so the customfields.php is a copy of original.

Maybe the x is a mistaken due to the changes on the file.

Title: Re: sublayouts
Post by: GJC Web Design on January 05, 2015, 13:13:54 PM
QuoteIf you want to override the template you have to copy the folder from VM path to your template.
so the customfields.php is a copy of original.

I do realise this.... ::)

So your saying you copied it to there and that JHtml rewrote itself to JxHtml during the copy?
if u check the original 3.0.2 components\com_virtuemart\sublayouts\customfields.php you'll see it's fine
Title: Re: sublayouts
Post by: maurizius on January 05, 2015, 19:06:43 PM
Yes, I checked after your reply.

Was my mistake (maybe i forgot to push : and I wrote x before save the file with vim)