Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Flag discontinued products

    Quote Originally Posted by fahadali View Post
    Awesome!! This is good! It is working fine on 1.5.3. It seems like Discontinued image is placed with status image. I managed to create separate column for Discontinued on dataTableHeadingContent but I cant put the discontinued image on separate column. Attachment 15603
    To move the flags into their own column, will need to move the if/else pair down below the first Then before the if add something like:This will place the new indicator column in it's own column, but currently there is no indicator for a discontinued category, so the new heading will not have any data beneath it when looking at the categories only or I presume that no data would be presented for a category that was presented with product as well... If such discontinued indicators are desired, then the table should be modified to indicate what type of data is being tracked, either a category or a product, though ideally it seems in database structure that should probably be captured by an additional table instead of an indicator of the type of product... (Normalization process).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    May 2015
    Location
    Mississauga, Ontario, Canada
    Posts
    14
    Plugin Contributions
    0

    Idea or Suggestion Re: Flag discontinued products

    Awesome! Everything is working perfectly!! I separated table row and it did the trick.
    Click image for larger version. 

Name:	products_discontinued.jpg 
Views:	121 
Size:	11.8 KB 
ID:	15609
    Click image for larger version. 

Name:	category_discontinued.jpg 
Views:	128 
Size:	21.2 KB 
ID:	15610

  3. #13
    Join Date
    May 2015
    Location
    Mississauga, Ontario, Canada
    Posts
    14
    Plugin Contributions
    0

    Default Re: Flag discontinued products

    Hey mc12345678, can you help me with other post? https://www.zen-cart.com/showthread....-Admin-backend

  4. #14
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Flag discontinued products

    Quote Originally Posted by mc12345678 View Post
    To move the flags into their own column, will need to move the if/else pair down below the first Then before the if add something like:This will place the new indicator column in it's own column, but currently there is no indicator for a discontinued category, so the new heading will not have any data beneath it when looking at the categories only or I presume that no data would be presented for a category that was presented with product as well... If such discontinued indicators are desired, then the table should be modified to indicate what type of data is being tracked, either a category or a product, though ideally it seems in database structure that should probably be captured by an additional table instead of an indicator of the type of product... (Normalization process).
    Weird, my code got stripped from the above post. (Apparently I didn't wrap an html code properly). Let me try again (for those that need just a little additional code support):

    To move the flags into their own column, will need to move the if/else pair down below the first
    Code:
    </div>
    Then before the if add something like:
    Code:
    ?>
    <div width="50" align="left">
    <?php
    This will place the new indicator column in it's own column, but currently there is no indicator for a discontinued category, so the new heading will not have any data beneath it when looking at the categories only or I presume that no data would be presented for a category that was presented with product as well... If such discontinued indicators are desired, then the database table should be modified to indicate what type of data is being tracked, either a category or a product, though ideally it seems in database structure that should probably be captured by an additional table instead of an indicator of the type of product... (Normalization process).

    And then need to end the div after the end of the if/else statement with
    Code:
    ?>
    </div>
    <?php
    BTW, the original placement was chosen so that it would not significantly affect the indicator for linked product (not all product is linked and I didn't want the indicator to slide left/right when a linked product was not/was present) also that I didn't go through the visualization process to see how the screen would be affected by various methods of display and other options on the row... Further the fact that the column is identified as "status" it seemed sufficient to be listed there, though perhaps a different image could be used instead of the existing green/red or in this case green/yellow as has been chosen. Anyways, it's ZC, you can do a lot of what you want minimal impact on the rest of the system. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #15
    Join Date
    Mar 2016
    Location
    Belgium
    Posts
    2
    Plugin Contributions
    0

    Default Re: Flag discontinued products

    Is it possible to do something more with discontinued products. I don't want it to turn up at the product listing. But still show by an external link ( like google search)

  6. #16
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Flag discontinued products

    Quote Originally Posted by Geert R View Post
    Is it possible to do something more with discontinued products. I don't want it to turn up at the product listing. But still show by an external link ( like google search)
    The table provided by the above code could be used to accomplish the described action. I know there is at least one thread or plugin out there that accomplishes the same task but from the stand point of the product being disabled... Ie. Product is accessible by direct link but does not appear in catalog side lists...

    The implementation would be similar but would left join the above table and depending on how the table was populated (product in it is discontinued or still in stock) then the product if found in the table would be omitted or included, respectively, from the listing.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #17
    Join Date
    Mar 2016
    Location
    Belgium
    Posts
    2
    Plugin Contributions
    0

    Default Re: Flag discontinued products

    Quote Originally Posted by mc12345678 View Post
    The table provided by the above code could be used to accomplish the described action. I know there is at least one thread or plugin out there that accomplishes the same task but from the stand point of the product being disabled... Ie. Product is accessible by direct link but does not appear in catalog side lists...

    The implementation would be similar but would left join the above table and depending on how the table was populated (product in it is discontinued or still in stock) then the product if found in the table would be omitted or included, respectively, from the listing.
    for me it does not matter if the product is disabled or discontinued. There are two things that would be handy. 1. the product still showing by direct link (search..) and also perhaps the review to be visual. How can i accomplish this? Can you perhaps help me?

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Is there an automated way to remove discontinued products via a feed?
    By floridaguy43 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 2 Jan 2015, 02:40 AM
  2. v151 Discontinued Products Handling
    By Rizla in forum General Questions
    Replies: 3
    Last Post: 17 Jul 2014, 09:05 AM
  3. Deleting discontinued products
    By thelatinbarbie in forum General Questions
    Replies: 5
    Last Post: 2 Jun 2008, 11:12 PM
  4. Show a Discontinued Flag
    By Gyphon in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 29 May 2007, 06:19 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