Sep 042016
 

Simple PayPal Shopping Cart Customize Checkout Buttons post will show you how to customize the checkout and shopping cart buttons.

Last Updated: November 8, 2018

There are times when you might want to make changes to the shopping cart buttons in the plugin. This might be needed because of your theme design or because you might not like the default images added by WordPress Simple Shopping Cart plugin.

The following instructions will show you how simple it is to make these changes via the plugin settings and using some custom PHP code. For the PHP code, you will be adding a couple of filters to your functions.php file and also uploading a couple of images to your Media library.

What You Need:

  • Some basic PHP knowledge.
  • A child theme. (Optional but recommended)
  • Edit the functions.php file.

Simple PayPal Shopping Cart Customize Checkout Buttons

Step 1 ) The following images shows you a product displayed in a website.

The following image shows the Add to Cart button. The Add to Cart button can be customize in the plugin settings. Check the following URL Shopping Cart General Settings to learn more.

wordpress-shopping-cart-customize-product-add-to-cart-button

Step 1-a ) The following image shows you the default buttons displayed by the shopping cart. You can see the default shopping cart icon basket and the default shopping cart checkout button.

wordpress-shopping-cart-customize-checkout-buttons

Step 2 ) In this example I will be adding the following two images to replace the default button images added by the plugin.

Note: If you want to add a different checkout button, you can check the following URL add-to-cart-button-images-for-shopping-cart. Alternatively you can design your own buttons using paint in Windows or any software that allows you create buttons.

Checkout button

addtocart

Shopping Cart Icon

empty-cart-icon

Step 3 ) The plugin has two filters that allows you to change the images mentioned above. These filters will be added to your themes functions.php file.

Important: It is always best to work with a child theme if you are going to customize your theme. This will prevent you from loosing your customize files when updating your theme.

What you need to do is copy and past the PHP code from the links below to your functions.php file.

Plugin Filters Code

Step 4 ) The following image shows you how to add the filters to your function through your WordPress admin panel.

Important: Make sure you copy and past the code correctly or else you will see an error message displayed when you click on Update File button. In some cases depending on the error the site can crash. 

  • First go to Appearance -> Editor.
  • Second make sure you select your active theme functions.php file.
  • Third copy and past the code mentioned above in the two URLs.
  • Fourth click on Update File button.

Note: In your case this step might be different, depending on your theme.

wordpress-shopping-cart-functions-filters

Step 5 ) The following image shows you the new images added to the shopping cart.

wordpress-shopping-cart-customize-checkout-buttons-changed

As you have notice from the steps above, it is very simple to customize the images. However if you are not comfortable working with PHP and you need more options for your online shop then WordPress eStore (Note: This is an affiliated link. I get a small commission if you purchase this product) is the plugin for you. This plugin has more options for you to customize and add more functionality to your shopping cart and much more. To learn more about eStore, you might like to read the following tutorial WordPress eStore Plugin Settings.

Click on the following link Basic Shortcode Inserter to learn more.

I will be updating this post from time to time. So keep coming back for more.

Enjoy.

WordPress Simple PayPal Shopping Cart List

Manuel Ballesta Ruiz is a web developer, Blogger and WordPress Enthusiast.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

The following GDPR rules must be read and accepted:
This form collects your name, email and content so that we can keep track of the comments placed on the website. For more info check our privacy policy where you will get more info on where, how and why we store your data.