=== 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.
Michael, you made the following comment to a forum post regarding the plugin “Custom User Roles” as it relates to your Wholesale Pricing plugin (in quotes):
“Hi Charane, you can do that with Custom User Roles – it’s a free Plugin for WordPress – and is covered in detail in my instructions for Wholesale Pricing. I wouldn’t recommend the Members Plugin from GetShopped.org for your needs as you are not offering subscription-based memberships.”
The problem is, I can’t find this plugin on wordpress.org or anywhere else. What’s worse, your comment indicated that the custom roles plugin is covered in detail in your instructions for Wholesale Pricing but those “instructions” are nowhere to be found on your site or within the plugin zip file. Please provide the instruction or detail so that I can get the plugin. I’ve already purchased your Wholesale Pricing plugin and want to use it in tandem with the Custom User Roles plugin. Thanks.
Hi jimario, you’re right… the Custom User Roles Plugin seems to have disappeared, let me do some digging and see if I can’t either find a URL with instructions or contact the original developer and host it here. 🙂
Thanks Michael. I found some instruction pages from wordpress.org on how to create unique roles. I just hope your wholesale plugin plays nice with my hacks if the Custom User Roles plugin can’t be found.
Hi Michael, I am very interested in this plugin, however my client is using wp-ecommerce with the Tikipress plugin and wishes to offer a wholesale price for members, but for tickets only. Is it possible to configure the wholesale price to be applied to only certain products or a product category?
Hi Carlos, my Wholesale Pricing currently supports per-User Role pricing levels, in the next Plugin update I’m pushing for per-Product pricing support across User Levels which will enable your client to do just that. Getting it all to play nice with 3.7 as well as 3.8 is the mission as I’d prefer to support both than force 3.8 support.
Hi Michael,
Any ideas on when the updates for “per-Product pricing support across User Levels” might be ready?
Right now it seems that you can only add $ or a % to the all products not to individual products. Is that correct?
Good option if you want to give say all staff 25% off all products but not great if you want to mark down certain items and not others, or mark some item down at different prices/percentages than others.
Hi Cathy, you’re right, aiming for release next week! 😀 Fingers crossed might see WP e-Commerce 3.8 go RC then too.
Wow awesome! Perfect timing on both!
Michael,
Can the Wholesale Plugin display different product sets based on user role? For example, I’d like to allow guest (retail) customers to view and order single items but wholesale customers should to view and order items only by the case. I think this would allow easy shipping calculations as well.
Thanks!
Phil
Hi Phil, Wholesale Pricing currently only adjusts the Product prices, it does not allow for display/hiding of Product sets/Categories. That said, I’d be happy to look at adding support for this in a future Plugin update or as a separate Plugin altogether! 😀
This is exactly the solution I need as well. Just showing some support.
Michael,
Thank you for the reply. My customer is an online retail store that sells boxes of dog and cat treats. In addition to retail customer sales they would like to allow the boutiques that (re-sell) their products to be able to refill their orders as well. In an ideal situation retail customers would only see single items for sale and wholesalers would only see cases of the same.
The only problem is we’re currently only using flat-rate shipping since the USPS shipping module can’t return a proper shipping rate. That means I’d have to rework my shipping module for wholesale pricing and shipping of cases as well.
If I can’t use the wholesale plugin I guess I’m looking at two implementations of WP and WP E-Commerce, right?
Thanks again,
Phil
Thanks for the reply, but I don’t fully understand your response.
Do I also have to install a roles plugin? and your plugin?
I’m trying to find out, how I can create a different role for customer vs member? Does your plugin handle this function. I can have separate links for customer and visitors, since the pricing will be the same. But I’m still confused on pricing for Members, which will be wholesale. Will I create two separate product pages? I’m not understanding the logistics with wp ecommerce plugin?
Thanks again for any help and when do you anticipate the updated 3.8 beta to be ready?
Hi eric, the Plugin for WP e-Commerce 3.8 will include per-product pricing functionality against Roles as well as standard pricing markup levels by dollar or percentage. I’ll release a public beta to Wholesale Pricing customers and we can work together to mold future features 🙂
I’ve been trying to find out about an option that i need.
I noticed a previous response was that a guest could see regular pricing and members will see wholesale or discounted pricing?
Can this be setup for Customer price(retail price), which is also guest price and Member Price(wholesale price)? Can both login?
I am using wp ecommerce, which so far, I haven’t figured out how to create a shop thats retail and a shop that is wholesale…
If you can let me know if your plugin can work with what I need that would be appreciated…
Hello,
This looks like it will meet my needs, I currently have a retail site, but I want to make it a wholesale only site. Can I hide all prices from guests? So that there is no retail price, only one wholesale price. I would just make the whole site password protected, but, I still want guests to be able to browse inventory.
Will your add-on work for this application?
thanks a lot.
Gaetano
Michael,
I am interested to know when this will be made into a plugin rather than an addon. It’s been a couple of months since your last estimated completion date and I haven’t heard from you.
Kimberly
Hi Kimberly, ready to go 🙂
Hi Jas, what you’re after is something that Wholesale Pricing does not cater for, you could hide the store behind a members login system and use the Manual Payment payment option for ‘pay on account’.
Hi, plugin looks good – can logged in users have a ‘pay on account’ payment option. so instead of having to use paypal or some other credit card option they can choose to put it on their tab or account?
Hi Michael,
You mention here that you can set different users with different pricing levels:
Retail: 100%
Distributor: 90%
Wholesale: 80%
Your Readme.txt mentions nothing of this, and only provides one wholesale user pricing level.
Am I missing something here?
I need this to work as you have described but currently there seems to be no way of doing this?
Concerned,
Greg
Hi marie, you’ll need to add a condition that checks if the user is logged in – is_user_logged_in() – to hide prices from guests. This way you can setup different pricing levels for different users who will be the only ones to see the Product price.
is it possible to have no prices on the public website, and several (20) levels of pricing by using this addon, each linked to a custom user role?
Hi Michael,
This plugin sounds awesome! Can I ask if this will allow me to hide my wholesale products from being shown on the site to the general public? The reason is that I have two different product ranges(wholesale and retail) not one product range with two pricing structures. So I would like to have a Wholesale page (requiring a login) that displays the ‘wholesale’ product category. I though I could do this with a standard ‘member access’ plugin but unfortunately this idea is no good as unlogged in guests can still directly access individual wholesale product pages via a google search (rather than through password page). So… is there the ability to ‘restrict access’ to certain product categories to guests on the site who are not logged in?
Many thanks!
I’m very interested in this feature as well. Could we get answer, michael?
thx
I’m thinking of using this wholesale pricing plugin. I’m building a membership site. I want different levels of subscribers to get bigger discounts on products in WP E-Commerce.
I have the WPMUDEV.Org Membership Plugin. But it doesn’t use roles. Above you mentioned “Custom Role Plugin” but I’m not sure which one you mean.
I need to figure out a way to integrate the two things together.