-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
executable file
·23 lines (13 loc) · 1.04 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FoxyStripe is a Silverstripe module designed to integrate with Foxycart (www.foxycart.com), a very nice and flexible shopping cart that integrates very seamlessly with other CMS's and is PCI Compliant.
This module provides templates and classes that create the forms which submit to foxycart's shopping cart.
this module's documentation could be better right now, but i just want to start sharing this.
things ive noticed:
for me, it helped to put all requirements in php and not in the templates, since i needed to block jquery and other scripts in page_controller::init().
if you are using conditional CSS statements for ie6, etc, make sure you tie them to the base url..
example in Page_Controller::init() function
BAD:
$tags = '<!--[if IE 6]><link rel="stylesheet" type="text/css" href="themes/mysite/css/ie6.css" ><![endif]-->';
Requirements::insertHeadTags($tags);
Good:
$tags = '<!--[if IE 6]><link rel="stylesheet" type="text/css" href="'.Director::absoluteBaseURL().'themes/mysite/css/ie6.css" ><![endif]-->';
Requirements::insertHeadTags($tags);