WordPress Shopping Cart – Additional Resources

Categories: Additional Guidance

WP Shopping Cart CSS

The following CSS classes have been included in the plugin. You will just have to update the CSS in the style sheet file (wp_shopping_cart_style.css) of the wordpress paypal shopping cart plugin if you want to customize the look and feel of the shopping cart.

  • shopping_cart
  • wp_cart_button.
  • wp_cart_checkout_button

Where is the Settings Menu for the Shopping Cart?

The settings menu for the Shopping cart is located under the WordPress Settings menu…. please see the screenshot (click to enlarge).

paypal-shopping-cart-setting-menu

How to Make the Shopping Cart Show the “Empty Cart” Message on a Post or Page

Search for the following line in the “wp_shopping_cart.php” file:

if (cart_not_empty())

Delete that line once you find it and that should do it.

How to Show the Shopping Cart Widget Only When There are Items in the Cart

Search for the following function in the wp_shopping_cart.php file:

show_wp_paypal_shopping_cart_widget

Once you find it just add the following piece of code at the start of the function and that should do the job

if (!cart_not_empty())
{
return;
}

How to Resize the Add to Cart Buttons

Add the following to the CSS file of this pluign (wp_shopping_cart_style.css)

.wp_cart_button{
height: 20px;
width: 76px;
}

You will have to adjust the size to your needs.

How to Collect Special Instructions from the Customer

If you need to collect special instructions from the customer for some customized work on the item you are selling then you can instruct your buyer to put it in the “Special instructions to merchant” box on PayPal during checkout. Please note that this option is shown on the “Review your payment” screen (after you log in to put the credit card details)

paypal-special-instruction

Collecting Special Instruction from the Buyer

Review Payment

Review Payment Screen

Return to the WP Shopping Cart plugin page.

Related posts

Subscribe to Tips and Tricks HQ to stay informed

twitter_icon

80 Responses to “WordPress Shopping Cart – Additional Resources”

  1. Heather Says:

    I have just recently downloaded the simple paypal shopping cart plugin. I am very new to trying to design myself a website. I think this plugin would be great for my home business; if I can figure out a few things…
    1) I have to charge tax on my items for people that live in my state (FL) and tax can vary from county to county. Is there a way to set up a tax table using this plugin?
    2) I tried using the variation control for prices. Say I charge $16 for a lunch box and depending on whether they want an initial or a full name on the lunch box, the price increases from $2 to $8. I tried adding this information in the nextgen gallery in the description box this:

    [wp_cart:Check It Out Lunch Box:price:16:var1[Additional Options|Single Initial:2|Single Name:5|3 Initials:5|Mongram:5|Full Name:8]:end]

    but it didn’t change the price of the shopping cart.

    3) Say someone wants to add their name to an item, is there a way to make an input field for them to add this information?

    I apologize if these questions have been asked elsewhere. I have tried looking but didn’t see anything regarding these questions. I appreciate your help very much.

  2. admin Says:

    Hi Heather, 1) Charging Regional or International sales tax is pretty easy… the following link should help:

    http://www.tipsandtricks-hq.com/ecommerce/?p=191

    2) The simple shopping cart doesn’t have the variation control with different price options (WP eStore has that)

    3) Yes, it is possible to add an input field to get additional info from user.

  3. Shelly Anderson Says:

    Can you put product and Buy Botton in sidebar widgets?

  4. admin Says:

    @Shelly, Yes you can.. use the following PHP function:

    <?php echo print_wp_cart_button_for_product(’Demo Product’, 10.95); ?>

  5. Henk Says:

    Hi there,

    First: Awesome plugin! Works like a charm, kuddos to that.

    I am still wrestling with one thing:
    All the items I used for the webshop are unique, therefor there is only one item available. (e.g. there is 1 necklase with color blue, one with color yellow etc etc)

    Can this be altered in the plugin say: inventory = 1. (this way customers cannot order 2 of the same kind, as there simply is only one.

    Any tips tricks or hints are very welcome.

    Thanks in advance

  6. admin Says:

    Hi Henk, Glad to hear that you like the shopping cart plugin. Unfortunately the simple shopping cart doesn’t use a database so it doesn’t have the inventory control capability as it can’t keep track of how many items have been purchased. The WP eStore have this capability.

  7. Shelly Anderson Says:

    August 24th, 2009 at 3:32 pm
    I sent my html for my products page. I have changed it a bit. This is the new html. Please tell me why I can not add more than 1 item to my cart.

    Youngblood by Suse Wristband
    [caption id="attachment_77" align="aligncenter" width="300" caption="FRONT OF WRISTBAND"][/caption]

    [caption id="attachment_104" align="aligncenter" width="300" caption="BACK OF WRISTBAND"][/caption]
    Cost: $5.00 / Shipping: $2.95
    Total Cost w/Shipping: $7.95
    Click on [Add To Cart] To Purchase
    [wp_cart:Youngblood Wristband:price:5.00:end]
    Youngblood by Suse Key Chain

    [caption id="attachment_109" align="aligncenter" width="300" caption="FRONT SIDE OF KEY CHAIN"][/caption] [caption id="attachment_110" align="aligncenter" width="300" caption="BACKSIDE OF KEY CHAIN"][/caption]
    Cost: $5.00 / Shipping: $2.95
    Total Cost w/Shipping: $7.95
    Click on [Add To Cart] To Purchase

    [wp_cart:Youngblood Key Chain:price:5.00:end]

  8. admin Says:

    Hi Shelly, this doesn’t look like a HTML issue. Did you try changing your wordpress theme to the default one to see if it’s a theme issue? (Not all wordpess themes are coded properly).

    The other reason is your PHP session not working correctly.. can you verify this with your hosting provider?

  9. Shelly Anderson Says:

    You were right about the Host being the issue. the the save path as not setup and php.ini.

    Thank you so much – you have been soooo helpful.

  10. Henk Says:

    Thanks for the reply.

    I got that plugin, and works as intended. Thanks for the heads up!

  11. Brandon Says:

    Hey guys I’m having an issue with the shopping cart, everything else is working fine, but the delete items button does not work. How do i fix this?

    http://www.santasprayer.org

    You’ll notice that if you click add to cart twice it adds two items, but if you only want one item you are unable to remove the other.

    Please help!

    Thanks!

  12. admin Says:

    @Brandon, looks like you have a special character (‘) in the Product name. Try to use a name without that and see if it makes any difference.

  13. victoria Says:

    I apologize if these questions are common sense- i’ve been reading online text for so long i might be overlooking something obvious.

    First, when I insert [wp_cart:PRODUCT-NAME:price:PRODUCT-PRICE:end]
    into my text and change the name and price the only thing that appears is an “add to cart” button. But, there is no product name or price displayed. Is there any way to change this so that product name and price are included as well.

    Also, do I have to have my items all uploaded complete with shopping cart installed in order for the shopping cart to be visible? (versus what I see now when i click on “shopping cart”- [eshop_show_cart]).

    Thanks in advance!

  14. admin Says:

    Hi Victoria, the trigger text for the “Add to cart” button only gives you the button. This is show you can design the way you want to display the product listing.

    you don’t have to upload all items for the shopping cart to be viewable.

  15. angus Says:

    hi.. im trying to use this *and* the amended version for pagseguro at the same time. i.e….. to give people a choice which one they want.

    i cant because it seems the two plugins use similar variables. do you know of a workaround?????

    cheers

    angus

  16. admin Says:

    Hi Angus, If you can give me the version you are working on then I can have a look and see what the issue is and suggest ways to resolve it.

  17. chris Says:

    Hey, I’m using the plugin for a simple shopping cart but when the “Checkout” button redirects to PayPal it requires the user to login or create a PayPal account. When you just create a simple PayPal button (via the PayPal website) it takes you to a page where you can simply pay via credit card and don’t have to have a PayPal account. Is there any way to configure the shopping cart plugin to do this? If so it’ll be ideal for my needs and I’ll definitely drop you a donation. Thanks!

  18. admin Says:

    Hi Chris, you don’t have to configure the shopping cart for this option. PayPal will give your customers the option to pay by credit card if they don’t have a PayPal account. When your customers go to the checkout page on PayPal they will see a line similar to the following that they can click on and use the credit card to pay:

    “Use your credit card or bank account (where available).”

    PayPal normally figures out if you have a PayPal account or not from the cookies they leave on your computer. Try deleting all the cookies and hit the checkout button to go to PayPal and it will present you with the option to pay by credit card upfront.

  19. Dan Says:

    Hi – I’m looking at using the WP Shopping Cart plugin for the registration page of an up-coming conference at my church. It looks pretty ideal for my needs except I’m trying to find a way to add a field for the user to assign a person’s name to each item they add to the cart (name of person registering for the conference). I did have a separate form where they’d enter this info for before they were forwarded to the payment/cart page, but this just seems like it would make it difficult to match up names with payments etc. Suggestions?

    Hope that makes sense. Thanks so much!!

  20. admin Says:

    @Dan, Not sure if this will help but you can take a look at the following URL:

    http://www.tipsandtricks-hq.com/ecommerce/?p=175

    On the demo page I have a product called “Demo Engraving” that takes a customer input. you could do something similar to that for the “Name of person” using javascript.

  21. chris Says:

    That worked on the Paypal cookie, appreciate the info. It seems like I’ve seen other times when I’ve gotten that page in any case when I’ve set up a button via the Paypal website however, interesting. You can see the plugin in action at http://fusionbeans.com/

    Thanks for the help!

  22. Roman Says:

    Hi, I have a problem here – the Shopping Cart is keeping only one item at a time – can’t add multiple items. what can be done ? thanks in advance.

  23. John Morris Says:

    Hey! Thanks for the plugin… exactly what I needed!

    One question… how would I go about getting the item number of a product to pass through the form to PayPal. I used WP custom fields and use php to dynamically create the “add to cart” button… each product in my inventory has a unique item number. I’ve noticed in the plugin file that this is supported in the shopping cart page… but, can’t seem to get the item number to pass from the add to cart button to the checkout page using the provided template tag. I dig some digging and didn’t find anything. I’ll keep looking, but wondering if you might be able to point me to the right place.

  24. admin Says:

    Hi John, I kinda didn’t finish the item number part since the simple shopping cart doesn’t utilize the item number (the WP eStore utilize this correctly). But some architecture is there already… Look for the following line in the shopping cart file:

    <input type=’hidden’ name=’item_number’ value=’”.$item['item_number'].”‘ />

    you will have to get the item number and put it in the array and then it will be passed on to PayPal.

  25. Luke Says:

    Is there a way to set up the “var:” so that they can adjust the price ? I have 1 item in several colors, but each color has a unique price. I am looking to provide a drop down for ex.

    Red at $12.00
    Blue at $13.00
    Green at $15.00 and have those prices reflected in the shopping cart.

  26. admin Says:

    Hi Luke, nope.. at the moment only the WP eStore can do that.

  27. matt Says:

    how do it to redirect to my carts URL after i’ve added something?

    right now it just refreshes the page … i want it to go directly to view cart after they add something.

  28. admin Says:

    Hi matt, The simple shopping cart doesn’t this functionality.. you can add this manually by modifying the code though.

  29. Adam Says:

    Firstly .. Great plugin

    Secondly, is there any way to add a Empty Cart button i.e. when clicked it will clear the contents of the cart?

    Thanks in advance,
    Adam

  30. Pete Says:

    Reagrding what Matt states above about redirecting the page to the cart after an item is added. Does the full WP eStore plugin provide this functionality?

    Thanks!

    Pete

  31. Pete Says:

    Also, can each variation on the full WP eStore plugin point to its own downloadable file?

    Thanks again!

    Pete

  32. admin Says:

    @Adam, yes definitely.. I will add it

  33. admin Says:

    @Pete, the answer is yes for both of your questions. Visit the following link and add a product to your cart and you will see how it automatically redirects to the checkout page:

    http://www.tipsandtricks-hq.com/products

  34. Mike Mahoney Says:

    Thanks for working on this great plugin.

    But… having problems. I have the shopping page built with NextGen gallery, and the button is there and all that seems fine. The shopping cart page, however, does nothing. The plugin is installed and active, and I have the ” ” code on the HTML tab of the Shopping Cart page. But the page is blank. When I add an item to the cart, then go the cart page, the page shows up as blank.

    I removed the line to hide the empty cart, but I still get nothing. I am using a hosted account with WP 2.8.4. The URL of the product page (just one test product for now) is http://gospellightcommunitychurch.com/glcc/?page_id=382

  35. admin Says:

    @Mike, You seem to have made a mistake when entering the trigger text for the shopping cart on your checkout page. Please note that there are two dashes (not one) at the start and end of the tag.

  36. Mike Mahoney Says:

    That’d be it, thanks. Odd, I copy/pasted the trigger text off the plugin settings. For some reason IE8 truncated the two short dashes into one long dash. You might want to note that in the instructions somewhere, to type it and not c/p it.

    Thanks so much for a great plugin and the quick response.

  37. jane Says:

    wonderful plug in! Just wondering how to get the paypal button to show up–I only get a line of text that says “make payments with paypal-it’s fast, easy, secure.” It works as a link, but I’d much rather have the button. Thanks!

  38. admin Says:

    Hi Jane, the paypal button should show up automatically… just make sure that you didn’t miss to upload the following image in the “images” directory of the plugin:

    “paypal_checkout.png”

  39. Laura Says:

    I have the same problem as Jane – the image doesn’t display but the image you referenced definitely uploaded.

  40. Golda Says:

    Hi there! Just wondering if there’s a way to add coupon code functionality. Thanks!

  41. admin Says:

    At the moment only the WP eStore (http://www.tipsandtricks-hq.com/?p=1059) has the coupon code functionality.

  42. Nils Says:

    Hi, great plugin. I am going to sell prints of my photos, and want my customers to choose between diffent print sizes.

    Is this possible in any way?

    Thanks again for the great plugin.

  43. Ivy Says:

    Hi Nils, You can use variation control. The following post will explain this more:
    http://www.tipsandtricks-hq.com/ecommerce/how-to-use-variation-control-in-wordpress-estore-plugin-345

    Ivy

  44. Chris Melton Says:

    I’ve been using this plugin as well as your affiliate plugin for several months and really like both. One question – is it possible to offer a discount / coupon code?

    thanks,

  45. Ivy Says:

    Hi Chris, You can find out more about coupons and discount code here: http://www.tipsandtricks-hq.com/ecommerce/how-to-use-coupons-discounts-in-wp-estore-364

    Ivy

  46. Chris Melton Says:

    Ivy,

    Thanks for your quick reply. I can’t find this menu with the Simple Paypal Plugin. Am I missing something?

  47. Ivy Says:

    Hi Chris, Sorry about that the information above is for the eStore. We have two shopping carts. The free Shopping Cart does not have a Coupon/Discount feature.

    Ivy

  48. Heartland Says:

    First off, I must say that I am truly grateful for this plugin. It makes setting everything up so simple.

    I do want to ask if there is a way to put just the shopping cart total on a sidebar or widget?

    I have a lot of items and the shopping cart can be quite long on the sidebar. So I am setting up a page for the full shopping cart, but would still like to show the total of the shopping cart, along with the paypal button in the sidebar widget.

    So is there something I can add to the code for the cart to make just the total show with the paypal button?

    Thank you!

  49. admin Says:

    You should be able to modify the code to do this.. the following link will help:

    http://www.tipsandtricks-hq.com/forum/topic/display-the-shopping-cart-total-only

  50. Jason Says:

    Hi There,

    I’m using WP Mage with wordpress and created my first products website. However, after installing the simple WP shopping cart, everything appeared fine until I tested it?
    After I clicked on the PayPal button to make a payment, I received the following error message:
    “The seller accepts encrypted website payments only. You cannot pay the seller through un-encrypted buttons. Please contact your seller for more details.”

    Could you please help and advise what I need to do to rectify the issue?

    Many Thanks

    Jason

  51. Ivy Says:

    Hi Jason, In your Paypal setting you have it set to accepts encrypted website payments only so anyone (which is about 90% of Paypal’s users) that is not using an encrypted website to make a payment can not buy items from you. If you turn this setting off it should fix everything.

    Cheers,
    Ivy

  52. Jason Says:

    Hi Ivy,

    I’ve amended my Paypal account details as you advised and now the payment routine is working fine.

    MANY THANKS for your help and guidance!

    Kind Regards

    Jason

  53. Ivy Says:

    Hi Jason, I am glad you got this fixed. Let me know if you need anything else.

    Cheers,
    Ivy

  54. Lillie Says:

    Hi, this is just what I have been looking for. I installed and activated the plugin but when I click the Add to Cart button, nothing happens. It only refreshes the page. I’ve added the shopping cart page but nothing shows up there. Any help is appreciated!

  55. Ivy Says:

    Hi Lillie, Have you put either one of the following shortcodes in HTML on the page?
    < !–show-wp-shopping-cart–>

    Try this and it should show the cart. If it does not please let me know.

    Cheers,
    Ivy

  56. Lillie Says:

    Ivy, thanks for the quick response. I put [wp_cart:Wine and Chocolate Tasting:price:26.00:end] on the post with the event information and
    on a separate shopping cart page but
    still nothing happens :-(

  57. Ivy Says:

    Hi Lillie, You will also need to show the cart on the page or the checkout page you are redirecting your customers to.

    You can use the shortcode:
    [show_wp_shopping_cart]

    Or you can use the HTML shortcode:

    Right now what is happening is the item is being added to the cart and refreshing the page. But you are not seeing anything as you have not told the plugin to show the cart.

    If you have problems doing this please let me know.

    Cheers,
    Ivy

  58. Joni Klipp Says:

    Thanks a lot for this blog post, i was looking for such thing and found so many blogs but this post of yours is really different and very much helpful. Expect similar thread of yours in future, Bookmarking this blog now for my own site on discount shopping.

  59. Kyle Patridge Says:

    Thanks, you guys explained everthing I needed to know and very quicly 10 out of 10!

  60. Lorenzo Zulfer Says:

    Hello I just wanted to post that I been following your blog for 3 days now and I wanted to state I’m beginning to favor your post. Anyways please keep up the good work. Thanks for the quality information you present here We Enjoy it!

  61. Jason H Says:

    I had an item for sale with the WP shopping cart and the product description had the word: Don’t

    The product description had the apostrophe in the word (don’t) and when I added that particular item to my shopping cart I was then unable to delete the item by pressing the red circle button with the x in it. Removing the apostrophe from the product description solved the problem.

    Just an FYI.

  62. Don M Says:

    Many thanks for the free WP Simple PayPal Shopping Cart Plugin! It is ideal for our Community Supported Agriculture group’s initial needs.

    It was easy to install and implement. Your documentation and support are superb. It has given us no problems or issues. I wish all the plugins I use on various sites were as easy, reliable, and trouble-free as your free WP Simple PayPal Shopping Cart Plugin.

  63. Donna M Says:

    First… thanks for a GREAT Plugin!

    Second, I have set up a shopping cart page, and would like the ‘your cart is empty’ prompt to be visible if the customer’s cart is empty. My understanding after reading the information provided above was to delete the

    if (cart_not_empty())

    line in the “wp_shopping_cart.php” file. After deleting this line, I still do not get the “your cart is empty’ prompt. Did I misinterpret the instructions?

    Thanks very much.

  64. admin Says:

    You just need to use the following shortcode to display the shopping cart even if it’s empty:

    [always_show_wp_shopping_cart]

    No need to modify any code. make sure you have some text in the “Empty Cart Text” settings menu.

  65. David Says:

    I need to use my own buttons instead of the “add to cart” button How can I achieve this? My buttons have “Buy DVD, CD, MP3″ respectively.

    Thanks in advance

    David

  66. Ivy Says:

    Hi David, In the main settings of the Simple Shopping Cart you can set the button image “Add to Cart button text or Image”. This will make all the add to cart buttons the image you specify.

    If you want to do this per product you will need to use the eStore as this feature is only available in the eStore plugin.

    If you have anymore questions please let me know.

    Cheers,
    Ivy

  67. Hayley Says:

    Hello there

    Is WP eStore an upgrade or will we need to start everything again to use this.

    The functionality we need is for people to be able to search through products in categories and also to be able to add variations for different sizes = different prices. can we get that using this??

    Many thanks

  68. Ivy Says:

    The WP eStore works a little differently then the Simple Shopping Cart. You would need to set the products up again and you would also need to use different shortcodes. You can watch the setup and usage video here to see how the eStore works:
    http://www.tipsandtricks-hq.com/ecommerce/wp-estore-quick-setup-and-usage-video-tutorial-593

    If you have the products in a CSV you can use the following plugin to bulk upload the products:
    http://www.tipsandtricks-hq.com/wp-csv-to-database-plugin-import-excel-file-content-into-wordpress-database-2116

    Cheers,
    Ivy

  69. Jacob Eads Says:

    Hello I also have put this on my site and I’d like to know how do I make a grid style of shop? any help would be great

  70. Ivy Says:

    Hi Jacob, I believe what you are looking for is the Simple Shopping Cart and NextGen integration. You can read more about how to do this here: http://www.wordpress-ecommerce.com/wordpress-shop-using-nextgen-gallery-and-wp-shopping-cart-7

  71. Nile Says:

    Hello, I’m using the shopping cart and next gen integrated together on my wordpress website but the theme I’m using does not have a sidebar. I was wondering if there is a code I can put in with the php files to add a little bar anywhere on my page that will tell people how many items are in their cart. Ex- “There are 4 items in your bag (and a link to check out)” or “Your cart is empty (link to shop)” Thank you so much for any replies to my question! :]

  72. admin Says:

    @Nile, if your theme does not have a sidebar then this won’t be possible.

  73. Brad Dalton Says:

    I thought i could just paste the URL in the settings if i wanted another “add to cart” image rather than the default. Is this correct? If so , what URL do i need to paste before i add my local site URL?

  74. Ivy Says:

    Hi Brad, All you need to do is paste the “Image URL” in the “Add to Cart button text or Image” field of the settings menu.

    Ivy

  75. reg Says:

    Hi,
    I am selling different books in my blog and would like to enable the customer to Immediately download the product that he just purchased.
    How can i redirect him to the proper download page (different downloading page for every book) after completing the purchase process?

    If this is impossible, can you suggest a different way of doing this?
    What is the way to do it if someone purchases a few books together?

    Thanks,
    Reg

  76. Ivy Says:

    You would need to use the eStore as this would send an email with the encrypted download links for each eBook. You can also have all the links displayed on one Thank you page. If you want to use different thank you pages or post payment landing pages for each product you can do this with the eStore and “Buy Now” buttons.

  77. Lasik Says:

    Hello, your blog is on air in the radio! Amazing job buddy. Your discussions are genuinely very good and saved in bookmarks. Regards

  78. Elizabeth Campbell Duke Says:

    Hello! This is a great plugin for WordPress. I’m having difficulty with one “small” detail – although it may be some sort of artifact of running the Thesis theme on WordPress and not with your plugin.

    On my products page, the paypal buttons display incorrectly. They are all weirdly large and pixelated. Even when I use text only for the “add to cart” button, it extends across half of my page screen. This was “fixed” to some degree by changing my page layout to include the sidebar, thus narrowing the page.

    I tried using the instructions for changing the button size, to no good effect.

    Have you encountered this issue before? Help!

    Beth.

  79. Ivy Says:

    Hi Elizabeth, The following forum post should help you with this issue;

    http://www.tipsandtricks-hq.com/forum/topic/images-appear-too-bigsmallstretched-on-thesis-theme

Who is Linking?

  1. WordPress Simple Paypal Shopping Cart Plugin | Tips and Tricks

Leave a Reply

Featured Posts

Tips and Tricks Hot Items

wordpress_estore_icon
wordpress membership plugin icon
WordPress PDF Stamper Plugin
WordPress Affiliate Link Manager Plugin
infinity remix wordpress theme
wordpress_affiliate_plugin_icon