2004 Posts in 533 Topics by 435 members
E-Commerce Modules
SilverStripe Forums » E-Commerce Modules » ecommerce trunk and payment module
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 3573 Views |
-
ecommerce trunk and payment module

15 April 2009 at 5:12am
The ones who downloaded the recent ecommerce trunk (currently r73999) might have noticed that you cannot get it running due to the missing payment module. There seems to be no link anywhere to download this new (and unsupported) payment module. However payments module trunk is accessible per svn, and assuming that you know svn and have it installed you can get it like this:
svn co http://svn.silverstripe.com/open/modules/payment/trunk/ payment
This will checkout the latest payment module trunk into the subdirectory "payment". Copy that to SS, run http://domain.tld/dev/build/?flush=1 and now the ecommerce trunk loads.
That doesn't mean that all works though, i have no products showing up anymore
-
Re: ecommerce trunk and payment module

17 April 2009 at 1:02am
Yes, I'm missing products on the shop homepage but once you get to a category page they do show up.
Have you (or anyone else for that matter) had any luck with getting the TaxModifiers to work in this version?
This is the code I'm using, the currency and symbol parts are working but the TaxModifiers seem to have no effect.
Payment::set_site_currency("GBP"); //change this to the relevant currency code
Currency::setCurrencySymbol('£'); //change this to the relevant symbolTaxModifier::set_for_country("NZ", 0.15, "VAT", "exclusive");
TaxModifier::set_for_country("UK", 0.15, "VAT", "exclusive");
Order::set_modifiers(array('TaxModifier')); -
Re: ecommerce trunk and payment module

17 April 2009 at 3:53am
@mwalsh: The missing products on the shop homepage could be just a setting in the cms admin panel of the shop, where you define for each category if you want to see
-
* all its products, or
* the featured ones only, or
* none at all.
otherwise if anything is not displayed or displayed incorrectly or looking weird, then replace the relevant ecommerce template of your theme by the template which comes with ecommerce trunk. The templates have changed quite a lot.
I have it running now on my development server (SS 2.3.1 with ecommerce trunk), all seems to work fine, even multilingual, so it is not too much to adjust. However I haven't touched the TaxModifiers yet, so I can't comment on them yet.
-
-
Re: ecommerce trunk and payment module

28 April 2009 at 1:46am
hi,
how to add shopping cart "block" on every page. Old method
function Cart(){
return Order::ShoppingCart();
}placed in page.php doesnt ork for me.
Thanks
Pali
-
Re: ecommerce trunk and payment module

28 April 2009 at 2:11am
found it:
function MyCart(){
return Product::Cart();
}looks working ;)
-
Re: ecommerce trunk and payment module

27 October 2010 at 10:42am
any clue what it is these days? I found this in productgroup.php
but it doesn't seem to recognize when I have products as it never shows up
function Cart() {
//HTTP::set_cache_age(0);
return ShoppingCart::current_order();
} -
Re: ecommerce trunk and payment module

4 February 2011 at 8:04am Last edited: 4 February 2011 8:06am
SS v 2.4.5
ecommerce v 0.81rcI never read so much over the last couple of days trying to get the cart on every page issue working (inside right sidebar) using <% include Cart %> pulled in the cart but just showed an empty sidebar, anyway using the function code from ProductGroup.php as pointed out by vancouverWill did work for me, what i did was add it into Page.php inside this ContentController:
class Page_Controller extends ContentController {
//Returns the shopping cart into my themes sidebar across all pages
function Cart() {
HTTP::set_cache_age(0);
return ShoppingCart::current_order();
}
}what i would like to ask you guys is this the correct way to go about it? as further down the line i dont really want to be hitting issues if there is a "right and proper" way to do this..
| 3573 Views | ||
|
Page:
1
|
Go to Top |





