Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34
  1. #21
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Redirect discontinued items

    You're welcome.

    I agree it is a nice car, that's why I bought one in the summer :)
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.

  2. #22
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Redirect discontinued items

    Quote Originally Posted by twitchtoo View Post
    Here's what's happening...
    Client:
    Finds product T, likes product T, bookmarks product T

    Admin:
    No longer offers product T.

    Client:
    Wants to buy product T cause now they have the money!

    If Admin 'disables' the product and has changed the noproduct.php to the index_categories.php...
    It will revert back to the index or category landing page the product used to be in.

    If Admin 'deletes' the product from the database...
    Everything fails.

    So, I put the noproduct.php back in and found that the message 'Sorry, the product was not found' will display properly. However the 'back' or 'continue' button does not display.
    <div class="centerColumn" id="productInfoNoProduct">

    <div id="productInfoNoProductMainContent" class="content"><?php echo TEXT_PRODUCT_NOT_FOUND; ?></div>

    <div class="buttonRow back"><?php zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT) . '</a>'; ?></div>

    Meaning it's not coded correctly or it's not getting any data to 'go back' or 'continue' to which makes sense.

    So, the alternate solution here would be to leave the message on the noproducts.php and add the code needed to go somewhere.

    It would be clean, fast and prevent any future problems if any of the files involved were to be changed. It would also be consistent, regardless of a 'disabled' or 'deleted' product the redirect would return to a controlled location.

    in includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_noproduct.php
    replace line 18:
    <div class="buttonRow back"><?php zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT) . '</a>'; ?></div>

    with this:
    <?php // Twitch No Product Continue to Index ?>
    <div class="buttonRow back"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo zen_image_button(BUTTON_IMAGE_CONTINUE);?></a></div>
    <!-- <div class="buttonRow back"><?php //zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT) . '</a>'; ?></div>-->

    it will look like this:
    Attachment 13604
    and clicking the continue button will take you home. The customer can read the message, understand why they can't see what they want and decide to move on or perhaps select a new category in the category sidebox.
    I like this.. much more intuitive for site visitors than the lone "product not found" message.. Couple of additional things I am going to do for my clients is to add a nice image to this page and possibly a list of the product categories too (like from the stock Zen Cart sitemap).. For my clients who use the cross sell module, I'm gonna see if I can get the cross sell code to display as well..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #23
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Redirect discontinued items

    It's relatively easy to add the cross sell code block here and ensure all it's variable wants and needs are met... or the default zen new products, featured products etc.

    There really should be some sort of eye candy from a marketing point as the customer's feeling of loss should be addressed here.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.

  4. #24
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Redirect discontinued items

    Quote Originally Posted by twitchtoo View Post
    It's relatively easy to add the cross sell code block here and ensure all it's variable wants and needs are met... or the default zen new products, featured products etc.
    The new, specials and featured products appear to already be included on this page which is what made me think to include cross sell..

    Quote Originally Posted by twitchtoo View Post
    There really should be some sort of eye candy from a marketing point as the customer's feeling of loss should be addressed here.
    I agree.. This post has inspired me.. Gonna be working on this for my clients..
    Last edited by DivaVocals; 28 Dec 2013 at 05:56 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #25
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Redirect discontinued items

    DivaVocals, many shops shut those features off globally... perhaps it's time to create a master admin table for page by page inclusion of the various marketing tools.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base7 with Wholesale PRO - 88 preinstalled plugins zero errors.

  6. #26
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Redirect discontinued items

    Quote Originally Posted by twitchtoo View Post
    DivaVocals, many shops shut those features off globally... perhaps it's time to create a master admin table for page by page inclusion of the various marketing tools.
    I do understand that.. my point was that there is code available for the new, specials, and featured products.. 'tis all
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #27
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Redirect discontinued items

    Quote Originally Posted by twitchtoo View Post
    DivaVocals, many shops shut those features off globally... perhaps it's time to create a master admin table for page by page inclusion of the various marketing tools.
    Quote Originally Posted by DivaVocals View Post
    I do understand that.. my point was that there is code available for the new, specials, and featured products.. 'tis all
    It looks like there are admin configuration settings which allows one to turn this on/off specifically on the tpl_product_info_noproduct.php page

    Index Listing > Show New Products on Main Page - Errors and Missing Product
    Index Listing > Show Featured Products on Main Page - Errors and Missing Product
    Index Listing > Show Featured Products on Main Page - Errors and Missing Product
    Index Listing > Show Special Products on Main Page - Errors and Missing Product
    Index Listing > Show Upcoming Products on Main Page - Errors and Missing Product
    It doesn't appear to be working though.. (just tried turning it on on my test site..) Hmmmmmmm....
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #28
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Redirect discontinued items

    Quote Originally Posted by DivaVocals View Post
    It looks like there are admin configuration settings which allows one to turn this on/off specifically on the tpl_product_info_noproduct.php page



    It doesn't appear to be working though.. (just tried turning it on on my test site..) Hmmmmmmm....

    It doesn't function for me either.
    Using Zen Cart 1.5.1

  9. #29
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Redirect discontinued items

    Quote Originally Posted by DivaVocals View Post
    It looks like there are admin configuration settings which allows one to turn this on/off specifically on the tpl_product_info_noproduct.php page



    It doesn't appear to be working though.. (just tried turning it on on my test site..) Hmmmmmmm....
    Now it works.. replaced lines 27-61 of the tpl_product_info_noproduct.php file with this code:


    Code:
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_FEATURED_PRODUCTS') { ?>
    <?php
    /**
     * display the Featured Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php } ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_SPECIALS_PRODUCTS') { ?>
    <?php
    /**
     * display the Special Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
    <?php } ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_NEW_PRODUCTS') { ?>
    <?php
    /**
     * display the New Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    <?php } ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_UPCOMING') { ?>
    <?php
    /**
     * display the Upcoming Products Center Box
     */
    ?>
    <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?>
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #30
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Redirect discontinued items

    Quote Originally Posted by DivaVocals View Post
    Now it works.. replaced lines 27-61 of the tpl_product_info_noproduct.php file with this code:


    Code:
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_FEATURED_PRODUCTS') { ?>
    <?php
    /**
     * display the Featured Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
    <?php } ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_SPECIALS_PRODUCTS') { ?>
    <?php
    /**
     * display the Special Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
    <?php } ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_NEW_PRODUCTS') { ?>
    <?php
    /**
     * display the New Products Center Box
     */
    ?>
    <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    <?php } ?>
    
    <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MISSING_UPCOMING') { ?>
    <?php
    /**
     * display the Upcoming Products Center Box
     */
    ?>
    <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?>
    Nice DivaVocals. Perfect.
    Using Zen Cart 1.5.1

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v153 Flag discontinued products
    By fahadali in forum Customization from the Admin
    Replies: 16
    Last Post: 18 Mar 2016, 08:19 PM
  2. Redirect deleted, moved and discontinued products to the home page.
    By Podgeminster in forum General Questions
    Replies: 1
    Last Post: 15 Mar 2011, 02:11 AM
  3. Replies: 0
    Last Post: 8 Oct 2008, 03:58 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