Page 4 of 7 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 64
  1. #31
    Join Date
    Mar 2010
    Location
    The other side where the grass IS greener
    Posts
    30
    Plugin Contributions
    0

    Default Re: Hidden Wholesale

    Quote Originally Posted by jackie.taferner View Post
    damien,

    That would be a bit more complex than the code i displayed earlier, because you'll need to specify category ID numbers, etc etc.

    But.. this module might help you out: http://www.zen-cart.com/index.php?ma...roducts_id=391

    I have not used it before, and not sure if it works in conjunction with the wholesale module, but it should be a great start.

    My guess is it will block specific categories altogether (whether user logged in or not). If that's the case, we'll fandangle a little extra code to make the module only work if user is logged in.

    Backup your files and database first, give the module a whirl, and let me know what the results are.
    Quote Originally Posted by DamienDLSkinSolution View Post
    Jackie,

    Thanks for the reply and the tip about the hideCategoriest Mod.
    I do have that mod installed already. I never thought about using it combined with a $_SESSION['customer_whole'].

    I will look into it and post if I can get something to work.

    Thanks again for your time,

    Damien
    did you get this to work?

  2. #32
    Join Date
    Mar 2010
    Location
    The other side where the grass IS greener
    Posts
    30
    Plugin Contributions
    0

    Default Re: Hidden Wholesale

    after installing hideCategories
    open includes -> templates -> your template -> sideboxes -> tpl_categories.php

    find
    PHP Code:
    //  Begin hideCategories code
        
    list($nada$mycpath)= split('='$box_categories_array[$i]['path']);
        
    $mycid split('_'$mycpath);
        
    $categories_id array_pop($mycid);
        
    $hide_status $db->Execute("select visibility_status 
                        FROM " 
    TABLE_HIDE_CATEGORIES "
                        WHERE categories_id = " 
    $categories_id "
                        LIMIT 1"
    );
        if (
    $hide_status->fields['visibility_status'] < 1) {
    //  End hideCategories code 
    replace with
    PHP Code:
    //  Begin hideCategories code
        
    if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0') {
        } else {
        list(
    $nada$mycpath)= split('='$box_categories_array[$i]['path']);
        
    $mycid split('_'$mycpath);
        
    $categories_id array_pop($mycid);
        
    $hide_status $db->Execute("select visibility_status 
                        FROM " 
    TABLE_HIDE_CATEGORIES "
                        WHERE categories_id = " 
    $categories_id "
                        LIMIT 1"
    );
                        }
        if (
    $hide_status->fields['visibility_status'] < 1) {
    //  End hideCategories code 
    Kezza

  3. #33
    Join Date
    Sep 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: Hidden Wholesale

    Nope, sorry... My php skills are very limited and I couldn't figure how to call for a category by its ID number (e.g. call for category #10).

    The easy way out, at least for what I am looking to achieve, is using the Multi Site add-on.
    Both sites would be identical, except for their catalog.

    If anyone feels like shedding some lights on hiding an entire category and not just its products, that would be awesome.

  4. #34
    Join Date
    Sep 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: Hidden Wholesale

    @Kezza:
    And right when I post this, you got us a solution!
    I'm gonna give it a try right away.

    Thank you!!!

  5. #35
    Join Date
    Sep 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: Hidden Wholesale

    @Kezza:
    Again, thank you for your help. I tried your code and it works but something bugs me:

    It works in the way that it hides the category from the average customer and the wholesale customers can see the category in the Category Side Box.
    BUT
    as a wholesale customer, once you click on that category link, the all content of the Category Sidebox goes blank. (it's actually "categoriesContent" that goes blank. "categoriesHeading" still shows)
    That means as long as you are within this category, it is difficult to navigate to another part of the website.

    That's a great start though. Gotta figure that detail and we are golden!

  6. #36
    Join Date
    Mar 2010
    Location
    The other side where the grass IS greener
    Posts
    30
    Plugin Contributions
    0

    Default Re: Hidden Wholesale

    for now the easy cheats fix is to make sure the hidden cat has a sub cat with the products in it

  7. #37
    Join Date
    Mar 2010
    Location
    The other side where the grass IS greener
    Posts
    30
    Plugin Contributions
    0

    Default Re: Hidden Wholesale

    scratch that last post

    open includes -> modules -> your template -> product_listing.php

    find
    PHP Code:
    //  Begin hideCategories code
    $listing_sql str_replace('WHERE''LEFT JOIN ' TABLE_HIDE_CATEGORIES ' h ON (p.master_categories_id = h.categories_id) WHERE (h.visibility_status < 2 OR h.visibility_status IS NULL) AND'$listing_sql);
    //  End hideCategories code 
    and replace with
    PHP Code:
    //  Begin hideCategories code
        
    if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] != '0') {
        } else {
    $listing_sql str_replace('WHERE''LEFT JOIN ' TABLE_HIDE_CATEGORIES ' h ON (p.master_categories_id = h.categories_id) WHERE (h.visibility_status < 2 OR h.visibility_status IS NULL) AND'$listing_sql);
    }
    //  End hideCategories code 
    Kezza

  8. #38
    Join Date
    Jun 2009
    Posts
    16
    Plugin Contributions
    0

    help question Re: Hidden Wholesale

    I am using both the dual pricing and the hidden wholesale modules (the later as modified by kuroi). GREAT mods and thank you.

    But....when I enter the retail price as 0, as suggested in the readme, no price shows at all when the wholesale customer selects the product. What do I need to do to change this?

    Thank you...

  9. #39
    Join Date
    Jun 2009
    Posts
    16
    Plugin Contributions
    0

    Default Re: Hidden Wholesale

    Well, my "problem" was my own. I thought I was logged in as the test wholesale customer, but I was not. Logging in as a wholesale customer enables the price to show, just as it should.

    Does anyone know of a way to make the words "Retail Price" NOT appear on wholesale products? Even though they are followed by no price, it would be good that those words not appear.

  10. #40
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Hidden Wholesale

    This can probably be fixed in a language definitions file.

    Go to Tools > Developer Toolkit

    and search for the term Retail Price. It will tell you what file it's located in, then you can change the text to a blank space.

 

 
Page 4 of 7 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. v150 Dual pricing/ hidden wholesale...
    By rainbow_pixie_star in forum General Questions
    Replies: 1
    Last Post: 25 Sep 2013, 11:01 AM
  2. hidden wholesale help needed!
    By rainbow_pixie_star in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 6 Feb 2012, 03:48 PM
  3. Need to have wholesale pricing with quantity discounts for wholesale customers only..
    By littleturtlemama in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 16 Dec 2010, 04:47 AM
  4. Cpath incorrect on links to Subcategories from category page (hidden wholesale mod)
    By jackie.taferner in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 3 Nov 2010, 04:10 PM
  5. making a hidden wholesale only category?
    By daniellebaklava in forum General Questions
    Replies: 1
    Last Post: 10 Jun 2007, 10:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR