Commit c1314393 authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Xiaowu Zhang

Make sure we use sale price

parent 4df644c6
...@@ -5,7 +5,7 @@ import mechanize ...@@ -5,7 +5,7 @@ import mechanize
def getProductPrice(product): def getProductPrice(product):
getPrice = UnrestrictedMethod(product.getPrice) getPrice = UnrestrictedMethod(product.getPrice)
return getPrice() return getPrice(supply_path_type=["Sale Supply Line", "Sale Supply Cell"])
def submitPaypalNVPRequest(parameter_dict, nvp_url): def submitPaypalNVPRequest(parameter_dict, nvp_url):
request = mechanize.Request(nvp_url) request = mechanize.Request(nvp_url)
...@@ -19,4 +19,4 @@ def submitPaypalNVPRequest(parameter_dict, nvp_url): ...@@ -19,4 +19,4 @@ def submitPaypalNVPRequest(parameter_dict, nvp_url):
for parameter in parameter_list: for parameter in parameter_list:
tmp = parameter.split('=') tmp = parameter.split('=')
response_parameter_dict[tmp[0]] = tmp[1] response_parameter_dict[tmp[0]] = tmp[1]
return response_parameter_dict return response_parameter_dict
\ No newline at end of file
...@@ -121,7 +121,7 @@ if not line_found:\n ...@@ -121,7 +121,7 @@ if not line_found:\n
order_line.setQuantity(quantity)\n order_line.setQuantity(quantity)\n
if variation: order_line.setVariation(variation)\n if variation: order_line.setVariation(variation)\n
if size: order_line.setSize(size)\n if size: order_line.setSize(size)\n
order_line.setPrice(context.getPrice(context=order_line))\n order_line.setPrice(context.getPrice(supply_path_type=["Sale Supply Line", "Sale Supply Cell"], context=order_line))\n
\n \n
if( context.getPortalType() == \'Product\'):\n if( context.getPortalType() == \'Product\'):\n
context.Base_redirect(\'Resource_viewAsShop\',\n context.Base_redirect(\'Resource_viewAsShop\',\n
......
...@@ -95,7 +95,7 @@ return movement\n ...@@ -95,7 +95,7 @@ return movement\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string>**kw</string> </value>
</item> </item>
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
......
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