Commit bcc87f9f authored by Vincent Desmares's avatar Vincent Desmares

vincentd

Small changes on many form and add a script for initialise a ecommerce web site.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27809 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2f1482e9
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string># Only save basic personal information for an ecommerce website\n
translateString = context.Base_translateString \n
\n
context.Base_edit(form_id=\'Person_viewAsWeb\')\n
\n
context.ERP5Site_redirect(\'%s/account\' % context.getWebSiteValue().absolute_url(), \\\n
keep_items={\'portal_status_message\': translateString("Your personal informations are updated.", mapping = dict())})\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>*args, **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>args</string>
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>translateString</string>
<string>dict</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Person_editPersonalInformation</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context.REQUEST.set(\'editable_mode\', 1)\n
return context.getWebSectionValue().restrictedTraverse(\'person_module/1\').Person_viewAsWeb(context.REQUEST)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_getattr_</string>
<string>context</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_viewCurrentPersonAsWeb</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>if (context.getPortalType() != \'Web Site\'):\n
context.Base_redirect(\'\', keep_items={\n
\'portal_status_message\': translateString("You can only launch this script on a web site.", mapping = dict())\n
})\n
\n
# creation the default sections\n
cart_section = context.newContent(portal_type=\'Web Section\', title=\'Cart\', id=\'cart\')\n
checkout_section = context.newContent(portal_type=\'Web Section\', title=\'Checkout\', id=\'checkout\')\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
\n
# make some visible by default\n
cart_section.setVisible(True)\n
checkout_section.setVisible(True)\n
\n
# setup site properties\n
context.setContainerLayout(\'erp5_web_multiflex5_commerce_layout\')\n
context.setLayoutConfigurationFormId(\'WebSection_viewMultiflex5Configuration\')\n
context.setProperty(\'layout_right_column\', True)\n
context.setSiteMapSectionParent(True)\n
context.setContentLayout(None)\n
context.setProperty(\'layout_additional_css\', \'mf54_commerce.css\')\n
\n
# setup default render method\n
cart_section.setCustomRenderMethodId(\'SaleOrder_viewAsWeb\')\n
cart_section.setProperty(\'ecommerce_default_content\', True)\n
cart_section.setProperty(\'ecommerce_product_list\', False)\n
checkout_section.setCustomRenderMethodId(\'SaleOrder_viewAsWebConfirm\')\n
checkout_section.setProperty(\'ecommerce_default_content\', True)\n
checkout_section.setProperty(\'ecommerce_product_list\', False)\n
account_section.setCustomRenderMethodId(\'WebSection_viewCurrentPersonAsWeb\')\n
account_section.setProperty(\'ecommerce_default_content\', True)\n
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
\n
context.Base_redirect(\'\', keep_items={\n
\'portal_status_message\': translateString("Your web site is now an ecommerce plateform.", mapping = dict())\n
})\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>translateString</string>
<string>dict</string>
<string>cart_section</string>
<string>checkout_section</string>
<string>account_section</string>
<string>register_section</string>
<string>True</string>
<string>None</string>
<string>False</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSite_setupECommerceWebSite</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -13,12 +13,12 @@ ...@@ -13,12 +13,12 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>title</string>
<string>default</string> <string>default</string>
<string>width</string>
<string>height</string> <string>height</string>
<string>text_editor</string> <string>text_editor</string>
<string>title</string>
<string>whitespace_preserve</string> <string>whitespace_preserve</string>
<string>width</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -99,7 +99,7 @@ div.selected-product {height : 110px; width:<tal:block tal:replace="main_content ...@@ -99,7 +99,7 @@ div.selected-product {height : 110px; width:<tal:block tal:replace="main_content
div.selected-product div {float:left; width:100px; height:100px; text-align:center; padding-right: 25px;}\n div.selected-product div {float:left; width:100px; height:100px; text-align:center; padding-right: 25px;}\n
div.selected-product img {border:solid 1px <tal:block tal:replace="primary_color"/>; padding:0px; margin-left:10px; margin-right:10px; margin-top:5px; margin-bottom:2px;}\n div.selected-product img {border:solid 1px <tal:block tal:replace="primary_color"/>; padding:0px; margin-left:10px; margin-right:10px; margin-top:5px; margin-bottom:2px;}\n
div.selected-product img:hover {border:solid 2px <tal:block tal:replace="primary_color"/>; padding:0px; margin-top:4px; margin-left:9px; margin-right:9px; margin-bottom:1px;}\n div.selected-product img:hover {border:solid 2px <tal:block tal:replace="primary_color"/>; padding:0px; margin-top:4px; margin-left:9px; margin-right:9px; margin-bottom:1px;}\n
div.selected-product div div {width:50px; height:50px; vertical-align:middle; text-align:middle; border:solid 1px <tal:block tal:replace="primary_color"/>; padding:0px; margin-left:10px; margin-right:10px; margin-top:5px; margin-bottom:2px;}\n div.selected-product div div {width:50px; height:50px; vertical-align:middle; text-align:center; border:solid 1px <tal:block tal:replace="primary_color"/>; padding:0px; margin-left:10px; margin-right:10px; margin-top:5px; margin-bottom:2px;}\n
div.selected-product div div:hover {border:solid 2px <tal:block tal:replace="primary_color"/>; padding:0px; margin-top:4px; margin-left:9px; margin-right:9px; margin-bottom:1px;}\n div.selected-product div div:hover {border:solid 2px <tal:block tal:replace="primary_color"/>; padding:0px; margin-top:4px; margin-left:9px; margin-right:9px; margin-bottom:1px;}\n
\n \n
.cart_item_name {width:180px;}\n .cart_item_name {width:180px;}\n
...@@ -156,6 +156,9 @@ div.shopping_cart_renderer_shipping {width: <tal:block tal:replace="python: main ...@@ -156,6 +156,9 @@ div.shopping_cart_renderer_shipping {width: <tal:block tal:replace="python: main
div.shopping_cart_renderer_submit {width: <tal:block tal:replace="python: main_content_width - 40"/>px; height:20px; margin-bottom:20px; padding-left:20px; padding-right:20px; padding-top:3px; padding-bottom:3px; background-color:<tal:block tal:replace="body_color"/>;}\n div.shopping_cart_renderer_submit {width: <tal:block tal:replace="python: main_content_width - 40"/>px; height:20px; margin-bottom:20px; padding-left:20px; padding-right:20px; padding-top:3px; padding-bottom:3px; background-color:<tal:block tal:replace="body_color"/>;}\n
.shopping_cart_renderer_submit label {float:left; width: <tal:block tal:replace="python: main_content_width / 8"/>px; height:20px;padding:0px;}\n .shopping_cart_renderer_submit label {float:left; width: <tal:block tal:replace="python: main_content_width / 8"/>px; height:20px;padding:0px;}\n
.shopping_cart_renderer_submit div {float:right; height:20px; padding:0px}\n .shopping_cart_renderer_submit div {float:right; height:20px; padding:0px}\n
.shopping_cart_renderer_submit input {float:right;}\n
.shopping_cart_renderer input {float:right;}\n
\n
\n \n
.mf_commerce_text {font: 12px <tal:block tal:replace="python: \',\'.join(font_list)"/>}\n .mf_commerce_text {font: 12px <tal:block tal:replace="python: \',\'.join(font_list)"/>}\n
.mf_commerce_text_bold {font: bold 12px <tal:block tal:replace="python: \',\'.join(font_list)"/>;}\n .mf_commerce_text_bold {font: bold 12px <tal:block tal:replace="python: \',\'.join(font_list)"/>;}\n
...@@ -165,7 +168,7 @@ div.shopping_cart_renderer_submit {width: <tal:block tal:replace="python: main_c ...@@ -165,7 +168,7 @@ div.shopping_cart_renderer_submit {width: <tal:block tal:replace="python: main_c
div.hiddenLabel label {display:none;}\n div.hiddenLabel label {display:none;}\n
fieldset.editable div.input {padding:0px;}\n fieldset.editable div.input {padding:0px;}\n
\n \n
.main_content table {border-top: solid 1px <tal:block tal:replace="primary_color"/>;}\n .main_content table {border-top: solid 1px <tal:block tal:replace="primary_color"/>; margin-bottom:10px;}\n
.main_content table th {border:none; background-color:<tal:block tal:replace="body_color"/>;}\n .main_content table th {border:none; background-color:<tal:block tal:replace="body_color"/>;}\n
.main_content table tr {border:none; border-bottom:dashed 1px <tal:block tal:replace="menu_color"/>; background-color:#FFF;}\n .main_content table tr {border:none; border-bottom:dashed 1px <tal:block tal:replace="menu_color"/>; background-color:#FFF;}\n
.main_content table td {border:none; background-color:#FFF;}\n .main_content table td {border:none; background-color:#FFF;}\n
...@@ -178,6 +181,25 @@ fieldset.editable div.input {padding:0px;}\n ...@@ -178,6 +181,25 @@ fieldset.editable div.input {padding:0px;}\n
.main_content th img {clear:none; border:none; margin-left:5px;}\n .main_content th img {clear:none; border:none; margin-left:5px;}\n
.main_content .pageNavigation input {vertical-align:middle;}\n .main_content .pageNavigation input {vertical-align:middle;}\n
.main_content table td.td_check_all {background-color:<tal:block tal:replace="body_color"/>;}\n .main_content table td.td_check_all {background-color:<tal:block tal:replace="body_color"/>;}\n
\n
#fieldset_left {padding:10px;}\n
#fieldset_left div.field {float:left; width:90%; margin-top:5px; margin-bottom: 10px;}\n
#fieldset_left label {float:left; width: <tal:block tal:replace="python: main_content_width / 5"/>px;}\n
#fieldset_left label a {display:none;}\n
#fieldset_left div.input {float:left;}\n
#fieldset_right {padding:10px;}\n
#fieldset_right div.field {float:left; width:90%; margin-top:5px; margin-bottom: 10px;}\n
#fieldset_right label {float:left; width:<tal:block tal:replace="python: main_content_width / 5"/>px;}\n
#fieldset_right label a {display:none;}\n
#fieldset_right div.input {float:left;}\n
#fieldset_center {padding:10px;}\n
#fieldset_center div.field {float:left; width:90%; margin-top:5px; margin-bottom: 10px;}\n
#fieldset_center label {float:left; width:<tal:block tal:replace="python: main_content_width / 5"/>px;}\n
#fieldset_center label a {display:none;}\n
#fieldset_center div.input {float:left;}\n
\n
.ecommerce_submit {margin:10px; margin-left:20px;}\n
\n
</tal:block> </tal:block>
]]></string> </value> ]]></string> </value>
......
...@@ -161,7 +161,16 @@ ...@@ -161,7 +161,16 @@
\n \n
<!-- CONTENT -->\n <!-- CONTENT -->\n
<div class="main_content">\n <div class="main_content">\n
<tal:block tal:condition="python: section.getLayoutProperty(\'ecommerce_selected_product\', False)">\n <tal:block tal:condition="python: request.get(\'portal_status_message\') is not None">\n
<div class="main_content">\n
<div class="corner-content-1col-top"></div>\n
<div class="content-1col-nobox">\n
<span tal:content="python: request.get(\'portal_status_message\')"></span>\n
</div>\n
<div class="corner-content-1col-bottom"></div> \n
</div>\n
</tal:block> \n
<tal:block tal:condition="python: request.get(\'current_web_section\', here).getLayoutProperty(\'ecommerce_selected_product\', False)">\n
<div class="main_content">\n <div class="main_content">\n
<div class="corner-content-1col-top"></div>\n <div class="corner-content-1col-top"></div>\n
<div class="content-1col-nobox">\n <div class="content-1col-nobox">\n
......
...@@ -40,6 +40,16 @@ ...@@ -40,6 +40,16 @@
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string>Base_edit</string> </value> <value> <string>Base_edit</string> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>encoding</string> </key> <key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value> <value> <string>UTF-8</string> </value>
...@@ -52,9 +62,9 @@ ...@@ -52,9 +62,9 @@
<key> <string>group_list</string> </key> <key> <string>group_list</string> </key>
<value> <value>
<list> <list>
<string>left</string> <string>left (Personal Informations)</string>
<string>right</string> <string>right (Contact Informations)</string>
<string>center</string> <string>center (Login Informations)</string>
<string>bottom</string> <string>bottom</string>
</list> </list>
</value> </value>
...@@ -72,7 +82,7 @@ ...@@ -72,7 +82,7 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>center</string> </key> <key> <string>center (Login Informations)</string> </key>
<value> <value>
<list> <list>
<string>my_description</string> <string>my_description</string>
...@@ -83,7 +93,7 @@ ...@@ -83,7 +93,7 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>left</string> </key> <key> <string>left (Personal Informations)</string> </key>
<value> <value>
<list> <list>
<string>my_first_name</string> <string>my_first_name</string>
...@@ -96,7 +106,7 @@ ...@@ -96,7 +106,7 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>right</string> </key> <key> <string>right (Contact Informations)</string> </key>
<value> <value>
<list> <list>
<string>my_default_email_text</string> <string>my_default_email_text</string>
...@@ -126,7 +136,7 @@ ...@@ -126,7 +136,7 @@
</item> </item>
<item> <item>
<key> <string>pt</string> </key> <key> <string>pt</string> </key>
<value> <string>form_view</string> </value> <value> <string>ecommerce_form_list</string> </value>
</item> </item>
<item> <item>
<key> <string>row_length</string> </key> <key> <string>row_length</string> </key>
...@@ -148,6 +158,10 @@ ...@@ -148,6 +158,10 @@
<key> <string>update_action</string> </key> <key> <string>update_action</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>update_action_title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -222,7 +222,9 @@ ...@@ -222,7 +222,9 @@
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>external_validator</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>extra</string> </key> <key> <string>extra</string> </key>
...@@ -281,4 +283,20 @@ ...@@ -281,4 +283,20 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="Method" module="Products.Formulator.MethodField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>Person_validatePasswordsMatch</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: [( \'%s - %s %s\' %(o.getObject().getTitle(), o.getObject().getPrice(), here.SaleOrder_getShoppingCartDefaultCurrency().getTitle() ), o.getObject().getRelativeUrl(),) for o in here.SaleOrder_getAvailableShippingResourceList()]</string> </value> <value> <string>python: [(\'\', \'\')] + [( \'%s - %s %s\' %(o.getObject().getTitle(), o.getObject().getPrice(), here.SaleOrder_getShoppingCartDefaultCurrency().getTitle() ), o.getObject().getRelativeUrl(),) for o in here.SaleOrder_getAvailableShippingResourceList()]</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<h3> <span tal:replace="python: here.Base_translateString(\'You have not selected shipping\')"/></h3>\n <h3> <span tal:replace="python: here.Base_translateString(\'You have not selected shipping\')"/></h3>\n
<p> \n <p> \n
<span tal:replace="python: here.Base_translateString(\'Your current cart selection requires shipping. Please select shipping from\')"/>\n <span tal:replace="python: here.Base_translateString(\'Your current cart selection requires shipping. Please select shipping from\')"/>\n
<a href="SaleOrder_viewAsWeb">here</a>.\n <a tal:attributes="href python: \'%s/cart\' % here.getWebSiteValue().absolute_url()">here</a>.\n
</p>\n </p>\n
</tal:block>\n </tal:block>\n
\n \n
......
...@@ -90,13 +90,13 @@ ...@@ -90,13 +90,13 @@
<td class="cart_bottom">\n <td class="cart_bottom">\n
<div class="cart_left">\n <div class="cart_left">\n
<a class="articlelink" \n <a class="articlelink" \n
tal:attributes="href python: \'%s/%s/SaleOrder_viewAsWeb\' % (website.absolute_url(), website.getLayoutProperty(\'ecommerce_cart_section_id\', \'\'))">\n tal:attributes="href python: \'%s/%s\' % (website.absolute_url(), website.getLayoutProperty(\'ecommerce_cart_section_id\', \'\'))">\n
<span tal:replace="python: here.Base_translateString(\'Edit Shopping Cart\')"/>\n <span tal:replace="python: here.Base_translateString(\'Edit Shopping Cart\')"/>\n
</a>\n </a>\n
</div>\n </div>\n
<div class="cart_right">\n <div class="cart_right">\n
<a class="articlelink"\n <a class="articlelink"\n
tal:attributes="href python: \'%s/%s/SaleOrder_confirmShopping\' % (website.absolute_url(), website.getLayoutProperty(\'ecommerce_checkout_section_id\', \'\'))">\n tal:attributes="href python: \'%s/%s\' % (website.absolute_url(), website.getLayoutProperty(\'ecommerce_checkout_section_id\', \'\'))">\n
<span tal:replace="python: here.Base_translateString(\'Checkout\')"/>\n <span tal:replace="python: here.Base_translateString(\'Checkout\')"/>\n
</a>\n </a>\n
</div>\n </div>\n
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<span tal:replace="python: here.Base_translateString(\'You are not logged in\')"/>\n <span tal:replace="python: here.Base_translateString(\'You are not logged in\')"/>\n
</p>\n </p>\n
<p class="article">\n <p class="article">\n
<a class="articlelink" href="product_module/WebSite_joinForm">\n <a class="articlelink" href="register">\n
&#149; <span tal:replace="python: here.Base_translateString(\'I want to create an account\')"/>\n &#149; <span tal:replace="python: here.Base_translateString(\'I want to create an account\')"/>\n
</a>\n </a>\n
</p>\n </p>\n
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
<span tal:replace="python: here.Base_translateString(\'My Orders\')"/>\n <span tal:replace="python: here.Base_translateString(\'My Orders\')"/>\n
</a> &nbsp;\n </a> &nbsp;\n
<a class="articlelink" \n <a class="articlelink" \n
tal:attributes="href python: \'%s/%s/view?editable_mode:int=1\' %(website.absolute_url(), customer.getRelativeUrl())"> \n tal:attributes="href python: \'%s/account\' % website.absolute_url()"> \n
<span tal:replace="python: here.Base_translateString(\'My Account\')"/>\n <span tal:replace="python: here.Base_translateString(\'My Account\')"/>\n
</a> &nbsp;\n </a> &nbsp;\n
<a class="articlelink" \n <a class="articlelink" \n
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
<tal:block metal:use-macro="here/ecommerce_list_main/macros/master">\n
<tal:block metal:fill-slot="main">\n
<tal:block metal:use-macro="here/form_render/macros/master" />\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ecommerce_form_list</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -39,33 +39,30 @@ ...@@ -39,33 +39,30 @@
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<div tal:repeat="product python: here.WebSection_getProductList()">\n <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
<div tal:condition="python: product is not None"\n xmlns:metal="http://xml.zope.org/namespaces/metal"\n
tal:define="shopping_cart here/SaleOrder_getShoppingCart;\n xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
site_url python:here.getWebSiteValue().absolute_url();\n <tal:block metal:define-macro="master">\n
product_href python: \'%s/product_module/%s/%s\' % (site_url, product.getId(), \'Resource_viewAsShop\');\n <tal:block tal:define="form_action string:Base_doSelect;\n
currency_symbole python: context.getPortalObject().restrictedTraverse(shopping_cart.getPriceCurrency()).getShortTitle();"\n form_id form/id;\n
tal:attributes="class python: repeat[\'product\'].index % 2 and \'product_list_bis\' or \'product_list\'">\n list_mode python: True;\n
<div class="product_list_left">\n listmode_default_listbox python:getattr(form, \'listbox\', None);\n
<a tal:attributes="href product_href">\n selection_name listmode_default_listbox/selection_name | nothing;\n
<img tal:attributes="src python: product.getDefaultImageAbsoluteUrl() + \'?display=thumbnail\'" width="75" height="75">\n selection_index request/selection_index | python:0;\n
</a>\n dummy python: selection_name and request.set(\'selection_name\', selection_name);\n
<p tal:content="python: product.getTranslatedTitle()">Title of the product</p>\n local_parameter_list local_parameter_list | python: {};\n
<p tal:content="python: \'%s ...\' % product.getDescription()[0:80]">Description of the product</p>\n dummy python: local_parameter_list.update({\'selection_name\': selection_name, \'selection_index\': selection_index, \'form_id\': form_id});\n
</div>\n title here/getTranslatedTitle | here/Title">\n
<div class="product_list_right">\n <tal:block metal:use-macro="here/main_template/macros/master">\n
<tal:block tal:define="price product/getPrice">\n <tal:block metal:fill-slot="main">\n
<tal:block tal:condition="python: price is not None">\n <tal:block metal:define-slot="main" />\n
<span>Price : </span><span tal:content="python: \'%s %s\' % (product.getPrice(), currency_symbole)">0 euros</span><br />\n <input type="submit" name="Person_editPersonalInformation:method" value="Submit" class="ecommerce_submit"/>\n
</tal:block>\n
<tal:block tal:condition="python: price is None">\n
<span>The price is not setted yet.</span><br />\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
<a tal:attributes="href product_href">More informations</a>\n </tal:block>\n
</div>\n </tal:block>\n
</div>\n </tal:block>\n
</div>
]]></string> </value> ]]></string> </value>
</item> </item>
...@@ -79,7 +76,7 @@ ...@@ -79,7 +76,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>WebSection_viewProductList</string> </value> <value> <string>ecommerce_list_main</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
135 136
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment