From a864649e7967735471b93cfefa484752e22e511f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Algrain?= <fxalgrain@tiolive.com>
Date: Tue, 21 Dec 2010 11:38:00 +0000
Subject: [PATCH] Add a default checkout section when on website setup

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41582 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_commerce/WebSite_setupECommerceWebSite.xml           | 4 ++++
 bt5/erp5_commerce/bt/revision                                 | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_setupECommerceWebSite.xml b/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_setupECommerceWebSite.xml
index 33c735afb6..7499637a33 100644
--- a/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_setupECommerceWebSite.xml
+++ b/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/WebSite_setupECommerceWebSite.xml
@@ -66,6 +66,7 @@ for id in object_id_list:\n
 cart_section = context.newContent(portal_type=\'Web Section\', title=\'Cart\', id=\'cart\')\n
 account_section = context.newContent(portal_type=\'Web Section\', title=\'My account\', id=\'account\')\n
 register_section = context.newContent(portal_type=\'Web Section\', title=\'Register\', id=\'register\')\n
+checkout_section = context.newContent(portal_type=\'Web Section\', title=\'Checkout\', id=\'checkout\')\n
 \n
 # make some visible by default\n
 cart_section.setVisible(True)\n
@@ -88,6 +89,9 @@ account_section.setProperty(\'ecommerce_product_list\', False)\n
 register_section.setCustomRenderMethodId(\'WebSite_viewRegistrationDialog\')\n
 register_section.setProperty(\'ecommerce_default_content\', True)\n
 register_section.setProperty(\'ecommerce_product_list\', False)\n
+checkout_section.setCustomRenderMethodId(\'SaleOrder_viewConfirmAsWeb\')\n
+checkout_section.setProperty(\'ecommerce_default_content\', True)\n
+checkout_section.setProperty(\'ecommerce_product_list\', False)\n
 \n
 context.Base_redirect(\'\', keep_items={\n
    \'portal_status_message\': translateString("Your web site is now an ecommerce plateform.", mapping = dict())\n
diff --git a/bt5/erp5_commerce/bt/revision b/bt5/erp5_commerce/bt/revision
index c2567dc4fb..f3a5e81bae 100644
--- a/bt5/erp5_commerce/bt/revision
+++ b/bt5/erp5_commerce/bt/revision
@@ -1 +1 @@
-280
\ No newline at end of file
+281
\ No newline at end of file
-- 
2.30.9