Post by clinton4 » Sat Jun 12, 2010 9:06 am

Hi,

I want to prepopulat the PayPal checkout page. For this i need to add the variable night_ phone_b in the PayPal form. This is what i have done, but the phone number is still not added to the PayPal form.

In /catalog/controller/payment/pp_standard.php i have added the code:

Code: Select all

$this->data['night_phone_b'] = html_entity_decode($order_info['telephone'], ENT_QUOTES, 'UTF-8');
In /view/theme/default/template/payment/pp_standard.tpl i have added the code:

Code: Select all

<input type="hidden" name="night_phone_b" value="<?php echo $telephone; ?>" />
But the phone number is still not present in the PayPal form created on the Checkout Confirmation page (index.php?route=checkout/guest_step_3).

What i'am i doing wrong?

I have read this post -> http://forum.opencart.com/viewtopic.php ... =60#p65466 but that don't work.

Spam blocking PHP script, use it!


Active Member

Posts

Joined
Sun Jan 17, 2010 11:54 am

Post by Xsecrets » Sat Jun 12, 2010 12:00 pm

well if you set

Code: Select all

$this->data['night_phone_b'] 
then why are you echoing

Code: Select all

<?php echo $telephone; ?>
it should be

Code: Select all

<?php echo $night_phone_b; ?>

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by clinton4 » Sat Jun 12, 2010 8:42 pm

Good point... Must have been sleeping here :)

Spam blocking PHP script, use it!


Active Member

Posts

Joined
Sun Jan 17, 2010 11:54 am
Who is online

Users browsing this forum: No registered users and 4 guests