Page 1 of 2 12 LastLast
Results 1 to 10 of 188

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    Sheffield, UK
    Posts
    11
    Plugin Contributions
    0

    Default Re: Category Specific Access Restriction (CSAR) - [Support Thread]

    Quote Originally Posted by frank18 View Post
    Don't know where all the </div> tags in your file are coming from. The last lines of this file contained in the plugin package look like this:

    Code:
    <!--bof also purchased products module--> 
    <?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?> 
    <!--eof also purchased products module--> 
     
    <!--bof Form close--> 
    </form> 
    <!--bof Form close--> 
    <?php 
        } // eof CATEGORY_RESTRICTION - OPEN ACCESS 
    ?> 
    </div>

    Looks like you have a merging error and missed the code in red. To be on safe side place that code in red before the last </div>
    Hi Frank,

    I inserted the code where you said, but this totally disabled all product info display pages. I have also removed the additional DIV tags.
    Do you have any other suggestions?

    Kind regards
    simon

  2. #2
    Join Date
    May 2013
    Location
    Sheffield, UK
    Posts
    11
    Plugin Contributions
    0

    Default Re: Category Specific Access Restriction (CSAR) - [Support Thread]

    I just don't understand why the page
    http://www.neilson-hydraulics.co.uk/...ndex&cPath=160

    looks like this, but before it said login for prices and then re-directed the user to the login page, when logged in they have access to the price of the product.

  3. #3
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Category Specific Access Restriction (CSAR) - [Support Thread]

    Quote Originally Posted by storm007 View Post
    Hi Frank,

    I inserted the code where you said, but this totally disabled all product info display pages. I have also removed the additional DIV tags.
    Do you have any other suggestions?

    Kind regards
    simon
    I noted that your site displays SE friendly URI's. So there would have been at least one other modification of this file prior to installation of CSAR....

    Suggest you restore the tpl_product_info_display.php from your backup and then do a fresh merge of this file.

    It is not uncommon that merging errors occur when other mods have been previously installed. This is true for most modifications of Zen Cart.

    Incidentally the CSAR demo site is using the same pure blue free template, same as your store.

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Category Specific Access Restriction (CSAR) - [Support Thread]

    Simon

    Suggest you click on one of the test products. Don't click on anything else. Take note of the approximate time when you clicked on the test product. Now download the content of your logs folder and post the debug file that has the corresponding approximate time (should be last file in the store/logs folder).

    I also noted that the listing of New Products shows the prices of your test products. Same in the All Products listing. That is a clear sign that you did not upload and/or merge all files contained in the package.

    Frank

  5. #5
    Join Date
    Dec 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Category Specific Access Restriction (CSAR) - [Support Thread]

    Thanks Frank - that worked. Apparently I didn't understand what this plugin does. I was looking for a way to have some products - 1 category - available without having to log in or something like that anyway. Is there a way to emulate that with this plugin?
    Thanks

  6. #6
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Category Specific Access Restriction (CSAR) - [Support Thread]

    Quote Originally Posted by clausont View Post
    Thanks Frank - that worked. Apparently I didn't understand what this plugin does. I was looking for a way to have some products - 1 category - available without having to log in or something like that anyway. Is there a way to emulate that with this plugin?
    Thanks
    CSAR is designed to have most products open to the public (no login required until they want to check out) *but* restrict some categories/products.

    As I see it, you are looking for the reverse way to CSAR: you want *all* products under lock and key (customer must be logged in to browse and purchase) BUT for one category.

    To achieve that you first need to set Customer Shop Status - View Shop and Prices = 1 and then do some coding to excempt just the one category.

    So the approach is entirely different to CSAR.

    Alternatively, and depending on how many categories you have, you could use CSAR, leave Customer Shop Status - View Shop and Prices = 0 and then restrict all categories execept the one you want to keep open. Tedious but it would work.

  7. #7
    Join Date
    Dec 2012
    Posts
    15
    Plugin Contributions
    0

    Default Re: Category Specific Access Restriction (CSAR) - [Support Thread]

    Well, I think that may solve the problem, but brings up two others. I had the catalog displaying three columns per row and after merging everything, it is a single row. I'm pretty sure that is because I had another module installed that allowed column display but forgot about it.
    The part that I have to ask about is in the instructions:
    Please note that you still need to assign special privileges to certain customers you want to allow access to products of categeories / manufacturers you configured in points 2. and 3. in this segment.

    To grant access to these customers go to Admin > Customers > Customers and individually open the details of your chosen/approved customers.

    In your list of customers you will see a new column on the right hand side headed Privileges. By default the icon is a red cross. You can sort this column to find which customers are 'privileged' or not.

    Near the top of each customer's personal details you find a dropdown called Customers Special Privileges Status. The default is 'None'. Set this to 'Has Special Privileges'.

    Update the customer file - done

    The icon in the customer listing is now changed from a red cross to green indicating that the customer has special privileges.
    As I understand it, I would have to go and update all 1,600 customers individually to access the logged in products?
    Can you tell me what file to edit to default it to "'Has Special Privileges" rather than "none" or am I mis-understanding this?
    Thanks

  8. #8
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Category Specific Access Restriction (CSAR) - [Support Thread]

    Quote Originally Posted by clausont View Post
    Well, I think that may solve the problem, but brings up two others. I had the catalog displaying three columns per row and after merging everything, it is a single row. I'm pretty sure that is because I had another module installed that allowed column display but forgot about it.
    Naturally the merging must take individually installed mods into consideration.

    The part that I have to ask about is in the instructions:

    As I understand it, I would have to go and update all 1,600 customers individually to access the logged in products?
    Can you tell me what file to edit to default it to "'Has Special Privileges" rather than "none" or am I mis-understanding this?
    Thanks
    If you wanted all customers to have special privileges then you really don't need this mod. In Admin > Customers > Customer Approval Status you could set this to 1= Must be Authorized to Browse.

    But your equirements may different to here is an SQL statement to run in phpMyAdmin:

    Backup your DB !!!

    In phpMyAdmin select your DB and click the SQL tab at the top.

    Run this statement

    Code:
    UPDATE 'customers' SET 'customers_privileges'= 1
    WARNING: This will set privileges of ALL customers to 1, meaning ALL customers will now show 'Has Special Privileges'. New customers will initially still be set to 'none' until you make individual changes to their data.

  9. #9
    Join Date
    May 2013
    Location
    Sheffield, UK
    Posts
    11
    Plugin Contributions
    0

    Default Re: Category Specific Access Restriction (CSAR) - [Support Thread]

    Quote Originally Posted by frank18 View Post
    Simon

    Suggest you click on one of the test products. Don't click on anything else. Take note of the approximate time when you clicked on the test product. Now download the content of your logs folder and post the debug file that has the corresponding approximate time (should be last file in the store/logs folder).

    I also noted that the listing of New Products shows the prices of your test products. Same in the All Products listing. That is a clear sign that you did not upload and/or merge all files contained in the package.

    Frank
    Hi Frank,

    Here is the log.

    www.neilson-hydraulics.co.uk 80.229.41.38 - 2013-06-10 14:16:11 GET /store/ - 200 5728 http://www.neilson-hydraulics.co.uk/...order=1&page=6 Mozilla/5.0+(Windows+NT+6.1;+rv:21.0)+Gecko/20100101+Firefox/21.0
    www.neilson-hydraulics.co.uk 80.229.41.38 - 2013-06-10 14:16:23 GET /store/index.php main_page=index&cPath=160 200 5066 http://www.neilson-hydraulics.co.uk/store/ Mozilla/5.0+(Windows+NT+6.1;+rv:21.0)+Gecko/20100101+Firefox/21.0

    Also, i have noticed the prices are being displayed on All and New Products. The only files i had to modify were Product_listing.php and tpl_product_info_display.php. Are their more files to modify?

    Kind regards
    Simon

  10. #10
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Category Specific Access Restriction (CSAR) - [Support Thread]

    Quote Originally Posted by storm007 View Post
    Hi Frank,

    Here is the log.

    www.neilson-hydraulics.co.uk 80.229.41.38 - 2013-06-10 14:16:11 GET /store/ - 200 5728 http://www.neilson-hydraulics.co.uk/...order=1&page=6 Mozilla/5.0+(Windows+NT+6.1;+rv:21.0)+Gecko/20100101+Firefox/21.0
    www.neilson-hydraulics.co.uk 80.229.41.38 - 2013-06-10 14:16:23 GET /store/index.php main_page=index&cPath=160 200 5066 http://www.neilson-hydraulics.co.uk/store/ Mozilla/5.0+(Windows+NT+6.1;+rv:21.0)+Gecko/20100101+Firefox/21.0

    Also, i have noticed the prices are being displayed on All and New Products. The only files i had to modify were Product_listing.php and tpl_product_info_display.php. Are their more files to modify?

    Kind regards
    Simon
    I am afraid the links you posted are not the debug log files!

    It is also clear that you either did not read the instructions contained in the package or you plainly installed the old version.

    Let's back up to square one:

    Go to http://www.zen-cart.com/downloads.php?do=file&id=1234 and download the latest version of CSAR.

    Unzip the package and READ the readme.html file from start to finish.

    Restore your backup and do a fresh merge using the files contained in the package you have just downloaded.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Category Specific Restriction of Product Price Display (OLD v1 mod)
    By frank18 in forum All Other Contributions/Addons
    Replies: 40
    Last Post: 26 May 2013, 11:38 PM
  2. v150 [Not a bug] Category Specific Access Restriction‏
    By raf696 in forum Bug Reports
    Replies: 3
    Last Post: 17 Mar 2012, 03:26 AM
  3. v150 Category Specific Access Restriction‏
    By raf696 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 16 Mar 2012, 10:25 PM
  4. v150 Category Specific Access Restriction
    By raf696 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Mar 2012, 07:36 PM
  5. Gallery Category support thread
    By gjh42 in forum All Other Contributions/Addons
    Replies: 26
    Last Post: 26 Sep 2008, 09:38 AM

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