Zen Cart Logo
Forums / All Other Contributions/Addons / Hidden Wholesale

Hidden Wholesale

Views: 23,311

Results 1 to 20 of 65
31 Jul 2009, 7:19 AM
#1
manquant avatar

manquant

New Zenner

Join Date:
Jul 2009
Posts:
1
Plugin Contributions:
0

Hidden Wholesale

This thread is to track issues, questions, and concerns about the Hidden Wholesale add on. I've just uploaded it, so you can expect to see it in the next couple days.

Here is the an excerpt from the readme.txt more for information:

====================================================================
Compatibility:

This has been tested with:

Zen Cart 1.3.8 (zen-cart-v1.3.8a-full-fileset-12112007.zip)
Dual Pricing 1.5 (dual_pricing__wholesale_pricing_1-5.zip)

On both XP and Red Hat Linux.

====================================================================
What is this?!

This add on was created to supplement functionality in the Dual Pricing add on. While the Dual Pricing add on allows you to create products with wholesale prices and customers with wholesale assignments, it does not allow there to be an exclusive relationship between wholesale products and retail products. In other words, any product is typically viewable by anyone.

There are times when you don't want retail consumers to see wholesale products. Really. It's asked for quite a bit, actually. I'm surprised no one else took a hack at it. Or rather, no one else hacked it and shared it, already. C'mon folks...

====================================================================
How do I use it?!

Once properly installed, this add on uses the fields created by the Dual Pricing add on to determine whether a product should be displayed on the website. Specifically, to create a wholesale only product:

  1. On the product, the "Products Price" has to be set to $0.
  2. Give it a wholesale price, just as you would with Dual Pricing.
  3. That's it! Now the product should be visible only to Customers with a Wholesale pricing level of 1-4.

This should take care of the wholesale items appearing on the New Products lists and pages, Featured lists and pages, Specials lists and pages, and All Products lists. Additionally on the category and subcategory pages and on the Categories side bars. Word of warning -- I didn't use the Featured or Specials, so I think they work. They should work. They'll work. I can feel it. (Let me know if my feelings have gone astray.)

Customers who log in AND who have a Wholesale pricing level of 1-4 should be able to see the wholesale products (with the wholesale prices, yay!), along with the standard retail products. I've not found a way to hide retail products from wholesale customers. Mostly because I've never been asked/paid for that. Yet.

NOTE: Some of you may balk at the idea of using a price of 0 as an external indicator. Yes, it's a hack. But it works for me and it's free for you. If you really want to set a retail product to be zero cost to the consumer, I suggest that you put a price in here, anyway, such as a suggested retail price, and enable "Product is Free". This is good business and marketing practice, anyway, but that's another topic. Or hack your own solution. Isn't open source great?

20 Aug 2009, 12:17 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Hidden Wholesale

The mod can be found here.

I've extended maquant's original idea and released a version 2.0.

The main reason was to centralise the setting of the filter string, as I needed to use a different condition (though 2.0 release remains true to to manquant's original approach).

However, there are other improvements, notably The suppression of wholesale products to retail customers in the also purchased box and a few minor bug fixes (mainly for known problems carried over from Zen Cart core code).

One limitation at this point is that categories that are empty because there are no retail products in them, remain open, which can look unsightly. The normally recommended approach of disabling clearly won't work here, since the may need to be active for wholesale clients.

Despite these changes, credit for the existence of the mod remains with manquant. He (or she?) did the groundwork and packaged the original.

20 Aug 2009, 1:34 AM
#3
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Hidden Wholesale

Thanks a bunch to manquant and kuroi!! Excellent addition to dual pricing.

12 Nov 2009, 6:08 AM
#4
wwiii avatar

wwiii

New Zenner

Join Date:
Mar 2009
Posts:
32
Plugin Contributions:
0

Re: Hidden Wholesale

Thanks for a great mod. One question I would like a product to only show to one level of wholesale customer i.e. level 1 can see product but a level 2 cannot.

Is this possible?

29 Dec 2009, 11:43 AM
#5
perkiekat avatar

perkiekat

Zen Follower

Join Date:
Aug 2009
Location:
Carmi, IL
Posts:
354
Plugin Contributions:
0

Re: Hidden Wholesale

I have a question about this module before I install it.

I have products already set up with the wholesale and retail prices, however, the store owner wants to add a size not available to retail customers, only wholesalers. I rather not place the new size in there with a $0.00 retail price and then it show up to retail customers like that. This wouldn't look right and would cause many to contact owner asking why they cannot purchase this size.

How would this module help me obtain this? Would I have to create a separate category for the same items but with the new size in this one and then have it hidden?

I don't really understand how I would go about this...any feedback or suggestions would be appreciated.

Thanks
Pkat

2 Jan 2010, 1:23 PM
#6
perkiekat avatar

perkiekat

Zen Follower

Join Date:
Aug 2009
Location:
Carmi, IL
Posts:
354
Plugin Contributions:
0

Re: Hidden Wholesale

perkiekat:

I have a question about this module before I install it.

I have products already set up with the wholesale and retail prices, however, the store owner wants to add a size not available to retail customers, only wholesalers. I rather not place the new size in there with a $0.00 retail price and then it show up to retail customers like that. This wouldn't look right and would cause many to contact owner asking why they cannot purchase this size.

How would this module help me obtain this? Would I have to create a separate category for the same items but with the new size in this one and then have it hidden?

I don't really understand how I would go about this...any feedback or suggestions would be appreciated.

Thanks
Pkat

I tried it...couldn't use it with attribute pricing. It hide all of my categories because I use attributes to price and not the product. Therefore, all of my products had $0.00 and the Hidden Wholesale did it's job...it hid the products with $0.00...uninstalled. This is a great mod for stores that use pricing in the actual product, but not good for attribute pricing.

12 Jan 2010, 11:00 PM
#7
acreativepage avatar

acreativepage

Zen Follower

Join Date:
Sep 2004
Posts:
146
Plugin Contributions:
0

Re: Hidden Wholesale

Love this mod however, both retail and wholesale prices are shown when a customer logs in. Isn't there a way to only show the pricing available to that customer? For example, if the customer is assigned level 1 pricing, they only see that pricing and not both. I would have assumed it was set up that way but it's not.

14 Jan 2010, 12:32 AM
#8
alucaskin avatar

alucaskin

New Zenner

Join Date:
Jan 2010
Posts:
1
Plugin Contributions:
0

Re: Hidden Wholesale

Well I installed Dual Pricing and Hidden Wholesale, following the instructions directly, but the wholesale products aren't showing up for my sample wholesale customer.

I'm running a fresh install of ver. 1.3.8. The only other addon I've used is ImageHandler2.

I duplicated an existing product that my client wants to sell wholesale. Set the retail price to 0 and set the wholesale price per Dual Pricing (tried with dashes, commas, as well as a single number, since I only want one wholesale price level). Edited a sample customer and changed wholesale level to 1, logged in with that customer. Although the category count now shows there is an additional product, it doesn't show up no matter what I do.

This is the final step to complete this site, and my first time using Zen-Cart (I normally use Joomla, but have grown to dislike the carts available).

Please help!

Asher

19 Jan 2010, 1:35 AM
#9
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Hidden Wholesale

Can this module be used with "Group Pricing Per Item"?

I really like the simplicity of that module as compared to the Dual Pricing, and would be nice if I can hide products with this mod and using Group Pricing.

Thanks!

20 Jan 2010, 8:45 PM
#10
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Hidden Wholesale

OK, I ended up using the Dual Pricing module and it does work OK. One feature I really like is that this module can be used with Easy Populate.

I noticed a comment about not being able to hide the categories - I think this is inherent to Zen Cart itself. Zen Cart should automatically detect if there are or aren't products to be displayed in the category... but it doesn't.

Anyhow, if you are doing a wholesale-only cart and want all of the categories to be hidden until the customer is upgraded from "0", then add this code to the top of includes/modules/sideboxes/categories.php:

$show_categories= false;

if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0') {
    $show_categories= true;
} else {
  $show_categories= false;
}

if ($show_categories == true) {

And then add a final closing tag on the end:

}

Please note, this is only for those users who have installed Dual Pricing as well as Hidden Wholesale and want ALL categories to be hidden until user is upgraded to level 1 pricing or higher.

23 Jan 2010, 12:24 AM
#11
izar74 avatar

izar74

Zen Follower

Join Date:
Mar 2009
Location:
Italy
Posts:
155
Plugin Contributions:
0

Re: Hidden Wholesale

Hi all, great module!

Just a question about it, is It possible to hide not an entire article but just an attribute?
The purpouse is simple... have the wholsaler have more option and the normal customer not to see it.

Is there a way in which this module can help? I try it and work greatly hidding an article which has no normal price, but it's it doable with the attributes?

Thank for the help ;-)

23 Jan 2010, 12:30 AM
#12
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Hidden Wholesale

izar74:

Just a question about it, is It possible to hide not an entire article but just an attribute?Alas, not. Hiding an attribute would require changes within the code that builds the relevant display pages, a fundamentally different approach to filtering our specific products as is done by this module.

29 Jan 2010, 6:51 AM
#13
dennisns7d avatar

dennisns7d

New Zenner

Join Date:
Jan 2010
Posts:
55
Plugin Contributions:
0

Re: Hidden Wholesale

I'm developing a website for a client who wants to have free downloads available for customers. I created a 'Free Downloads' product category and restricted it to Document-General. I added a couple of products only to discover they weren't displayed. Because there is no way to set the price, the price is 0 which would make the downloads available to ONLY wholesale customers.

Is there some easy way to have Document-General products work with Hidden Wholesale?

29 Jan 2010, 4:44 PM
#14
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Hidden Wholesale

Sounds like the product type or category is not the issue here. The "product is free" option is hiding your products from retail consumers.

The only workaround I could see for this is some custom PHP placed in all the Hidden Wholesale files, which will detect the category "Free Downloads" or detect the "Document-General" products. Then an if/then statement that turns off the "hiding" if the product falls under this category. This would be quite the undertaking though.

Another option, is to handle the downloads outside of the Zen Cart. For example, make an "EZ page" and hard-code links to items you've uploaded to FTP. However, your client will not be able to edit/add downloads themselves with this method.

29 Jan 2010, 5:03 PM
#15
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Hidden Wholesale

dennisns7d:

I'm developing a website for a client who wants to have free downloads available for customers. I created a 'Free Downloads' product category and restricted it to Document-General. I added a couple of products only to discover they weren't displayed. Because there is no way to set the price, the price is 0 which would make the downloads available to ONLY wholesale customers.

Is there some easy way to have Document-General products work with Hidden Wholesale?This is exactly the sort of reason why I reworked the original mod. Haven't tested this, but try changing line 162 of the mod's includes\init_includes\overrides/init_customer_auth.php file from

  $custom_restriction= ' AND p.products_price > 0 ';
```to
```php
  $custom_restriction= ' AND (p.products_price > 0 OR p.products_type = 3) ';
29 Jan 2010, 5:04 PM
#16
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Hidden Wholesale

Wow, awesome kuroi! You added exactly what I was talking about, as a mod already

good work :)

4 Feb 2010, 1:37 AM
#17
silkvixen avatar

silkvixen

New Zenner

Join Date:
Sep 2008
Posts:
49
Plugin Contributions:
0

Re: Hidden Wholesale

kuroi:

The mod can be found here.

I've extended maquant's original idea and released a version 2.0.

The main reason was to centralise the setting of the filter string, as I needed to use a different condition (though 2.0 release remains true to to manquant's original approach).

However, there are other improvements, notably The suppression of wholesale products to retail customers in the also purchased box and a few minor bug fixes (mainly for known problems carried over from Zen Cart core code).

One limitation at this point is that categories that are empty because there are no retail products in them, remain open, which can look unsightly. The normally recommended approach of disabling clearly won't work here, since the may need to be active for wholesale clients.

Despite these changes, credit for the existence of the mod remains with manquant. He (or she?) did the groundwork and packaged the original.

so do you still need to use the dual pricing mod as well as this updated one?

im thinking of switching my shop over from OSC and want to add a wholesale section.
does this mod have a wholesale login etc?

12 Feb 2010, 1:09 AM
#18
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Hidden Wholesale

Yes, the hidden wholesale module is an addition to the dual wholesale module.

The regular zencart customer login will be utilized as the wholesale login. The dual pricing mod will allow you to specify pricing groups within the admin area (in the customers section). ie Group A, Group B, etc.

So install the dual pricing module, then install hidden wholesale, and add your different pricing for each wholesale level, but put $0 in the retail price spot for those products you want to hide before login.

12 Mar 2010, 8:21 PM
#19
immortalitea avatar

immortalitea

New Zenner

Join Date:
Dec 2004
Posts:
65
Plugin Contributions:
0

Re: Hidden Wholesale

Great mod. I've been using Dual Pricing for years but it always confused my customers that retail customers could see wholesale products (and were constantly trying to order wholesale items.)

However, as mentioned by someone else on this thread. If you have a product that is priced by attributes. You must leave the Product Price field blank (otherwise the product price is added to the attribute price). But when the Product Price is left blank, the mod assumes it is a wholesale item and the product is no longer visible to retail customers.

Any chance someone could write a little boolean magic to deal with this case? Or perhaps there is a work around I haven't thought of.

28 Mar 2010, 6:14 AM
#20
funkyavocado avatar

funkyavocado

New Zenner

Join Date:
Jul 2005
Posts:
1
Plugin Contributions:
0

Re: Hidden Wholesale

Does this work with Dual Wholesale 1.6? Like "alucaskin" on the 1st page of this thread, I have a fresh install of ZC 1.3.8 and I can't get the wholesale products to show when logged in.