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
PaymentExpress

Community Member, 5 Posts

16 February 2010 at 10:27pm

Hi again,

This is a newer version of the DPS Hosted Payment Page (Px Pay) payment module that also supports easy repeat purchases (via DPS Web Service). The customer can opt for their card to be saved (in DPS' system) so that it can be used easily next time. The next time this user checks out, a truncated card number will be shown at checkout and this can be selected for payment.

Unfortunately I haven't been able to get it uploaded to an SVN repository yet (proxy causing some drama) so hopefully the zip file will do for now.

Please note that this module needs a fair bit of testing and any questions/feedback/bug reports are welcome.

Thanks.

Attached Files
Avatar
eskimo

Community Member, 30 Posts

3 March 2010 at 2:46am

When setting up PayPal am I still using the same method of putting the payment methods in the the _config file in /mysite/ or is it the _config file in /eccomerce/

The notes in PayPalPayment seem to suggest it is the latter. Is this correct?

Cheers

Shaun

Avatar
eskimo

Community Member, 30 Posts

3 March 2010 at 10:24pm

In answer to my question - its the /ecommerce/_config.php that you change.

----------------------------------------------------------------------------------------------------------------------------------------

Does the paypal option do anything with API's at all or is just a case of going to the PayPal payment page?

Many thanks

Shaun

Avatar
eskimo

Community Member, 30 Posts

4 March 2010 at 5:40am

Another quick question - did anyone work out how to change the amount total in the payment-2 page to be anything other than "$"? Just want to make it a pound sign.

Cheers

Shaun

Avatar
TotalNet

Community Member, 181 Posts

4 March 2010 at 10:41am

Hey Shaun,

All config settings should be fine done in mysite/_config.php, changing the module's config file may get overwritten if you upgrade it.

Anyway, have you tried

Currency::setCurrencySymbol("£"); 

in your mysite/_config.php ?

Cheers,

Rich

Avatar
eskimo

Community Member, 30 Posts

5 March 2010 at 3:40am

I have done that and it changes everything except the amount in summary page. As attached.

I don't know if there is another change I should make?

Many thanks

Shaun

Attached Files
Avatar
TotalNet

Community Member, 181 Posts

5 March 2010 at 9:02am

Just had a look a the code (latest trunk version) and this is hard-coded into OrderForm.php, so you'll have to change it here.
line 70

$total = '$' . number_format($currentOrder->Total(), 2);

replace '$' with Currency::getCurrencySymbol()

Avatar
eskimo

Community Member, 30 Posts

11 March 2010 at 2:18am

I'm afraid when I make this change on line 70 to look like:

$total = Currency::getCurrencySymbol() . number_format($currentOrder->Total(), 2);

I get the following error:

Fatal error: Call to undefined method Currency::getcurrencysymbol() in /home/wwdncouk/public_html/ecommerce/code/forms/OrderForm.php on line 70