Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Aug 2020
    Location
    Richarson
    Posts
    7
    Plugin Contributions
    0

    Default Make content exclusive to authorized customers only?

    Site url is pfcind.com, 1.5.6c, plugins are lightbox, easy populate, Newsbox Manager. Testimonials Manager, php 7.2,

    This is my first post and I sincerely apologize if this has been addressed elsewhere, I have searched and have not been able to find anything that specifically addresses this question.

    With respect to Customer Details under the View Shop and Prices along with Authorization Pending: 2= May browse but no prices unless logged in & 2= May browse but no prices unless Authorized.

    As a result customers must login to view prices and must be authorized to view those prices.

    I would like to know if there is a built in function or plugin that will display ez pages ONLY for "May browse but no prices unless Authorized"?

    I am trying to make content exclusive to authorized customers only.

    Again, I apologize if this has been answered elsewhere but appreciate your help.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,429
    Plugin Contributions
    281

    Default Re: Make content exclusive to authorized customers only?

    To the best of my knowledge there is not but you could certainly build such a thing.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

  3. #3
    Join Date
    Aug 2020
    Location
    Richarson
    Posts
    7
    Plugin Contributions
    0

    Default Re: Make content exclusive to authorized customers only?

    Thank you very much for getting back to me. I am not a coder, but will see what I can do with the bit of information I know.

  4. #4
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,613
    Plugin Contributions
    19

    Default Re: Make content exclusive to authorized customers only?

    I would like to know if there is a built in function or plugin that will display ez pages ONLY for "May browse but no prices unless Authorized"?
    It's not built in but yes I do have a module that will control various header, footer and sideboxes for desktop, mobile, guest, retail, wholesale customer or in relation to any setting in the entire site like - hiding content based on the page, category or product, shipping location or login setting.


    Features:
    EZ Pages Navigation Menu Master ON/OFF

    0 = OFF
    1 = Show in Header - Only
    2 = Show in Footer - Only
    3 = Show in Both Header - Footer

    EZ Pages Display Only

    0 = Stock (default)
    1 = Guest ONLY
    2 = Logged in Customer ONLY
    3 = Your Custom Page|Customer to display ON

    You're welcome to contact me directly to discuss your needs.Generic versions of these switches are included in all new releases of Twitch Base6 keeping the stock code/behaviour in place for more efficient troubleshooting/Zen Cart version upgrades.
    Twitch.
    http://www.twitchtoo.com - Do you work for free? Please donate.
    Twitch Wholesale + Attributes, ZC 1.38 - 1.56c - Expert Site Migration & Upgrades!

  5. #5
    Join Date
    Aug 2020
    Location
    Richarson
    Posts
    7
    Plugin Contributions
    0

    Default Re: Make content exclusive to authorized customers only?

    Quote Originally Posted by twitchtoo View Post
    It's not built in but yes I do have a module that will control various header, footer and sideboxes for desktop, mobile, guest, retail, wholesale customer or in relation to any setting in the entire site like - hiding content based on the page, category or product, shipping location or login setting.


    Features:
    EZ Pages Navigation Menu Master ON/OFF

    0 = OFF
    1 = Show in Header - Only
    2 = Show in Footer - Only
    3 = Show in Both Header - Footer

    EZ Pages Display Only

    0 = Stock (default)
    1 = Guest ONLY
    2 = Logged in Customer ONLY
    3 = Your Custom Page|Customer to display ON

    You're welcome to contact me directly to discuss your needs.Generic versions of these switches are included in all new releases of Twitch Base6 keeping the stock code/behaviour in place for more efficient troubleshooting/Zen Cart version upgrades.
    Thanks for the reply sir, I greatly appreciate the info and will look further for sure.

  6. #6
    Join Date
    Apr 2009
    Posts
    2,105
    Plugin Contributions
    3

    Default Re: Make content exclusive to authorized customers only?

    Try the attached file ...

    It is a quick and dirty hack - yes, I know I should do the work in the module rather than in the template :-) - but should give you the basis for something.

    Back-up and then replace:
    includes/templates/yourstore/templates/tpl_page_default.php

    I am not really familiar with all the various authorisation settings so have left them all in there. It is fairly obvious how the logic works.
    Attached Files Attached Files

  7. #7
    Join Date
    Aug 2020
    Location
    Richarson
    Posts
    7
    Plugin Contributions
    0

    Default Re: Make content exclusive to authorized customers only?

    Quote Originally Posted by niccol View Post
    Try the attached file ...

    It is a quick and dirty hack - yes, I know I should do the work in the module rather than in the template :-) - but should give you the basis for something.

    Back-up and then replace:
    includes/templates/yourstore/templates/tpl_page_default.php

    I am not really familiar with all the various authorisation settings so have left them all in there. It is fairly obvious how the logic works.
    Thank you very much. I am having a look at it and am sure not far from having it work. I can see that it has restricted viewing when not logged in, if I can only have it allow for authorized customers, I will be in good shape. Thanks again !

  8. #8
    Join Date
    Apr 2009
    Posts
    2,105
    Plugin Contributions
    3

    Default Re: Make content exclusive to authorized customers only?

    I am guessing with the numbers :-)

    Try changing:

    Code:
        case (isset($_SESSION['customers_authorization']) && (int)$_SESSION['customers_authorization'] == 2):
            // customer is logged in and was changed to must be approved to see prices
            $show_ez = false;
        break;
    to

    Code:
        case (isset($_SESSION['customers_authorization']) && (int)$_SESSION['customers_authorization'] == 2):
            // customer is logged in and was changed to must be approved to see prices
            $show_ez = true;
        break;
    I think that is the case you are after. They are logged in and they are authorised. But ....

  9. #9
    Join Date
    Apr 2009
    Posts
    2,105
    Plugin Contributions
    3

    Default Re: Make content exclusive to authorized customers only?

    Sorry I made a silly error. Try this one ...
    Attached Files Attached Files

  10. #10
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,429
    Plugin Contributions
    281

    Default Re: Make content exclusive to authorized customers only?

    Nick, if you'd like to bundle this up into a plugin, others might find it useful too.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Sidebox Question: How to make a column appear ONLY when it has content?
    By Feznizzle in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 Nov 2017, 02:01 PM
  2. v139h Exclusive Products to Approved Buyers Only
    By Rick5150 in forum General Questions
    Replies: 0
    Last Post: 25 Apr 2012, 09:38 AM
  3. v150 make Purchase Orders only an option for select customers
    By artjewl in forum Managing Customers and Orders
    Replies: 1
    Last Post: 21 Feb 2012, 10:25 PM
  4. How can I make products only viewable to registered members or customers?
    By mohinder in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 6 Jun 2007, 08:11 AM
  5. How to make specific items visible only to special customers?
    By darthjones in forum General Questions
    Replies: 10
    Last Post: 4 Aug 2006, 10:22 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