View Single Post
  #1  
Old 02-13-2009, 11:50 PM
 
chiactivate chiactivate is offline
 

Senior Member
  
Join Date: Feb 2007
Location: Canada
Posts: 148
 

Default Add Modify Shipping Before Payment Method - Paypal or Credit Card (Paypal Pro)

Recently installed Pay Pal Pro to process credit card payment. Unlike Pay Pal Standard, Pay Pal Pro integrates the payment process into the shopping cart.

No more redirect to the pay pal screen. You just fill in your credit card in the X-cart checkout screens.

But, there was an issue at checkout screen, where you can choose the payment method:

A. Credit card or
B. Paypal.

A. When you choose the credit card option, it will go to the next X-cart screen. You are able to modify the shipping address and name. Everything works fine here!

B. But if you choose the Pay Pal, you are not able to change the shipping address, because it will redirect you immediately to the Pay Pal screen.

What to do you if you still want to change the shipping address, before going to the Pay Pal screen?

Here is the solution :

- Add the modify shipping button at the checkout screen, where you have to choose the payment method ( credit card or Pay Pal)

Go to: /customer/main/checkout.tpl


Quote:
</FORM>

{/capture}
{include file="dialog.tpl" title="`$lng.lbl_checkout`: `$lng.lbl_step` `$checkout_step` `$lng.lbl_of` `$total_checkout_steps`" content=$smarty.capture.checkout_dialog extra="width=100%"}

{include file="buttons/modify.tpl" href="register.php?mode=update&action=cart&payment id=`$smarty.get.paymentid`"}


<P>
{if $smarty.get.mode eq "auth"}
{include file="main/error_login_incorrect.tpl"}

This is the code for "modify shipping" link:

{include file="buttons/modify.tpl" href="register.php?mode=update&action=cart&payment id=`$smarty.get.paymentid`"}


Hope this helps other folks! :P
__________________
www.ChiMassager.com
X-cart Version 4.44

www.SEOMarketing30days.com
--> Download FREE SEO marketing Ebook (valued $50)
Attract more visitors and sales with top 5 most powerful SEO marketing strategies. Converting visitors into buyers, not just traffic!
Reply With Quote