Tips and Tricks WP eCommerce

eCommerce Solution for WordPress Blog

  • Home
  • eCommerce Plugins
  • WP eStore Documentation
  • WP Shopping Cart Doc

Simple Shopping Cart – Adding Extra PayPal Input Fields

The simple shopping cart plugin has a filter that you can use to add extra input fields that will get sent to PayPal as part of the checkout.

Code Example

The following code example shows how you can append extra fields to the checkout form (add this code to your theme’s functions.php file or a custom plugin).

It will add the language code field to force a specific language on the PayPal checkout page.

add_filter('wspsc_cart_extra_paypal_fields', 'append_extra_fields');
function append_extra_fields($output)
{
    //Add the PayPal language code field
    $output = '<input name="lc" type="hidden" value="US" />';
    return $output;
}

Note: We provide technical support for our premium plugins via our customer only support forum

Your Shopping Cart

Shopping Cart Empty
Shopping Cart is Empty
Visit The Shop

Search

Featured Documents

Stylish Product Display Options for WP eStore WP eStore Quick Setup and Usage Video Tutorial WP eStore Shortcodes and Functions Reference WordPress eStore Plugin Features WordPress eStore Plugin Demo What Our Customers Have to Say About Our Products WordPress eStore WishList (Feature Suggestions) WordPress eStore Frequently Asked Questions (FAQ) How to Show Add to Cart buttons

Featured Plugins

WP Express Checkout Plugin
wordpress_estore_icon
wordpress membership plugin icon
wordpress_affiliate_plugin_icon

Copyright © 2025 | eCommerce Plugins