News:

Support the VirtueMart project and become a member

Main Menu

sublayouts

Started by maurizius, January 04, 2015, 19:27:51 PM

Previous topic - Next topic

maurizius

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.

maurizius

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?

GJC Web Design

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

maurizius

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.


GJC Web Design

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

maurizius

Yes, I checked after your reply.

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