Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Posted

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.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

@@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..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...