Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Code: is customer member of discount group - restricting view based on membership

    A lot of what you want to achieve can in fact be done within the template override system - except for the products_all and products_new listings. For those two listings, you'll need to modify the sql queries in the relevant includes/modules/pages/products_(new-all)/header_php.php files.

    Rather than modify the category_tree class and have to worry about upgrades, why not duplicate the class file, rename it my_category_tree and rename/modify the two functions within it. (you're going to have to modify it anyway, so with only a little more work you can save a lot of hassle for upgrades in the future - don't forget to pay attention to the cross-references between the two functions).

    Having done that, you simply make an override copy of includes/modules/sideboxes/categories.php to call your new category tree class rather than the regular one.
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Code: is customer member of discount group - restricting view based on membership

    A couple of other things to think about that you may have overlooked:
    1. you also have to filter the category out from searches
    2. you also need to prevent access (by someone simply typing in the direct url to the page) to the product listing page for that category and to individual product info pages for that category if the customer shouldn't have access.

    As an example of how this has been implemented on a working site, visit blackjackbuffers.com and try to view his 'dealer specials' category (cPath is 81) or one of the products within it (product_id 682, named Bulk Discount Buffers.)
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  3. #3
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: Code: is customer member of discount group? - restricting view based on membershi

    Thank you.

    I think I'd like to get a professional to do these mods for me. Is there a resource somewhere where the pro PHP/ZenCart programmers links can be found?

  4. #4
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Code: is customer member of discount group? - restricting view based on membershi

    You won't find a list of programmers anywhere, but you can post a request in the Commercial Help Wanted forum
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  5. #5
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: Code: is customer member of discount group? - restricting view based on membershi

    Exellent, thanks.

 

 

Similar Threads

  1. v151 External member discount code implementation
    By spmckee in forum General Questions
    Replies: 7
    Last Post: 14 May 2013, 05:47 PM
  2. Bulk Edit Customers discount-group membership setting
    By townsend2009 in forum Managing Customers and Orders
    Replies: 6
    Last Post: 9 May 2010, 07:35 PM
  3. Buying into a membership group and discount pricing per item.
    By Omen3891 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 33
    Last Post: 7 May 2010, 03:53 PM
  4. Discount for Membership Group
    By Vintage in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 10 Feb 2010, 12:19 AM
  5. restricting shipping methods based on customer location
    By kreation records in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 28 Jan 2008, 08:51 PM

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