=== 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.
I’m having trouble determining if this plugin will meet our requirements.
Here are the business rules we would like to implement:
– Some products are ineligible to receive the wholesale discount under any circumstances.
– For some products, there are digital (zero-weight / file download) and physical (CD-ROM) variations. Wholesale should only be applicable to the latter.
– The wholesaler customer must have a minimum total quantity of qualifying items in order for these items to have the discount applied.
– Wholesalers are exempt from paying sales tax. Ideally there will be an additional field for such users to provide their tax ID #.
Can the plugin do this? and/or are these on the roadmap?
I’m a current customer and am hoping for these features also.
Hi BrendanL79, in the latest Plugin update I’ve added support for disabling Wholesale Pricing on a per-Product basis. Currently there is no ability to turn on/off Wholesale Pricing on a per-Product variation basis.
I’m exploring how to implement minimum quantity requirements for Checkout, I’m sure it can be done just not sure of the best method to get it working across 3.7/3.8 at this moment. Showing/hiding a custom Checkout field can be achieved by working with a WP e-Commerce developer else I can look at implementing this. 🙂
Hi again,
So I’ve updated to 1.6.1 and it has instructions for the product variations, through when i add the code it breaks the page and no products show. Are you able to show where in the code to embed the code.
Cheers,
D
Bump….
Does anyone know how to get the per product variation working..?
D
Anyone?? I need it to work badly!?
Hi guys, announcing a Plugin update shortly to resolve support for Product variation pricing 🙂
Sounds great! THANK YOU!
Hi Michael,
the plugin is working great – until I dont face with the product variations…
When do you plan to update it?
Second: it is a wholesale plugin, still the default markup is + 🙂
And third: Do you have a tip for us how to execute a mass product pricing (with more 100 products) ?
But the most important thing is the product variations.
Thank you
Hello, I have a client whom I’m trying to help, who has a WP e-Commerce store combined with a Membership Association website, so the products need the ability to have Membership and Non-Membership pricing. Would this plugin be applicable? Thank you!
Hi Mare, if you create a custom User Role and configure it within your membership Plugin that new customers are assigned to it Wholesale Pricing can do the rest.
Assign members pricing to the Members custom User Role and other pricing to site visitors/guests. 🙂
Hi Michael
Not wanting to be a bore, but what are the chances of the hide non-wholesale feature being available anytime soon? I am struggling to figure it out with other custom user plugins.
Thanks
Kim
Hi Kim, how about today. I’ve packaged up the 1.6 Plugin update that allows you to show/hide Products based on User Roles, just like you would set override markup/markdown within the Add/Edit Products page. I’ll be able to tweak it from here on in to support wholesale/non-wholesale visibility, etc. Let me know what you think 🙂
Awesome – will test it out tonight and let you know 🙂
Hi
I tried to download 1.6 from the premium update page and it still has 1.5.1 for download.
I guess my today is almost over and your today still has daylight hours. Will you let me know as soon as it is available for download?
Thanks
Kim
Hi Kim, ready to go. I’ll likely improve this implimentation to modify the Products loop within wp_query as apposed to a template tag like this, see how you go 🙂
Don’t think I ma getting it to work. If I go into the product that is not for wholesale and click hide product for the user role that is my wholesale login (in this case contributor) then that product should not be visible when I am logged in as a contributor, right?
I deactivated User Role Editor plugin just in case.
But all the products are still showing . . .
Hi Kim, please update to the 1.6.1 Plugin update, I added template tag instructions to the readme.txt, they’ll need to be placed in both the wpsc-products_page.php and wpsc-single_product.php template to work. It’s all in the readme 🙂
Hello Michael
Good to see there are more updates and you are actively working on the product. However will this version work for the few users that the prices werent changing? It still deosnt seem to change the price so matter what settings i apply. Is there a way to check what the problem is like a debug file or anything?
Charlie
Hi Michael,
I’m still having trouble getting the per product pricing working.
Cheers,
D
Hi Michael, after upgrading to 1.5 I couldn’t get the wholesaler plugin to work. Tried updating to 1.5.1 and had my fingers crossed… and still no joy??? I’m sure I have the snippet in the correct spot. Any suggestions, maybe re-install?
thanks Conor.
Sorted.. I’m such a tool, didn’t read all the instructions did I!
Hi Conor, good stuff. Fingers crossed you won’t need to make that snippet change in the next WP e-Commerce 3.8 release 🙂
Hello Michael
Im having trouble with this plugin. It doesnt seem to be working. I just want logged in users to have 50% off displayed prices but when i set it up nothing happens. Ive plugin activated… subscriber set to -50% in the wholesale settings. Am i missing anything else? Any help be appreciated
Charlie
Hi Charlie, please make sure you’re not logged in as an Administrator when confirming that the markup/markdown is working. Feel free to send me login details so I can look into this further with you.
Thanks Michael
Ive emailed you those details now. If you need any more help give me a shout
Charlie
I bought this plug in about a month ago and it has not worked yet. I have been told its being fixed and have not heard back. I have to explain this to all my registered users now and its very annoying.
Howdy,
I’m trying to use the product based wholesale pricing, though the price is not changing. When I use the global wholesale pricing the product page pricing doesn’t change but the shopping cart price is correct.
Cheers,
D
Ok, got the global pricing fixed, I forgot to re editing the product-template.php file.
D
I’m dunskii, good stuff, I’m working with the WP e-Commerce team to get that patch added into Core.
I’m still having trouble getting the product page wholesale pricing to work…. mmmm… its there anything special I need to do?
D
Hi there
I really need this plugin but when I activate it, my sidebar shopping cart widget stops updating itself. Has this happen to anyone? Is there a way to avoid this?
Please help me.
Thank you
carolina
Solved! Thank you! the 1.5.1 works perfectly!
Hi caronlina, awesome, annoying little bug was causing that issue, should be smooth sailing and a bunch of very cool features coming to this Plugin soon! 🙂
Hi. Firstly, thank you for an awesome plugin.
Upon installing v1.5, the ‘Adding to cart’ notification remains visible and the cart itself doesn’t update. Tried v1.4 and it works fine but I really need (and love) the per-product pricing option. I’m guessing it’s a javascript thing? Any ideas?
Hey Jef, thanks for the feedback, I’m looking into this now with compatibility of WP e-Commerce 3.8.3, it could well be a Javascript issue outside of my Plugin, will report back shortly.
Hi Michael,
Any news on this yet or perhaps you have an idea where the conflict could be? I’ll take a look on my side as well and let you know if I find anything.
Cheers,
Jef.
Hi Jef, please download 1.5.1, conflict spotted and resolved 🙂
Excellent, thanks Michael.
Hi Jef, have upgraded one of my development sites to 3.8.3 and will work to reproduce tomorrow; otherwise definitely the next day. I’ll be in transit tomorrow between Thailand and Laos where internet access is scarce, EDGE at best, while on the road.
Hi Jef, have reproduced the issue, actively working to resolve and get a Plugin update out. Comparing changes between 3.8.2 and 3.8.3 to diagnose this.
Awesome! Looking forward to using the plugin. Thanks for the great support.
Hi Michael,
Just discovered that on my setup, the problem only exists when logged in. Log out and it works perfectly. Hope that helps.
Hi Michael
Have you managed to fix the issue with 3.8.3?
Thanks
Kim
Hi Kim, all sorted, please update to 1.5.1 from the Premium Plugin Updates.
http://www.visser.com.au/wp-ecommerce/premium-plugin-updates/
THANKS 🙂
I purchased this plugin and am getting multiple errors. I have emailed you the errors and details directly.
Can you please confirm that you have received this?
Thanks
Hi Julianna, can you please resend to michael@visser.com.au, I’m aware there’s an intermittent issue with the cForms mailer which I’m looking at. 🙂
I’m looking for a solution that handles volume discounts by user role, as well as the percentage/value based discounts. Is that possible with this plugin?
To clarify…once a user logs in, they see a tiered pricing structure (based on a certain role) and pricing for 1-6 units is $10, 7-12 units is $9, and so on.
Hi Rob, I expect volume based markup/markdown to be introduced in the near future,. I’ll put up a post now on the site to vote for the most desired feature. 🙂
I need this features as well.
Have you put that feature vote up as yet? I would love to see where I can give a category of numerous products a separate retail and wholesale price.
Example: I have a category of Duvet Sets. There are 20 different duvets, but they are all the same price. I will have to add a wholesale price to each product as it stands now, right? Would be great if I could apply the price to an entire category.
What happens with variations when applying wholesale pricing?
(I am using WPEC 3.8)
Hi Kim, I’ve added a Feature Roadmap poll to each Plugin. Start voting!
http://www.visser.com.au/wp-ecommerce/plugins/wholesale-pricing/#toc-roadmap
Does this work on a per product basis or is it still only general settings for the entire catalog?
Hi Kimberly, now that 3.8 support is here I can get back to focusing on feature enhancements so per-Product support is just around the corner 🙂
I also want per product pricing.
Another nice addition to that would be the possibility of applying one price to a batch of products under a particular category. Making it complicated of course . . .
With regards to the “just around the corner”; how far away is that corner? Weeks or months? I need to know if I must get some custom coding done or not?
Spinning up this feature today, hope to have a stable release ready in the next few days!
Can’t wait to see it. Thank you! 🙂
Took a lot less time than I thought to develop, just working on legacy WP e-Commerce 3.7 support then will update the latest release. Expected time is less than 3 hours away!