Results 1 to 4 of 4

Need to turn on/off different categories

This is a discussion on Need to turn on/off different categories within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hello, I need to be able to turn on/off a category in the shopping cart. My customer runs a flower ...

      
  1. #1
    New Member
    Join Date
    Sep 2007
    Posts
    13
    Rep Power
    0


    Default Need to turn on/off different categories

    Hello,
    I need to be able to turn on/off a category in the shopping cart. My customer runs a flower shop and she offers seasonal flowers. When the season is over, she needs to be able to turn off the link to that category.

    How do I go about doing this task?

    Thank You,
    Matt

  2. #2
    osCMax Testing Team
    Join Date
    Sep 2004
    Posts
    357
    Rep Power
    10


    Default Re: Need to turn on/off different categories

    Check out this contribution osCommerce Community Add-Ons

  3. #3
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    Default Re: Need to turn on/off different categories

    Please remember that unless the change looks to see if the item has an active/inactive flag set before displaying and acts on that flag, then there could be problems.

    One version of this that I saw used a simple flag to determine if the category was able to be listed. The end user had the category on for a while, and then turned it off. They thought doing so would make the category "unseen" by the user and thus items in it would be un-purchasable.

    Thus the problem. The items had been indexed by google and people were still able to get to the category and the items in the category to purchase them directly from the search engines. Thus the whole purpose was killed as even though the flag to "not display" was set, the items were still able to be purchased.

    A decent add-on for this feature must be able to allow the items to remain in the back end (for use next season), but at the same time, must not allow the items to be displayed when they are not active.

    This then brings up the question on what to do when an inactive item is displayed. A good add on will provide you with the option of allowing you to display an appropriate message, a bad one will just force a redirect to the home page with no message to the user. A really good one will force the redirect, but will also open a in-line DTML message explaining why they were redirected and suggest other products that they might be interested in based on the product that they selected.

    In other words, a simple flag on active/inactive is NOT a good solution as you really want the system to be able to do more than that.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: Need to turn on/off different categories

    A simple workaround to the above scenario would be to set all the products in the category as inactive. Then use the mod suggested. This will disable the display of the category and the category will be empty and display nothing even if google indexes the pages. Then re-activate the products when you need them.

    I admit it is not the most elegant solution, but it is a 'here and now' working solution with minimal coding needed. If you want a properly coded solution, time to dig out the php skillz...
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. unable to turn Modules on
    By jschafer52 in forum osCmax v2 Installation issues
    Replies: 9
    Last Post: 07-16-2006, 01:40 PM
  2. How to turn on CoolMenu?
    By Lobotaman in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 10-07-2005, 07:35 AM
  3. Mopics .... my turn.
    By jan_mull1 in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 01-14-2004, 06:55 AM
  4. is there a way to turn off the template?
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 12-04-2003, 09:46 PM
  5. How do I turn off the Welcome email?
    By mcdanie1 in forum osCmax v1.7 Discussion
    Replies: 5
    Last Post: 10-06-2003, 08:29 AM

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
  •