tinker74 Posted January 3, 2014 Posted January 3, 2014 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 Quote
Jack_mcs Posted January 4, 2014 Posted January 4, 2014 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, Quote 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
tinker74 Posted January 4, 2014 Author Posted January 4, 2014 I updated the addon so make sure you click on history in the addon to get the latest version. There was some unneeded code in there that I took out.. http://addons.oscommerce.com/info/8981 Thanks.... Quote
tinker74 Posted January 4, 2014 Author Posted January 4, 2014 @@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.. Quote
Recommended Posts
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.