Thread: hideCategories

Page 49 of 49 FirstFirst ... 39474849
Results 481 to 486 of 486
  1. #481
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: hideCategories

    I do not believe there is a built in function to do what you want. I'd have a look in the 'plugins' section to see if anyone has solved that already. If not then you will probably need to hire someone to write some code for you. It is not a huge job :-)

    You may have more luck with this question if you start a new thread because this thread is for a particular plugin.

    (is that 'Yourstore' theme?)

  2. #482
    Join Date
    Aug 2020
    Location
    Richarson
    Posts
    94
    Plugin Contributions
    0

    Default Re: hideCategories

    Quote Originally Posted by niccol View Post
    I do not believe there is a built in function to do what you want. I'd have a look in the 'plugins' section to see if anyone has solved that already. If not then you will probably need to hire someone to write some code for you. It is not a huge job :-)

    You may have more luck with this question if you start a new thread because this thread is for a particular plugin.

    (is that 'Yourstore' theme?)
    Thank you very much for your response. I will start a new thread. I checked the plugins but could not find anything. And Yes, that is a YourStore template.

    Thank you very much!

  3. #483
    Join Date
    Aug 2005
    Location
    San Juan, Puerto Rico
    Posts
    1,525
    Plugin Contributions
    9

    Default Re: hideCategories

    As a result customers must login to view prices and must be authorized to view those prices. I would like to have content exclusive to authorized customers only.
    Probably Twitch Wholesale module might help you: Twitch Wholesale with Twitch Wholesale Attributes

    The module will give access only to certain customers to certain categories. You can also combine it with Dual Pricing for more control on pricing for those specific customers.

    We worked something similar for a customer. Any info, send PM.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!
    My contributions: SophyBlue / Sophy Blue-Grey / Mistik / The Bookshelf / Dynamic Sideboxes

  4. #484
    Join Date
    Feb 2005
    Location
    Captain Cook, Hawaii
    Posts
    179
    Plugin Contributions
    0

    Default Re: hideCategories

    Quote Originally Posted by niccol View Post
    admin/categories.php

    The most recent version of this addon still contains the line ;

    Code:
      require(DIR_WS_MODULES . 'prod_cat_header_code.php');
    I don't think recent versions (>= 1.5.6) of Zen have that file.

    Attached is a version of categories.php that is working for me at the moment. Just a hacked together version of previous code in a way that doesn't conflict. Still developing the site so I guess I may come up with other glitches.
    I am running 1.5.7c and installed the downloaded ZIP files. All worked fine and I could make an existing Category hidden. However, when I tried to create a new category I got an error at the bottom of the page saying:

    WARNING: An Error occurred, please refresh the page and try again.If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    The error in my log is:

    PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 4 :: select visibility_status
    FROM zen_hide_categories
    WHERE categories_id =
    LIMIT 1 ==> (as called by) on line 419 <== in /home/www/mysite.org/store/includes/classes/db/mysql/query_factory.php on line 170.


    Since I had downloaded the revised CATEGORIES.PHP mentioned in this post, I sent NICCOL a message and he replied with the following suggestion (which appears to have solved the problem).

    =====

    Try replacing this:

    Code:

    //Begin hideCategories code
    $sql = "select visibility_status
    FROM " . TABLE_HIDE_CATEGORIES . "
    WHERE categories_id = " . $cInfo->categories_id . "
    LIMIT 1";
    $hide_status = $db->Execute($sql);
    switch ($hide_status->fields['visibility_status']) {
    case 1:
    $hide_category_normal = false;
    $hide_category_nomenu = true;
    $hide_category_hidden = false;
    break;
    case 2:
    $hide_category_normal = false;
    $hide_category_nomenu = false;
    $hide_category_hidden = true;
    break;
    default:
    $hide_category_normal = true;
    $hide_category_nomenu = false;
    $hide_category_hidden = false;
    break;
    }

    With this:

    Code:

    if($cInfo->categories_id > 0) {
    $sql = "select visibility_status
    FROM " . TABLE_HIDE_CATEGORIES . "
    WHERE categories_id = " . $cInfo->categories_id . "
    LIMIT 1";
    $hide_status = $db->Execute($sql);
    switch ($hide_status->fields['visibility_status']) {
    case 1:
    $hide_category_normal = false;
    $hide_category_nomenu = true;
    $hide_category_hidden = false;
    break;
    case 2:
    $hide_category_normal = false;
    $hide_category_nomenu = false;
    $hide_category_hidden = true;
    break;
    default:
    $hide_category_normal = true;
    $hide_category_nomenu = false;
    $hide_category_hidden = false;
    break;
    }

    }
    Last edited by mshultise; 24 Jun 2021 at 08:16 AM.
    Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)

  5. #485
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: hideCategories

    It should be noted that this plugin has not been updated since 2016.

    I am not involved in its maintenance and have no responsibility for it.

    Make your own choices people.

  6. #486
    Join Date
    Jun 2012
    Location
    California
    Posts
    200
    Plugin Contributions
    0

    Default Re: hideCategories

    Any of you ZenMasters interested in upgrading this to 1.5.7c and if so how much do you want to do it?

 

 
Page 49 of 49 FirstFirst ... 39474849

Similar Threads

  1. how to get hidecategories an dual pricing to work
    By davidweaver88 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 Jun 2012, 03:35 PM
  2. anyone using HideCategories in 1.3.9d??
    By redheads in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 8 Jun 2010, 06:54 AM
  3. HideCategories problem...
    By ShadowAngel in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Nov 2009, 10:17 PM
  4. hideCategories Module
    By marcusimages in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 25 Aug 2009, 06:31 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