WordPress Tutorial: WP e-Commerce v220.127.116.11: Change “P&P” to “S&H” for Shipping & Handling
WP e-Commerce changed where the files to change P&P to S&H are located. The following instructions assume that you have upgraded to this version of WP e-Commerce (v18.104.22.168) and have followed the instructions for upgrading and moving theme folders.
*WARNING: Do NOT copy and paste the below code into your files. Please make the recommended changes in your own files, by hand!
There are 2 files to alter.
File #1: wp-content/uploads/wpsc/themes/default/products_page.php
CHANGE: <span><?php echo wpsc_product_postage_and_packaging(get_option(‘wpsc_hide_decimals’)); ?></span><?php echo __(‘P&P‘, ‘wpsc’); ?>: <br />
TO: <span><?php echo wpsc_product_postage_and_packaging(get_option(‘wpsc_hide_decimals’)); ?></span><?php echo __(‘S&H‘, ‘wpsc’); ?>: <br />
File #2: wp-content/uploads/wpsc/themes/default/single_product.php
CHANGE: <span><?php echo wpsc_product_postage_and_packaging(); ?></span><?php echo __(‘P&P‘, ‘wpsc’); ?>: <br />
TO: <span><?php echo wpsc_product_postage_and_packaging(); ?></span><?php echo __(‘S&H‘, ‘wpsc’); ?>: <br />
This directory does not exist in my WordPress installation. There is nothing inside the themes folder.
@Steven Joiner: Sorry you didn’t have any luck with this. You may have an older version of WP e-Commerce. I only have this info for WP e-Commerce version 22.214.171.124. WP e-Commerce changed where they store all of the shopping cart’s theme files. Theme files are now stored separately from shopping cart files. The new path to theme files is now: wp-content/uploads/wpsc/themes/
@Steven Joiner: Here are instructions for making sure WP e-Commerce is upgraded to the latest version and theme folders are in the correct locations: WP e-Commerce: Staying Current – Upgrading to newest version. Hope this helps.
Worked perfectly. Thanks!
I followed the directions here to the T, and double checked to make sure everything was saved properly…. yet it still says P&P on my site.
Sorry it’s not working out for you, Jared. These instructions are only for WP e-Commerce v126.96.36.199 and involve 2 files in the new wpsc folder location:
– wp-content/uploads/wpsc/themes/default/products_page.php (around line 218)
– wp-content/uploads/wpsc/themes/default/single_product.php (around line 157)
Did you also make all of the changes by hand?
Thanks for the tip, but I’m not finding the files where you say they are. Here’s what I found, but am still not sure which ones to edit (this is for Version 3.7.8):