=== 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.
Hi Michael,
I noticed that the plugin is not updating the price of the function wpsc_cart_single_item_price() which is called in the shopping cart page to get the individual price of each row item. So i end up getting the regular price instead. How can I fix this?
-Adrian
Hi Adrian, thanks for raising this. Wholesale Pricing uses the wpsc_do_convert_price and wpsc_price filters within WP e-Commerce, whereas the function wpsc_cart_single_item_price() pulls the item price from the cart object which we don’t touch. I’ll fix this in the next minor Plugin update.
Any quick fix i could use for now?
Unfortunately not, this function is outside of our filters so I’ll be adding a solution in the next Plugin update just for this type of template tag that accesses the object $wpsc_cart.
quickfix for anyone that needs it
$cart_item->total_price / $wpsc_cart->cart_item->quantity));
weird that didn’t go through right, maybe it was the php tags?
printf('%0.2f', $wpsc_cart->cart_item->total_price / $wpsc_cart->cart_item->quantity);
Hello Michael,
Loving your wholesale pricing plugin. One problem: I can’t seem to make it work with product variations? How can I do this?
Thanks!
Hi orangesandlime, please update to the 1.7.5 Plugin update which brings per-variation as well as improved base Product support for pricing.
is there any way to display the wholesale price AND the regular price?
Hi webhank, yes you can add the template tag wpsc_wp_original_price() to your Products Page and Single Product template. This will display the wholesale price as well as the standard/before wholesale price.
I am working on an ecommerce store for a client but the only tricky part is that on this store she would require the customer to shop a minimum of $500 to get the wholesale price… Do you guys have a feature on the plugin that allows me to set up a minimum amount on the wp settings after I install it. I want to know if you have this feature before I buy it.
Thanks!
Hi Ursula, I don’t know of an existing solution to do this but have added it to my task list for inclusion in a future Plugin update.
Hi, is there any way to limit the minimum numbers of products, for example for wholesale price, user have to purchase minimum say 10 nos. of products. I want to set special freight prices for wholesalers – is this possible to have different freight rule for wholesalers?
I also want to turn off paypal payments for wholesalers only. IS this possible with this plugin ?
Please reply soon., I urgently need the information as I am working on my client’s store.
Thanks.
Feature Request: Wholesale Shipping options
It would be awesome if this plugin could also allow for custom shipping options to be setup based on the user group, as with wholesale product prices. This might be outside the scope of this plugin – but it would be very useful!
Thank you for the plugin.
I agree- the ability to set shipping for WHS orders would be very helpful, even if it was just a “shipping TBD” option. (or, better yet, have the options of “cheapest possible, USPS, UPS, etc but without a total price – to be determined later).
Hello,
is wholesale pricing working for product variations? I’m able to specify a price for a role in the product variation edit form but it seems like it’s not applied correctly. Setting a wholesale price on the product works but not on the products different variations. Is this a feature not yet implemented or am I doing something wrong.
Hi Eva, please update to the latest release of Wholesale Pricing. Variation support is working and compatible with WP e-Commerce 3.8.8.5 🙂
Im looking to be able to place a store wide discount on bulk purchasing but im struggling to find this feature available, can wp-ecommerce do this task for me ?
Hi Rich, my Plugin does not support bulk discounting though I am looking into this feature. You can do store-wide and per-Product discounting with my Plugin but as above it does not support minimum quantity limits at this time.
great plugin for wp
Thanks mojo! 😀
Is there a way to show the discount???
For example, is there an easy way to display the original price crossed out with wholesale price next to that?
Hi roostar, you can use the wpsc_wp_original_price() and wpsc_wp_you_save() template tags to display this information, it’s all covered in the Plugin’s readme.txt
I have one product to sale but in different quantities , i.e blocks of 200, 400 and 1000
I have a client list.
Only registered clients can purchase these blocks
Each block of 200 costs 200 , but client group a gets 50% discount, group b 40% discount, and group c 30% discount.
There is no deliveries as the blocks relate to a seperate service online.
Can this software offer this functionality?
Hi daud, I haven’t looked into quantity-based discounting, this may introduced in a future Plugin update.
Hi, can your plugin set up a particular product to be hide/show on a product page for a site visitor (not registered user) too?
More about that feature, you can please read here: http://getshopped.org/forums/topic/hide-product-from-product-page-prevent-listing/
Hi jurij, sure can! Just add the visibility template tag to your Single Products/Products Page template and control the visibility for each Product from Products > Add/Edit Products. 🙂
Howdy Michael,
Just wondering if it was possible to set an individual price for each product for wholesalers rather than a percentage or minus XX amount for specific user.
I have a client that sells tea and the pricing fluctuates according to blend, quantity, organic, fair-trade etc etc.
Say, if a field for the importer was added (or maybe if purchased along side of Product Importer Deluxe), so all you would have to do is add in an extra column on an Excel but also have the option to add extra fields so you could have Standard User, Wholesale User, Premium User etc.
Cheers.
Hi Michael, yes you can set an individual Price per User Role within Products > Add/Edit Products. The importer includes usage instructions for adding Wholesale Pricing fields to each Product 🙂
Hi there.
I’m wondering if the custom roles you set here integrate well with the WP e-commerce members only plug-in?
-Isaac
Hi Isaac, if Members Only uses standard WordPress User Role’s then this shouldn’t be a problem. 🙂
Hello, This is a great plugin! We can make user role discount based on this
my Question is : can i set different discount in different product?
Like this :
iPhone 3G, Editor Discount 50$
iPhone 3GS, Editor Discount 40$
iPhone 4, Editor Discount 30$
iPhone 4S, Editor Discount 20$
Thanks!
Hi idPIXEL, sure can! You can manage this via the Products > Add/Edit Products page to adjust per-Product discounting/pricing. 🙂