I'm trying to get a basic e-commerce site working but am having a few problems. Is there anyone out there who can help please?
I am using Silverstripe 2.3.3, Ecommerce 0.6 beta 1 and Payments 0.1 beta 1 in a development environment running on Win XP/WAMP and a production environment on Unix (hosted with www.hostingshop.com.au).
1. How do you default the country on the Checkout page to 'New Zealand'?
Some of the documentation seems to inidcate that this is set based on the users IP address? I just want to have it default to 'New Zealand' and then have the customer choose a differerent country if required. Is there a command that could be put in _config.php?
2. How do you implement a new payment method called 'Direct Credit'?
I have copied \payments\code\ChequePayment.php to \mysite\code\DirectCreditPayment.php and changed all instances of 'Cheque' to 'DirectCredit'. I have inserted the following code in \mysite\_config.php
'ChequePayment' => 'Cheque',
'DirectCreditPayment' => 'Direct Credit',
This seems to work but it doesn't display the text 'Please note: Your goods will not be dispatched until we receive your payment.' (or something similar) on the Checkout page when you select 'Direct Credit'. This seems to be set in CheckoutPage.php but I can't work out out to amend this.
Is there anything else that needs changing when building a new payment method?
3. Has anyone implemented a shipping calculator which calculates the shipping cost based on region and quantity i.e. $5 per item in NZ, $20 per item overseas?
4. Has anyone manged to get PayPal (or PayMate) working with these versions of E-Commerce and Payments?
Have a look at www.the-westons.net/babywrap1 to see where I have got to so far.