The support forum is in archive (read-only) mode and access is limited to members with a purchase history.

For technical support, please visit our support page.

General questions or topics can also be discussed on the ExpressionEngine StackExchange.

   
 
Review order page to submit order form
Posted: 02 May 2011 05:38 PM   [ Ignore ]
Is a Really Great Dancer
RankRank
Total Posts:  58
Joined  2011-04-01

A few problems with my checkout process:

1. I’m trying to get a “review order” page to submit the order form. I have a page with a save_customer_info form, and then a page with a checkout form. On the review order page I have placed the order form inside the customer info tag pair to display all of the info saved on the previous page. However, the fields are not being recognized by PayPal Pro. I will post the code, and maybe someone knows what the problem is.

The form on the page where the customer submits his billing, shipping, and payment information:

{exp:cartthrob:save_customer_info_form return="cart/credit_debit_review" secure_action=“yes”}
   {embed
="cart/gateway_fields"}</br>
   
    <
div id="proceed">
      <
input type="submit" class="submit" value="Review Order Â» " />
    </
div>
    
{/exp:cartthrob:save_customer_info_form} 

The form on the next page, in which the customer should review the order info and click submit:

{exp:cartthrob:customer_info return="cart/order_results"}
                        
             {exp
:cartthrob:checkout_form gateway="paypal_pro" secure_action="yes"}
                        
            
<div id="checkout_form">            
  <
div id="billing">
  <
h2>Billing Information</h2><br />
       
    <
table width="320" border="0" cellspacing="0" cellpadding="0">
         <
tr>
           <
td><label for="first_name" class="text_bold_blue">First Name: </label></td>
           <
td>{first_name} </td>
         </
tr>
         <
tr>
           <
td><label for="last_name" class="text_bold_blue">Last Name: </label></td>
           <
td>{last_name}</td>
         </
tr>
         <
tr>
           <
td><label for="address" class="text_bold_blue">Address: </label></td>
           <
td>{address} </td>
         </
tr>
         <
tr>
           <
td><label for="address2" class="text_bold_blue">Address 2:</label></td>
           <
td>{address2} </td>
         </
tr>
         <
tr>
           <
td><label for="city" class="text_bold_blue">City: </label></td>
           <
td>{city} </td>
         </
tr>
         <
tr>
           <
td><label for="state" class="text_bold_blue">State: </label></td>
           <
td>{state} </td>
         </
tr>
         <
tr>
           <
td><label for="zip" class="text_bold_blue">Zip/Postal Code: </label></td>
           <
td>{zip} </td>
         </
tr>
         <
tr>
           <
td><label for="country_code" class="text_bold_blue">Country:</label>
           </
td>
           <
td>{country_code} </td>
         </
tr>
         <
tr>
           <
td><label for="phone" class="text_bold_blue">Phone: </label></td>
           <
td>{phone} </td>
         </
tr>
         <
tr>
           <
td><label for="email_address" class="text_bold_blue">Email Address: </label></td>
           <
td>{email_address} </td>
         </
tr>
       </
table>
       <
p><a href="/cart/credit_debit">Edit</a></p>
    </
div>
 
 <
div id="shipping">
  <
h2>Shipping Information</h2><br />
  
  <
table width="320" border="0" cellspacing="0" cellpadding="0">
         <
tr>
           <
td> <label for="shipping_first_name" class="text_bold_blue">First Name: </label></td>
           <
td>{shipping_first_name}</td>
         </
tr>
         <
tr>
           <
td><label for="shipping_last_name" class="text_bold_blue">Last Name: </label></td>
           <
td>{shipping_last_name}</td>
         </
tr>
         <
tr>
           <
td><label for="shipping_address" class="text_bold_blue">Address: </label></td>
           <
td>{shipping_address}</td>
         </
tr>
         <
tr>
           <
td><label for="shipping_address2" class="text_bold_blue">Address 2: </label></td>
           <
td>{shipping_address2}</td>
         </
tr>
         <
tr>
           <
td><label for="shipping_city" class="text_bold_blue">City: </label></td>
           <
td>{shipping_city}</td>
         </
tr>
         <
tr>
           <
td><label for="shipping_state" class="text_bold_blue">State: </label></td>
           <
td>{shipping_state}</td>
         </
tr>
         <
tr>
           <
td><label for="shipping_zip" class="text_bold_blue">Zip/Postal Code: </label></td>
           <
td>{shipping_zip}</td>
         </
tr>
         <
tr>
           <
td><label for="shipping_country_code" class="text_bold_blue">Country: </label>
           </
td>
           <
td>{shipping_country_code}</td>
         </
tr>
       </
table>
       
<
p><a href="/cart/credit_debit">Edit</a></p>

    </
div>
    
    </
div>                 
                     
                        <!--
END CHECKOUT FIELDS -->
      
                    
       <
div id="align_left">     
              <
p><a href="/shipping_policies/" target="_blank">Shipping prices &raquo; </a></p></div>
                                   
                          <
div id="align_right">
           <
input type="submit" value="Submit Order" class="submit" />
{/exp:cartthrob:checkout_form} 
  {
/exp:cartthrob:customer_info} 

When I submit the order form, I receive the attached error message.

2. I am also using the same order process to allow the customer to checkout with their PayPal account. Once the customer has filled out their shipping/billing info, and the “review order” page has been submitted, the customer is transferred to the PayPal login/checkout screen. Once there, PayPal displays the tax, shipping, and total amounts. However, as you can see from the image of the cart total, and the PayPal total. The discount (coupon amount) doesn’t appear in PayPal. And, the item description appears as “0”. Is there any way I can fix this?

Thank you!

Profile
 
 
Posted: 02 May 2011 07:46 PM   [ Ignore ]   [ # 1 ]
Absolute Heartthrob!
Avatar
RankRankRankRankRank
Total Posts:  10369
Joined  2008-09-29

1. You’re not actually sending any customer information to PayPal pro

<div id="checkout_form">            
  <
div id="billing">
  <
h2>Billing Information</h2><br />
       
    <
table width="320" border="0" cellspacing="0" cellpadding="0">
         <
tr>
           <
td><label for="first_name" class="text_bold_blue">First Name: </label></td>
           <
td>{first_name} </td

This displays the customer info… but does not include it in what’s being sent. If you want to show all the information without input fields showing… use hidden inputs

<div id="checkout_form">            
  <
div id="billing">
  <
h2>Billing Information</h2><br />
       
    <
table width="320" border="0" cellspacing="0" cellpadding="0">
         <
tr>
           <
td><label for="first_name" class="text_bold_blue">First Name: </label></td>
           <
td>{first_name} </td>
<
input type="hidden" name="first_name" value="{first_name}" /> 

2.

And, the item description appears as “0”. Is there any way I can fix this?

Upgrade. Newer versions have corrected this

The discount (coupon amount) doesn’t appear in PayPal.

Hopefully an upgrade should also correct this. That behavior doesn’t happen in the version we have on our site.

 Signature 
Profile
 
 
Posted: 03 May 2011 09:51 PM   [ Ignore ]   [ # 2 ]
Is a Really Great Dancer
RankRank
Total Posts:  58
Joined  2011-04-01

The hidden inputs are working great!

Now, if I upgrade to the newest version of cartthrob, will I need to redo all of the shipping and tax settings? Do I simply upload the new files and allow them to overwrite the ones on the server?

Thanks!

Profile
 
 
Posted: 03 May 2011 11:40 PM   [ Ignore ]   [ # 3 ]
Absolute Heartthrob!
Avatar
RankRankRankRankRank
Total Posts:  10369
Joined  2008-09-29

Upload the new files, let them overwrite the existing CT files. Generally… that’s all I do… and I do this probably 2 or 3 times a day.

 Signature 
Profile