Possible VMart Errors? Should this template be used yet?

GK User
Wed Jan 25, 2012 5:26 pm
I came across several errors when working within virtuemart in the quickstart setup, that I seem to me to be connected and I am wondering if it is a vmart errors, a J2.5 error, or a problem in the quickstart, AND if there is any point working with this template yet? IE: Is it all a little too soon for J2.5 and VMart 2.0

The error happens and an number of places:

For example - When attempting to add a custom field you get.

Fatal error: Call to a member function getListFooter() on a non-object in /public_html/administrator/components/com_virtuemart/views/custom/tmpl/default.php on line 130

Or when adding or editing a Tax calculation you get.

Fatal error: Call to a member function getResultsCounter() on a non-object in /public_html/administrator/components/com_virtuemart/views/calc/tmpl/default.php on line 38


When adding or editing a product catagory you get

Warning: Invalid argument supplied for foreach() in /public_html/administrator/components/com_virtuemart/views/category/tmpl/default.php on line 75
# Category Name Description Products Published Ordering

Fatal error: Call to a member function getListFooter() on a non-object in /public_html/administrator/components/com_virtuemart/views/category/tmpl/default.php on line 140

Has anyone else run into these issues, and has anyone come up with a solution? Am I missing something :) , are there updates coming that anyone has heard about, etc etc.

I am making decisions on a new project and need to know if I should go ahead in 1.5 or wait.

I am also a little confused that if its all imcompatable, how did Gavick create the products, tax codes etc :)

Any thoughts from Gavick and the community would be appreciated

Many thanks in advance.
User avatar
Fresh Boarder

GK User
Fri Jan 27, 2012 10:15 am
have the same problem, any solution?
User avatar
Fresh Boarder

GK User
Fri Jan 27, 2012 10:38 am
I am mostly confused why the database tables for VirtueMart in the quickstart package is completely different from the vm tables when I install VirtueMart separately.

I also get a so many vm errors so the template is useless.

There is also a lot of other template errors, but I will list them in a separate post.
User avatar
Junior Boarder

GK User
Sun Jan 29, 2012 4:46 pm
So through research @ Virtuemart forms, I've discovered that Virturemart itself is not compatible with Joomla 2.5...

Which makes me wonder why Gavick would bother releasing it for 2.5 - at least give us a heads up that VM2.0 doesn't work.
User avatar
Fresh Boarder

GK User
Sun Jan 29, 2012 9:29 pm
We notice problems with VM 2.0 and J! 2.5 so the template is released for Joomla 1.7
User avatar
Platinum Boarder

GK User
Mon Jan 30, 2012 3:17 pm
WTF???? Then you must write it in the Template download!!!! :x
User avatar
Expert Boarder

GK User
Tue Jan 31, 2012 8:03 am
There is an update available for Virtuemart -> 2.0.1b
http://dev.virtuemart.net/projects/virtuemart/files

They say that VM 2 still isn't ready for Joomla 2.5, but it does solve a few problems, e.g. that i can create categories finally without an error.
User avatar
Senior Boarder

GK User
Thu Feb 09, 2012 5:16 pm
I get these errors - just paid $99 euros for lifelong membership - I paid for lifelong because my 4 month membership had expired and my 1.7 template wouldn't work when updated to 2.5. I paid so I would not get these errors and now I find myself complaining on this blog!
User avatar
Fresh Boarder

GK User
Sun Feb 12, 2012 7:02 pm
A new build of VM has been released today (2.0.1.f). I managed to get rid of the errors from the 2.0.0 release when accessing Product Categories, Products etc.

Check it out guys!
User avatar
Senior Boarder

GK User
Mon Feb 13, 2012 11:40 pm
roadrunner wrote:A new build of VM has been released today (2.0.1.f). I managed to get rid of the errors from the 2.0.0 release when accessing Product Categories, Products etc.

Check it out guys!


Yes, this issue solved in latest versions vm2!
User avatar
Fresh Boarder

GK User
Sat Feb 18, 2012 8:07 pm
I also could not create or update the category. So I installed VM 201 via Joomla extension mananger.
Now I am getting the following error when I click on a product in News Pro GK4

Fatal error: Call to undefined method shopFunctionsF::printicon() in /public/sites/www.sucuisine.com/templates/gk_mystore/html/com_virtuemart/productdetails/default.php on line 73


Who has the solution for this?
User avatar
Senior Boarder

GK User
Sun Feb 19, 2012 3:11 pm
The com_virtuemart.2.0.1.h version seems to be working fine so far. I had to uninstall the K version as the product page has not been displayed properly.

It's way better then it used to be weeks ago and the shop seems to be working pretty good. Still did not go live with it as I need to add stock and test it but Eshop + VM seems is looking perfect :)
User avatar
Junior Boarder

GK User
Sun Feb 19, 2012 10:43 pm
The issue with catagory is resolved but I am not able to open any product


Fatal error: Call to undefined method shopFunctionsF::printicon() in /public/sites/www.sucuisine.com/templates/gk_mystore/html/com_virtuemart/productdetails/default.php on line 73
User avatar
Senior Boarder

GK User
Fri Feb 24, 2012 11:16 pm
Hello,

Updated to VM 2.2 and still errors persist. Any Gavick folks here to comment? Low integrity to release and promote a template that does not work with a component. At least provide us with info as to this issue.

Anybody with Gavick monitoring this?
User avatar
Fresh Boarder

GK User
Sat Feb 25, 2012 4:27 pm
Hi!

Join us to the question!

VM 2.0.2
...gk_esport\html\com_virtuemart\..
Need to update the new version.
User avatar
Fresh Boarder

GK User
Sun Feb 26, 2012 9:38 pm
i updated to virtuemart 2.0.2 and now i get the fatal error message as well Fatal error: Call to undefined method shopFunctionsF::PrintIcon() in /mnt/data/vhosts/proshopoutlet.com/httpdocs/templates/gk_eSport/html/com_virtuemart/productdetails/default.php on line 80

someone please help
User avatar
Fresh Boarder

GK User
Sun Feb 26, 2012 9:48 pm
i bought this template and now getting ready to lauch site and now error messages help
User avatar
Fresh Boarder

GK User
Mon Feb 27, 2012 3:14 pm
I have installed the final version 2.0.2 of VM... and now the template is not displaying the product pages properly... This is so annoying.
User avatar
Junior Boarder

GK User
Mon Feb 27, 2012 7:40 pm
If you get the error:
shopFunctionsF::PrintIcon() in /mnt/data/vhosts/proshopoutlet.comhttpdocs/templates/gk_eSport/html/com_virtuemart/productdetails/default.php on line 80

Comment out that line and line 81 and you will be fine for now. When there is a template update OR if you want to go through the php and figure out the logic Gavick is using for this part of the product, then you can debug and fix each issue... but it may only work till the next VM upgrade...

Best of luck!
User avatar
Fresh Boarder

GK User
Mon Feb 27, 2012 10:50 pm
VM 202K has errors with the template mystore. I installed the previous version VM 202h and the error (not displaying detail product page) resolved

regards
User avatar
Senior Boarder

GK User
Tue Feb 28, 2012 12:03 am
You should be now using VM 2.0.2 stable which was released 24 Feb. From Version 2.0.1k onward, including the current 2.0.2 stable the developers have changed the print/pdf/email function for product description.

The Gavick template support for VM2 needs to be edited to support these changes. It is not difficult - one file needs some simple editing and you will find everything works and looks great.

To fix this error: Fatal error: Call to undefined method shopFunctionsF::printicon() in xxxxxxxx/templates/gk_esport/html/com_virtuemart/productdetails/default.php on line 80

Open /templates/gk_esport/html/com_virtuemart/productdetails/default.php

delete everything from line 74 to 82 (this code below)
Code: Select all
<?php // PDF - Print - Email Icon
   if ( VmConfig::get('show_emailfriend', 1) == '1' || VmConfig::get('show_printicon', 1) == '1') { ?>
   <?php $link = (VmConfig::isJ15()) ? 'index2.php' : 'index.php';
      $link .= '?tmpl=component&option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id;
      $pdflink= JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id.'&format=pdf');
//       echo shopFunctionsF::PdfIcon($pdflink );
      echo shopFunctionsF::PrintIcon($link.'&print=1');
      echo shopFunctionsF::EmailIcon($this->product->virtuemart_product_id); ?>
   <?php } // PDF - Print - Email Icon END ?>


and replace it with the NEW VM2 print/pdf/email function (this code below)
Code: Select all
<?php // PDF - Print - Email Icon
    if (VmConfig::get('show_emailfriend') || VmConfig::get('show_printicon') || VmConfig::get('pdf_button_enable')) { ?>
    <div class="icons">
       <?php
       //$link = (JVM_VERSION===1) ? 'index2.php' : 'index.php';
       $link = 'index.php?tmpl=component&option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->virtuemart_product_id;
       $MailLink = 'index.php?option=com_virtuemart&view=productdetails&task=recommend&virtuemart_product_id=' . $this->product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component';

       if (VmConfig::get('pdf_icon', 1) == '1') {
      echo $this->linkIcon($link . '&format=pdf', 'COM_VIRTUEMART_PDF', 'pdf_button', 'pdf_button_enable', false);
       }
       echo $this->linkIcon($link . '&print=1', 'COM_VIRTUEMART_PRINT', 'printButton', 'show_printicon');
       echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend');
       ?>
       <div class="clear"></div>
        </div>
   <?php

   } // PDF - Print - Email Icon END  ?>


Hope that helps.
PS: Really love the template Mr Gavick and crew. Looks great and works well with VM2
User avatar
Junior Boarder

GK User
Sat Mar 03, 2012 4:51 pm
I have done all of the above and still no luck.

I cant even see Virtuemart in the Components menu now so i cant even tell you if the issue with the category section has been fixed.

Have i missed something and does Virtuemart appear somewhere else?

I think it pretty poor that Gavick would release something like this with this sort of issue.

I paid for a member ship to use this template and it doesnt even work.

Maybe i should have just stuck with Rocketheme have never had a problem with there templates.

Gavick pro Moderators and writers please help and earn you membership fees that i paid just yesterday
User avatar
Fresh Boarder

GK User
Tue Mar 13, 2012 10:46 pm
Sunshine you save my day :)
Thanks
User avatar
Fresh Boarder

GK User
Wed Oct 17, 2012 7:33 pm
Sunshine - you are awesome! Thanks for the code, worked perfect. :D
User avatar
Expert Boarder


cron