Using Paypal Shopping Cart code adds extra white space
-
Hi:
I wrote a little script to display about 60 products in one single post and show a Paypal button next to each of the items. Once you click on the button, the product gets added to the Paypal shopping cart and everything works great. However, since I need to add so many items, I am running a loop to display them which means that the code Paypal provides for adding their button/shopping cart onto a website is also run in a loop. That code has a lot of hidden fields and that code is adding tons of white space at the beginning of my post before the list of items displays. I’m not sure how to fix it since the Paypal code needs to stay in the loop to pick up correct id, price values for each item. I looked for a simple shopping cart plugin for WP but didn’t find one. Most provide way more than I need. Here’s a link to the code that Paypal makes you add to your site to use their cart.
https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_cart_techview_outside
If anyone knows of a really simple cart using Paypal that will integrate with WP and allow for automatic product entry into the backend database, that will be awesome.
Thanks a lot for your time.
- The topic ‘Using Paypal Shopping Cart code adds extra white space’ is closed to new replies.