$template="./template/";
//Renderer options
-// uncomment the ones you want to use
$twigoptions = array(
- //cache should be either set to false (no cache) or an explicit writeable path
- //if not present Twig will use a subdirectory under /tmp, which is not particularly secure
- //'cache' => '/path/to/compilation_cache',
- 'cache' => false,
- //character set the templates are written in, default is utf-8
- //'charset' => 'utf-8',
- //automatically reload/compile templates when they change
- //'auto_reload' => false,
+ //cache points to:
+ // a (relative) path to store cached pages in, or
+ // false to switch caching off
+ //'cache' => './tcache',
+ 'cache' => false,
+
+ //character set, default is utf-8
+ //'charset' => 'utf-8',
+
+ //enable this while you are actively changing code/templates and use a cache:
+ //'auto_reload' => true,
+
+ //enable this to throw an exception if an undefined variable is used,
+ //disable in final deployment:
+ 'strict_variables' => true,
);
-//Renderer extensions
$twigextensions = array(
- //'Escaper', //provides the escape filter and autoescaping
- //'Sandbox', //allows to execute templates in a sandbox
- //'I18n', //provides the trans filter
+ //HTML code auto-escaper:
+ 'Escaper',
+ //Sandbox - cannot be loaded like this: it needs extensive configuration
+ //I18n - you also have to configure PHPs gettext extension to actually use this
);
-//there is currently no configuration available for these extensions - this may make them pretty useless
-//how long the stuff in a shopping cart is stored, the value is in seconds (1h = 3600s)
-$CartTimeout=3600;
+//how long the stuff in a shopping cart is stored
+// this is the time that can go by while the user is looking around without touching
+// the cart
+$CartTimeout=30*60;
-//Authenticated web session timeout - how long an authenticated web session lasts
+//Authenticated web session timeout -
+// how long a web session lasts without a refresh;
// this should usually be on the order of 10-30 minutes (the value is in seconds)
-$WebSessionTimeout=1800;
+$WebSessionTimeout=15*60;
//whether to show errors in the web client - usually turned off in production mode
-$WebShowErrors=false;
+$WebShowErrors=true;
//default shipping for the web UI
// true if shipping is enforced, false if the user may opt out of chosing a shipping option
// set this to -1 if you do not want a default option
$WebDefaultShipping=1;
+//customer flags
+// list of flags that customers can have, separated by spaces
+$WebCustomerFlags="newsletter reminder";
+
+//order flags
+// you can add arbitrary input fields to the checkout pagem this array defines
+// what values they must have, this can be used for acknowledging standard
+// form contract (German: AGB) clauses
+$WebOrderFields['sfc_ack']='on';
+
+//customer password reset
+// this is the time in seconds that the customer has to click on the reset link
+$CustomerResetTime=24 * 60 * 60;
+
+//base URL for the customer subsystem
+// leave commented out or empty if MagicSmoke should figure it out automatically
+// $BaseUrl = "https://localhost/smoke/index.php";
+
?>
\ No newline at end of file