Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
c563b6a2
Commit
c563b6a2
authored
May 19, 2020
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_advanced_ecommerce: only show available shipping method
parent
1c58d2f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
bt5/erp5_advanced_ecommerce/SkinTemplateItem/portal_skins/erp5_advanced_ecommerce/WebSection_viewShipmentMethodRenderer.zpt
...anced_ecommerce/WebSection_viewShipmentMethodRenderer.zpt
+7
-4
No files found.
bt5/erp5_advanced_ecommerce/SkinTemplateItem/portal_skins/erp5_advanced_ecommerce/WebSection_viewShipmentMethodRenderer.zpt
View file @
c563b6a2
<tal:block tal:define="web_site here/getWebSiteValue;
currency web_site/WebSite_getShoppingCartDefaultCurrency;
currency_reference currency/getReference;
currency web_site/WebSite_getShoppingCartDefaultCurrency;
currency_reference currency/getReference;
available_shipping_resource_list web_site/SaleOrder_getAvailableShippingResourceList;
shipping_category_list here/portal_categories/product_line/shipping/objectValues">
available_shipping_resource_list python: [x for x in available_shipping_resource_list if x.Resource_getShopPrice() is not None];
available_category_list python: [x.getProductLineValue() for x in available_shipping_resource_list];
shipping_category_list python: [x for x in here.portal_categories.product_line.shipping.objectValues() if x in available_category_list];"
>
<tal:block tal:repeat="category shipping_category_list">
<div class="shipment_category_item_title">
...
...
@@ -14,7 +17,7 @@
tal:content="category/getDescription"> Description </span>
</div>
<tal:block tal:repeat="resource available_shipping_resource_list">
<tal:block tal:condition="python:
(resource.Resource_getShopPrice() is not None) and
resource.getProductLineValue() == category">
<tal:block tal:condition="python: resource.getProductLineValue() == category">
<div class="shipment_method_item">
<input type="radio" tal:attributes="value resource/getRelativeUrl"
name="field_my_shipping_method">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment