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

themed css for cart/checkout pages : issue fixed?


Go to End


2 Posts   1560 Views

Avatar
JonShutt

Community Member, 244 Posts

13 June 2011 at 12:27pm

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

Community Member, 57 Posts

18 December 2011 at 7:05am

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