1999 Posts in 530 Topics by 433 members
E-Commerce Modules
SilverStripe Forums » E-Commerce Modules » themed css for cart/checkout pages : issue fixed?
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: | 540 Views |
-
themed css for cart/checkout pages : issue fixed?

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...
-
Re: themed css for cart/checkout pages : issue fixed?

18 December 2011 at 7:05am
Thanks for sharing this Futureweb! Was just looking for a solution to this and yours worked perfectly.
| 540 Views | ||
|
Page:
1
|
Go to Top |


