Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Descriptions In PayPal Checkout


tinker74

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

Link to comment
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,

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...