=== WP e-Commerce - Wholesale Pricing ===
Contributors: Visser Labs
Tags: e-commerce, shop, cart, ecommerce, wholesale pricing
Requires at least: 2.9.2
Tested up to: 4.7.5
Stable tag: 1.8
== Description ==
Add wholesale pricing controls to your WP e-Commerce store.
For more information visit: http://www.visser.com.au/wp-ecommerce/
== Installation ==
1. Upload the folder 'wp-e-commerce-wholesale-pricing' to the '/wp-content/plugins/' directory
2. Activate the plugin through the 'Plugins' menu in WordPress
== Usage ==
Wholesale Pricing for WP e-Commerce integrates with custom User Roles in WordPress, what this means is you can create custom User Roles with specific access outside the traditional WordPress User Roles (e.g. Subscriber, Author, Moderator, etc.).
I've had alot of success integrating custom User Role pricing within WP e-Commerce using the User Role Editor Plugin (http://wordpress.org/extend/plugins/user-role-editor/) from shinephp, available for download from WordPress.org. Hope this helps!
To configure default pricing rules:
==== In WP e-Commerce 3.7 ====
1. Open Store > Wholesale Pricing
==== In WP e-Commerce 3.8 ====
1. Open Settings > Wholesale Pricing
====
2. Set default pricing levels for Products which do not have their own per-Product pricing rules. If you do want to add default pricing levels leave this as default.
==== In WP e-Commerce 3.7 ====
3. Open Store > Products
==== In WP e-Commerce 3.7 ====
3. Open Products > Add/Edit Products
====
4. Open an individual Product and under the Wholesale Pricing widget select the individual Product's pricing levels. Do note that the fixed price rule will always override the %/$-based pricing rules so set one of the other, not both.
5. Click Update to save changes
6. Have fun!
== Sidenotes ==
==== Product visibility base on User Role ====
To add the show/hide Product visibility based on User Role you can use the built-in filtering we employ on the Products Page and Single Product screen, if you require further customisation of element visibility see the following.
1. Open your root web directory with your favourite file explorer or FTP manager (e.g. FileZilla)
====== In WP e-Commerce 3.7 ======
Depending on whether you are using the default WP e-Commerce template files (e.g. /wp-content/plugins/wp-e-commerce/themes/%current_theme%/...) or have copied them to the 'safe' WP e-Commerce directory within Uploads (e.g. /wp-content/uploads/themes/%current_theme%/...) do as follow.
2. Open 'products_page.php' and paste '<?php if( wpsc_wp_is_product_visible() ) : ?>' on line #82
3. Open 'single_product.php' and paste '<?php if( wpsc_wp_is_product_visible() ) : ?>' on line #26
====== In WP e-Commerce 3.8 ======
Depending on whether you are using the default WP e-Commerce template files (e.g. /wp-content/plugins/wp-e-commerce/wpsc-theme/...) or have copied them to your current WordPres Theme directory (e.g. /wp-content/themes/%current_theme%/...) do as follow.
2. Open 'wpsc-products_page.php'
2.1 Copy the following snippet and paste it below "<?php while (wpsc_have_products()) : wpsc_the_product(); ?>" on line #66
<?php if( wpsc_wp_is_product_visible() ) : ?>
2.2 Paste the following snippet and paste it above "<?php endwhile; ?>" on line #227
<?php endif; ?>
3. Open 'wpsc-single_product.php'
3.1 Copy the following snippet and paste it below "<?php while (wpsc_have_products()) : wpsc_the_product(); ?>" on line #30
<?php if( wpsc_wp_is_product_visible() ) : ?>
3.2 Copy the following snippet on paste it above "<?php endwhile; ?>" on line #214
<?php endif; ?>
======
4. Save changes and upload modified files
==== Original Price ====
Display the original Price before markup/markdown within your store with the following template tag (e.g. Original Price: $20.00).
Drop the following template tag into your Products Page and/or Single Product template, then save changes and upload modified files.
Original Price: <?php echo wpsc_wp_original_price(); ?>
==== You Save ====
Display the saving between standard Product price and the current User Role's markup/markdown (e.g. You Save: $5.00 (25.00%))
Drop the following template tag into your Products Page and/or Single Product template, then save changes and upload modified files.
You Save: <?php wpsc_wp_you_save( array( 'type' => 'amount' ) ); ?> (<?php wpsc_wp_you_save(); ?>)
=== User Role Price ===
Display the Price for a given User Role using the following template tag (e.g. Member's Price: $5.95).
Drop the following template tag into your Products Page and/or Single Product template, then save changes and upload modified files.
Member's Price: <?php wpsc_wp_role_price( 'subscriber' ); ?>
Replace 'subscriber' with the User Role 'slug', here's the default User Role slugs in WordPress.
- administrator
- editor
- author
- contributor
- subscriber
- guest
== Support ==
If you have any problems, questions or suggestions please join the members discussion on my WP e-Commerce dedicated forum.
http://www.visser.com.au/wp-ecommerce/forums/
== Disclaimer ==
This Plugin does not claim to be a PCI-compliant solution. It is not responsible for any harm or wrong doing this Plugin may cause. Users are fully responsible for their own use. This Plugin is to be used WITHOUT warranty.