Jump to:

2088 Posts in 1007 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Error When Add Item To Cart

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

Page: 1
Go to End
Author Topic: 1917 Views
  • mazang
    Avatar
    Community Member
    4 Posts

    Error When Add Item To Cart Link to this post

    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.

  • kcd
    Avatar
    Community Member
    54 Posts

    Re: Error When Add Item To Cart Link to this post

    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

  • mazang
    Avatar
    Community Member
    4 Posts

    Re: Error When Add Item To Cart Link to this post

    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.

  • jmdweb
    Avatar
    Community Member
    14 Posts

    Re: Error When Add Item To Cart Link to this post

    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.

  • kcd
    Avatar
    Community Member
    54 Posts

    Re: Error When Add Item To Cart Link to this post

    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!

  • mazang
    Avatar
    Community Member
    4 Posts

    Re: Error When Add Item To Cart Link to this post

    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.

    1917 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.