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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

E-Commerce 0.6 beta 1 released


Go to End


108 Posts   32451 Views

Avatar
Sean

Forum Moderator, 922 Posts

18 June 2009 at 12:28pm

Edited: 18/06/2009 12:28pm

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

Community Member, 46 Posts

18 June 2009 at 4:28pm

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

Forum Moderator, 922 Posts

18 June 2009 at 5:02pm

Edited: 18/06/2009 5:03pm

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

Community Member, 46 Posts

18 June 2009 at 5:58pm

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

Community Member, 791 Posts

18 June 2009 at 8:05pm

>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

Community Member, 46 Posts

19 June 2009 at 12:29pm

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

Avatar
Android08

Community Member, 18 Posts

21 June 2009 at 10:53pm

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

Community Member, 18 Posts

21 June 2009 at 11:00pm

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