WordPress Simple PayPal Shopping Cart Customize Checkout Buttons post will show you how to customize the checkout and shopping cart buttons.
Last Updated: October 18, 2017
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. Fort the PHP code, you have to add a couple of filters to your functions.php file and also upload 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.
WordPress Simple PayPal Shopping Cart Customize Checkout Buttons
Step 1 ) The following images shows you a product displayed in your post or page by the plugin using a shortcode. The following image shows the Add to Cart button. The Add to Cart button can be customize in the plugin settings. You might like to check the following URL Shopping Cart General Settings to learn more.
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 image.
Step 2 ) In this example I will be adding the following two images to replace the default 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.
Shopping Cart Icon
Step 3 ) The plugin has two different filters that allows you to change the images mentioned above. These filters need to be added to your functions.php file in your theme.
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 cases depending on the error the site can crash.
- First go to Appearance -> Editor.
- Second make sure you select Theme Functions file.
- Third copy and past the code mentioned above in the two URLs.
- Fourth click on Update File button.
Note: The following image is based on a child theme typical set up. In your case this might be different or your theme might have an area that allows you to add customize functions.
Step 5 ) The following image shows you the new images added to the shopping cart.
As you can see it is very simple to customize the images by following the steps above. However if you are not comfortable working with PHP and prefer to use a plugin then WordPress eStore 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.
WordPress Simple PayPal Shopping Cart List