Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Error When Add Item To Cart


Reply


6 Posts   1999 Views

Avatar
mazang

Community Member, 4 Posts

9 January 2009 at 3:56pm

I am creating a website for a customer. Have setup the ecommerce module, trunk and the PayPal system. But when I went to a product to test the ecommerce system I clicked "Add this item to cart" and I was sent to a page at http://mysite.com/product-page/add and got an error code saying "Fatal error: Cannot instantiate abstract class ShippingCalculator in /home/content/s/e/a/seattlehalal/html/sapphire/core/Object.php on line 99"

Can understand that something is wrong with the shipping calculator but after reviewing countless forum pages for countless hours I can not understand what went wrong. Would appreciate help a.s.a.p. since client is waiting on me to fix it.

Avatar
kcd

Community Member, 54 Posts

13 January 2009 at 6:25pm

ShippingCalculator is now a ShippingModifier... perhaps this is where you are having problems?

My trunk installed CMS and ecommerce refuses to process shipping at all. The following config could be useful for you, and if not perhaps you can tell me what I've done wrong...

//SimpleShippingCalculator::set_charges_for_countries(array(
SimpleShippingModifier::set_charges_for_countries(array(
'AU' => 15,
'NZ' => 7.50,
));
//... rest of world default
//SimpleShippingCalculator::set_charges(20);
SimpleShippingModifier::set_default_charge(20);

Good luck

Avatar
mazang

Community Member, 4 Posts

14 January 2009 at 12:50am

Thanks KCD for being kind enough to reply to my post. You did not specify exactly where to put that code at so I put it in the ShippingCalculator.php since it seems like it is supposed to go there... looked in all of the _config.php files but didnt see which one to put it in. Did the db/build/?flush=1 thing but it still crapped out on me.

Again thank you KCD but I found a much better OS ecommerce software called Magento. Will do the ecommerce side in that program. It was my fault for picking this module but... used this module and now I am getting in major debt over the project because of the delay and was INCREDIBLY embarassed having it all of a sudden mess up on launch day right in front of my client and my business partner.

Most likely will use SilverStripe for basic web projects because of the ease of use but will not use SilverStripe Ecommerce module until they work out all of the bugs and make it much more competitive.

Avatar
jmdweb

Community Member, 14 Posts

14 January 2009 at 2:34am

Totally agree with you, 100%.
I have had difficulties with this module since installing over a week ago and deadlines are becoming very close, I may have to follow you and chose another cms or merchant store to work along side SS. It's a pity really.

Avatar
kcd

Community Member, 54 Posts

14 January 2009 at 8:53am

Sorry that belongs in mysite/_config

Yeah I almost gave up but as of this morning I've uploaded it to the live site. I think I've got it all working...wish me luck!

Avatar
mazang

Community Member, 4 Posts

14 January 2009 at 4:58pm

Yeah JMDWEB it is a pitty... SilverStripe is such an incredibly awesome software with its interface but just one part of it is undeveloped. But for now its great for what it is since it is unbelievably great for a free software.

KCD I wish you the best of luck.