Thanks again for our help GRiiDWeb.
I now have everything up and running which is fantastic. I am just trying to figure out two things.
One how to set the currency, I want to use GBP. I have set this in the mysite/_config.php but it still displays $ on the site.
And also I want to set up shipping costs so that the UK is free and anything overseas, Rest Of World, is £2. I have uncommented the settings in the _config.php but again no luck.
Below is the settings I have enabled so far in the config file.
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ start ECOMMERCE module ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ___ ORDER
Order::set_modifiers(array());;
Order::set_email("marc@fifteen09.co.uk");
//Order::set_subject("Order #%d - Thank you for your order at margotdance.co.uk");
//Order::set_table_overview_fields(array());
//Order::set_order_id_start_number(1000);
//Order::$db["Status"] = 'Enum("New,Unpaid,PaymentConfirmed,QueryForCustomer,PartsOnOrder,Processing,Sent,Complete,AdminCancelled,MemberCancelled","New")';
// ___ ORDERFORMS
//TO BE IMPROVED USING EXTEND METHOD
//OrderFormWithoutShippingAddress::add_extra_field("tabName", new TextField("ExampleName");
OrderFormWithoutShippingAddress::set_fixed_country_code("UK");
//OrderFormWithoutShippingAddress::set_postal_code_url("http://www.nzpost.co.nz/Cultures/en-NZ/OnlineTools/PostCodeFinder");
//OrderFormWithoutShippingAddress::set_postal_code_label("find postcode");
/*
//adding /?BackURL= as part of the string will automatically add the right back URL!
OrderFormWithoutShippingAddress::set_login_invite_alternative_text('
If you have ordered from us before you will need to <a href="Security/login/?BackURL=">log in</a>.
To have your password reset link sent to you please go to the <a href="Security/lostpassword/?BackURL=">password recovery page</a>.
');
*/
//ExpiryDateField::set_short_months(true);
// ___ PAYMENT
Payment::set_site_currency('GBP');
// ___ MODIFIERS
SimpleShippingModifier::set_charges_for_countries(array(
'UK' => 0,
));
SimpleShippingModifier::set_default_charge(2);
//TaxModifier::set_for_country('NZ', 0.125, 'GST', 'exclusive');
// ___ PRODUCTS - TO BE MOVED TO SITE CONFIG
//Product::set_global_allow_purcahse(false);
//Product::set_thumbnail_size($width = 140, $height = 100);
//Product::set_content_image_width($width = 200);
//Product::set_large_image_width($width = 200);
//ProductGroup::set_page_length(12);
ProductGroup::set_must_have_price(true);
//ProductGroup::set_sort_options(true);
// *** CMS REPORTS
SS_Report::register('ReportAdmin','AllOrdersReport');
//SS_Report::register('ReportAdmin','CurrentOrdersReport');
//SS_Report::register('ReportAdmin','UnprintedOrderReport');
// ___ CMS MODELADMIN
//ProductsAndGroupsModelAdmin::set_managed_models(Array("Product", "ProductGroup"));
//StoreAdmin::set_managed_models(array('Order','Payment','OrderStatusLog', 'OrderItem', 'OrderModifier'));
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ end ECOMMERCE module ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Do I need to make changes elsewhere in the code? Everything I have found seem to refer back to the mysite/_config.php so I a bit stuck.
If you can point me in the right direction for this that would be amazing.
Thanks
Marc
--EDIT--
HI, so I figured out how to get shipping to display:
Order::set_modifiers(array(
'SimpleShippingModifier'
));
However now it just seem to be ignoring the UK charge of 0 and displaying the default charge of 2, still displaying as $, that I had set. I am not sure if this is because by default the country is set Afghanistan (first, alphabetically) as when I select UK from the list there is nothing to recalculate the shipping cost indication that this has happened.
Any help would much appreciated.
Thanks in advance.
Marc