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.

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

themed css for cart/checkout pages : issue fixed?


Reply

2 Posts   766 Views

Avatar
Futureweb

13 June 2011 at 12:27pm Community Member, 233 Posts

i noticed that if you copy all the css form the ecommerce module to your theme folder, silverstripe will use your versions not the default versions - good for theming...

however, both the checkout and the cart were not picking up the style sheets in my theme folder

I realised that you have to edit ecommerce/code/CartPage.php + ecommerce/code/CheckoutPage.php and find
"public function init() {" and then move the the line "Requirements::themedCSS('CheckoutPage');" to after "parent::init()";

eg:
parent::init();
Requirements::themedCSS('CheckoutPage');

then it will load your nice customised checkout/cart styles...

Avatar
SnowBoarder82

18 December 2011 at 7:05am Community Member, 52 Posts

Thanks for sharing this Futureweb! Was just looking for a solution to this and yours worked perfectly.