svn commit: r797336 - /ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r797336 - /ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml

mor-2
Author: mor
Date: Fri Jul 24 06:42:39 2009
New Revision: 797336

URL: http://svn.apache.org/viewvc?rev=797336&view=rev
Log:
Added various contact mechs to cart for One Page Checkout events so that they can be associated to an order.

Modified:
    ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml

Modified: ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml?rev=797336&r1=797335&r2=797336&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml Fri Jul 24 06:42:39 2009
@@ -914,6 +914,13 @@
         </call-service>
         <field-to-request field="parameters.shipToPhoneContactMechId" request-name="shipToPhoneContactMechId"/>
 
+        <if-not-empty field="parameters.shipToPhoneContactMechId">
+            <call-object-method obj-field="shoppingCart" method-name="addContactMech">
+                <string value="PHONE_SHIPPING"/>
+                <field field="parameters.shipToPhoneContactMechId"/>
+            </call-object-method>
+       </if-not-empty>
+
         <!-- Create Update email address -->
         <call-map-processor xml-resource="component://ecommerce/script/org/ofbiz/ecommerce/customer/CheckoutMapProcs.xml"
                 processor-name="emailAddress" in-map-name="parameters" out-map-name="emailAddressContext"/>
@@ -928,6 +935,12 @@
         </call-service>
         <field-to-request field="parameters.emailContactMechId" request-name="emailContactMechId"/>
 
+        <if-not-empty field="parameters.emailContactMechId">
+            <call-object-method obj-field="shoppingCart" method-name="addContactMech">
+                <string value="ORDER_EMAIL"/>
+                <field field="parameters.emailContactMechId"/>
+            </call-object-method>
+       </if-not-empty>
         <!-- Set partyId, in shoppingCart -->
         <call-object-method obj-field="shoppingCart" method-name="setUserLogin">
             <field field="userLogin" type="org.ofbiz.entity.GenericValue"/>
@@ -1200,6 +1213,12 @@
             <result-to-field result-name="contactMechId" field="parameters.billToContactMechId"/>
         </call-service>
         <field-to-request field="parameters.billToContactMechId" request-name="billToContactMechId"/>
+        <if-not-empty field="parameters.billToContactMechId">
+            <call-object-method obj-field="shoppingCart" method-name="addContactMech">
+                <string value="BILLING_LOCATION"/>
+                <field field="parameters.billToContactMechId"/>
+            </call-object-method>
+        </if-not-empty>
 
         <!-- Create Update Billing Telecom Number -->
         <call-map-processor xml-resource="component://ecommerce/script/org/ofbiz/ecommerce/customer/CheckoutMapProcs.xml"
@@ -1216,6 +1235,12 @@
             <result-to-field result-name="contactMechId" field="parameters.billToPhoneContactMechId"/>
         </call-service>
         <field-to-request field="parameters.billToPhoneContactMechId" request-name="billToPhoneContactMechId"/>
+        <if-not-empty field="parameters.billToPhoneContactMechId">
+            <call-object-method obj-field="shoppingCart" method-name="addContactMech">
+                <string value="PHONE_BILLING"/>
+                <field field="parameters.billToPhoneContactMechId"/>
+            </call-object-method>
+        </if-not-empty>
 
         <!-- Create Update credit card -->
         <set-service-fields service-name="createUpdateCreditCard" map="parameters" to-map="creditCardContext"/>