Jump to content
tinker74

Product Descriptions In PayPal Checkout

Recommended Posts

I posted this in another part of the forum but thought i would be better here.

 

Here is an updated addon to make the product descriptions show up instead of your shop name on the paypal checkout page using Paypal Standard...This is specifically for PayPal Standard...not PayPal Express.....

 

http://addons.oscommerce.com/info/8981

 

Thanks...Steven

Share this post


Link to post
Share on other sites

For what it's worth, I suggest doing it this way to prevent bloating the confirmation page. In the paypal_standard.php file, replace

  global $customer_id, $order, $sendto, $currency, $cart_PayPal_Standard_ID, $shipping;
  $process_button_string = '';
  $parameters = array('cmd' => '_xclick',
					  'item_name' => STORE_NAME,

withthis

  global $customer_id, $order, $sendto, $currency, $cart_PayPal_Standard_ID, $shipping;
  $desc = '';
  foreach ($order->products as $product) {
	  $desc .= $product['qty'] . ' x ' . $product['name'];
	  if (is_array($product['attributes'])) {
		  foreach ($product['attributes'] as $attr) {
			  $desc .= ' ( ' . $attr['option'] . ':' . $attr['value'] . ' ) ';
		  }
	  }
	  $desc .= ' | ';
  }
  $desc = substr($desc, 0, -2);

  $process_button_string = '';
  $parameters = array('cmd' => '_xclick',
					  'item_name' => $desc,

Share this post


Link to post
Share on other sites

@@Jack_mcs

 

Thats a good idea.....if someone does not want to do that....this checkout_confirmation.php only has 5 additional lines from the original 2.3.3.4 version...i would not necessarily say bloated..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×