{"id":4026,"date":"2016-05-01T16:33:18","date_gmt":"2016-05-01T06:33:18","guid":{"rendered":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/?p=4026"},"modified":"2016-09-03T16:42:23","modified_gmt":"2016-09-03T06:42:23","slug":"customize-the-paypal-checkout-button-image","status":"publish","type":"post","link":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/customize-the-paypal-checkout-button-image-4026","title":{"rendered":"Customize the PayPal Checkout Button Image in the Shopping Cart"},"content":{"rendered":"<p>The <a href=\"https:\/\/www.tipsandtricks-hq.com\/wordpress-simple-paypal-shopping-cart-plugin-768\">simple shopping cart plugin<\/a> has a filter that you can use to\u00c2\u00a0customize the PayPal checkout button image of the cart and use your own custom image for the button.<\/p>\n<h2>Code Example<\/h2>\n<p>The following code example shows how you can use your own custom PayPal checkout button image.<\/p>\n<p>Upload your custom checkout button image via the media library so you have the URL of the custom image ready.<\/p>\n<p>Add the following code to your theme&#8217;s functions.php file and specify the actual custom image URL of the checkout button that you want to use.<\/p>\n<pre>add_filter('wspsc_cart_checkout_button_image_src', 'override_checkout_button_image');\r\nfunction override_checkout_button_image($checkout_button_img_src)\r\n{\r\n    \/\/Specify the URL of your custom image\r\n    $checkout_button_img_src = 'http:\/\/www.example.com\/uploads\/my-custom-checkout-image.jpg';\r\n    return $checkout_button_img_src;\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The simple shopping cart plugin has a filter that you can use to\u00c2\u00a0customize the PayPal checkout button image of the cart and use your own custom image for the button. Code Example The following code example shows how you can use your own custom PayPal checkout button image. Upload your custom checkout button image via [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[30],"tags":[46,182,24,32],"class_list":{"0":"post-4026","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-wordpress-shopping-cart","7":"tag-button-images","8":"tag-paypal","9":"tag-tweaks","10":"tag-wp-shopping-cart","11":"entry"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/4026"}],"collection":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/comments?post=4026"}],"version-history":[{"count":0,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/4026\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/media?parent=4026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/categories?post=4026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/tags?post=4026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}