Welcome, Guest. Please login or register.
Login with username, password and session length


Need help or want to talk to other developers? Join the VirtueMart Chat! Read more...

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
VirtueMart ForumVirtueMart 1.1.xShippingFedExFatal Error: Call to undefined method ps_cartt::countaddons() shop.cart.tpl.php
Pages: [1]   Go Down
Print
Author Topic: Fatal Error: Call to undefined method ps_cartt::countaddons() shop.cart.tpl.php  (Read 3226 times)
johnathanamber
Newbie
*
Posts: 19


« on: September 28, 2010, 10:17:26 AM »

Hey everyone!

I've updated from 1.1.14 to 1.1.15 and updated to the latest FedEx (1.1.15) update.

I get the following error when I try to add to my cart:
Quote
Fatal error: Call to undefined method ps_cart::countaddons() in /home/content/t/s/g/tsgcomputers/html/sites/aviatorsauction/components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php on line 31

So I commented out the following in the shop.cart.tpl.php:
Quote
//    $addons = ps_cart::countAddOns($product_id);
//    $maxaddons = ps_cart::countAllowedAddOns($product_id);

When I did this I get the following error:
Quote
Fatal error: Call to undefined method ps_cart::countaddons() in /home/content/t/s/g/tsgcomputers/html/sites/aviatorsauction/administrator/components/com_virtuemart/html/checkout.index.php on line 37

I've checked settings and such and can't seem to find a config issue on our part...

I've reverted that changes I've made in 'shop.cart.tpl.php'.

Any help would be greatly appreciated.

Thank you,
Johnathan
« Last Edit: November 10, 2010, 23:29:28 PM by johnathanamber » Logged
johnathanamber
Newbie
*
Posts: 19


« Reply #1 on: October 01, 2010, 15:58:49 PM »

Does anyone have any suggestions on how to resolve this?
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #2 on: October 01, 2010, 16:22:49 PM »

Is this the VM1.1.5 FedEx module, or perhaps my FedExv2 module?
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
johnathanamber
Newbie
*
Posts: 19


« Reply #3 on: October 01, 2010, 16:24:27 PM »

Uh, honestly I do not remember... can I tell via one of the files installed?
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #4 on: October 01, 2010, 17:39:44 PM »

If it were my FedExv2 module, you'd definitely know it, haha.

The error points to missing functions in ps_product, which leads me to believe that either you've installed some modifications that were overwritten during the upgrade, or the modifications overwrote some of the new VM1.1.5 files.

Either way, your ps_product class file is missing some code.  I'm not near my source to look at the VM115 code, so I can't tell you which it is.
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
johnathanamber
Newbie
*
Posts: 19


« Reply #5 on: October 05, 2010, 19:45:11 PM »

@lowmips,

I believe that I downloaded the official package, not the one you provide.

The version is:
FedExv2.2010.08.10

Copyright Reggie Campbell

License: http://www.gnu.org/copyleft/gpl.html GNU/GPL

With that being said, does anyone have and ideas?

Thank you,
Johnathan
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #6 on: October 05, 2010, 19:54:06 PM »

That is my module.  Has my name all over it Smiley

It looks like the issue is your version of ps_cart is not the version provided with my module.  You'll need to re-install the ps_cart file from the archive.

/administrator/components/com_virtuemart/classes/ps_cart.php

Reggie
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
johnathanamber
Newbie
*
Posts: 19


« Reply #7 on: October 16, 2010, 23:18:22 PM »

Reggie,

Thank you for helping out with this.

Now I get the following error:
"Error: FedEx Return Error 5010 : No sender account number."

Where would I place this information?

Thank you,
Johnathan
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #8 on: October 17, 2010, 07:56:18 AM »

Jonathan,
You should enter your FedEx Web Services credentials in the shipping module configuration.

Reggie
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
johnathanamber
Newbie
*
Posts: 19


« Reply #9 on: October 24, 2010, 22:18:59 PM »

Hello Reggie,

Thank you for your help thus far...

After reuploading the ps_cart file... we can no longer add file to the shopping cart.

Mind you that we've upadted from VM 1.1.14 > 1.1.15 AND USED YOUR 1.1.15 FedEx patch... Anything you can think of to help?

Thank you,
Johnathan
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #10 on: October 25, 2010, 09:23:41 AM »

At this point, I would advise you to completely re-install vm115-FedExv2.2010.08.10.

Reggie
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
johnathanamber
Newbie
*
Posts: 19


« Reply #11 on: October 31, 2010, 23:59:31 PM »

Reggie,

OK we did reinstall both VM and the FedEx module.

However we are not getting any rates...

I want to be sure that I have this info right:
Production
Web Access Key = Authentication Key (provided from the Confirmation WebPage, not in email)
Web Access Password = Production Password (provided from the confirmation email)
Account Number = FedEx Account Number (provided from the confirmation email)
Meter Number = Production Meter Number (provided from the confirmation email)

I have entered these into the module and we are still not getting any rates.
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #12 on: November 01, 2010, 09:38:59 AM »

Yes, those are correct.  Have you placed the module, and VirtueMart, in debug mode to obtain further information about the rates issue?

Reggie
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
johnathanamber
Newbie
*
Posts: 19


« Reply #13 on: November 10, 2010, 23:29:02 PM »

I found the issue...

problem was the site owner... the one who added the products, didn't add a weight to the items... so the shipping wasn't calculated since it didn't have that variable...

Once I added a weight... viola!

Thank you Reggie and everything for your help!

God bless,
Johnathan
Logged
Pages: [1]   Go Up
Print
Jump to: