Totally Zenned
- Join Date:
- Feb 2007
- Posts:
- 518
- Plugin Contributions:
- 1
paypal express remove address override / confirm address for loggedin users
1.5.0
paypal express override shipping with paypal address for loggedin users, it's annoying
here's the answer if you want to hide the confirm address
change
if ($_SESSION['cart']->get_content_type() == 'virtual' && isset($_SESSION['customer_id']) && $_SESSION['customer_id'] > 0) { $this->zcLog('ec-step1-addr_check', "cart contents is virtual and customer is logged in ... therefore options['NOSHIPPING']=1"); $options['NOSHIPPING'] = 1; } else { $this->zcLog('ec-step1-addr_check', "cart content is not all virtual (or customer is not logged in) ... therefore will be submitting address details"); $options['NOSHIPPING'] = 0;
to
if ($_SESSION['cart']->get_content_type() == 'virtual' && isset($_SESSION['customer_id']) && $_SESSION['customer_id'] > 0) { $this->zcLog('ec-step1-addr_check', "cart contents is virtual and customer is logged in ... therefore options['NOSHIPPING']=1"); $options['NOSHIPPING'] = 1; } else { $this->zcLog('ec-step1-addr_check', "cart content is not all virtual (or customer is not logged in) ... therefore will be submitting address details"); $options['NOSHIPPING'] = 1;
in /includes/modules/payment/paypalwpp.php
does not effect new account address population