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

E-Commerce 0.6 beta 1 released


Go to End
Reply

108 Posts   19750 Views

Avatar
Sean

18 June 2009 at 12:28pm (Last edited: 18 June 2009 12:28pm), Forum Moderator, 921 Posts

Hi everyone,

It's been a long time, but E-Commerce 0.6 has finally been released as beta. There's been a lot of changes since the last release 0.5.2, so it would be great if as many people can test this new beta as possible. The change log for this beta can be found by reading the "ChangeLog" file inside the ecommerce tar.gz file, attached to this post.

Keep in mind that the payment module needs to be installed separately as well, since the payment functionality has been shifted into a separate module. This too been released as 0.1-beta1 to match ecommerce, and is attached to this post as well.

E-Commerce 0.6 requires that you use the latest release of SilverStripe 2.3. At this time, the very latest is 2.3.2-rc4.

Instructions to install:

1. Download and copy "ecommerce-0.6-beta1.tar.gz" and "payment-0.1-beta1.tar.gz" into your project directory
2. Unpack the files. New folders "ecommerce" and "payment" should appear as sibilings of the cms and sapphire directories
3. Run "dev/build". e.g. "http://localhost/myproject/dev/build" in your web browser to rebuild the database
4. You should now be up and running

Please post any problems you have in this thread.

Thanks,
Sean

Avatar
Apophenian

18 June 2009 at 4:28pm Community Member, 46 Posts

Hi there,

It looks like the Payment class is missing a link with the Order class

I just added the following to the Payment class which seems to have fixed a few issues I was having:

public static $has_one = array(
    'Order' => 'Order'
   );

Avatar
Sean

18 June 2009 at 5:02pm (Last edited: 18 June 2009 5:03pm), Forum Moderator, 921 Posts

Apophenian: That should have been added through a decorator called EcommercePayment.

If you have a look in ecommerce/_config.php file, there's this line that should add this decorator:

// Extend Payment with e-commerce relationship.
DataObject::add_extension('Payment', 'EcommercePayment');

This should have set up the Order relationship on Payment automatically. Can you confirm that it created a column called OrderID on the Payment table without changing anything in Payment.php yourself?

Cheers,
Sean

Avatar
Apophenian

18 June 2009 at 5:58pm Community Member, 46 Posts

Interesting, I even did a fresh install of silverstripe (2.3.1) and added the ecommerce and payment modules seperately, and it's still not adding the orderid field to the Payments table, though from a bit of debugging, it looks like it is hitting the extraStatics method in the EcommercePayment class.

Weird..

Avatar
Fuzz10

18 June 2009 at 8:05pm Community Member, 787 Posts

>Interesting, I even did a fresh install of silverstripe (2.3.1) ......

E-Commerce 0.6 requires that you use the latest release of SilverStripe 2.3. At this time, the very latest is 2.3.2-rc4.

Avatar
Apophenian

19 June 2009 at 12:29pm Community Member, 46 Posts

Ah right - sorry for not following the instructions properly - works like a charm now. :)

Avatar
Android08

21 June 2009 at 10:53pm Community Member, 18 Posts

I get an error saying that the Order function does not exist for paypal payment. Other than that it seems to be working fine for me. Is there anyway I can change the currency symbol from $ to £?

Avatar
Android08

21 June 2009 at 11:00pm Community Member, 18 Posts

I have just realised that when I make an order it is overwriting my admin account with details that I type into the order? Could this be because I am logged in?

Go to Top