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

    Default Re: What files control the 404 product not found?

    Quote Originally Posted by RodG View Post
    This assumption isn't quite correct.

    Removing the p.products_status = '1' will include the disabled product in the count(*), and that will indeed cause the '404 bit' to be skipped, assuming the product is still in the DB, but if the product with the $_GET['products_id'] has been deleted the res->fields['total'] will still be < 1 and the '404 bit' will be acted upon.

    This may or may not be what you are after.

    Cheers
    RodG
    Based on the original writeup: product disabled, still in database (not deleted), but not to be shown: products_id would still be valid, and so would everything else in the statement except a 404 would not be sent and one couldn't get to the product from the store side, could only get to the product (know that it currently exists) because it was found sometime in the past or is forwarded on now as an item of interest that has been disabled.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: What files control the 404 product not found?

    Just a silly idea here ...

    But ... wouldn't it be easier to have Products that are 0 stock that go to products_status = 0, be changed to NOT go to products_status = 0 and just be products_quantity = 0 which then is Sold Out and adapt the Catalog to not show Products that products_quantity = 0 where you do not want to see them?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #13
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: What files control the 404 product not found?

    Quote Originally Posted by philip937 View Post
    Yes that pretty much what I'm after. So a disabled product will:
    - Not be visible in the product listings
    This would be dependent on the product listings code / settings.
    The proposed change to the product info page will have no effect on this.

    Quote Originally Posted by philip937 View Post
    - Accessible via external links
    What happens here depends on the rest of the code for the product info page. The easiest way to determine this is to make the change and navigate to the product info page of the disabled product.

    Quote Originally Posted by philip937 View Post
    A product deleted from database will:
    - Will return 404 not found
    Only for the product info page.

    Quote Originally Posted by philip937 View Post
    In addition to the above I need to find out what code I need to change so that the product info page displays normally with the content and page title etc.
    Unless I'm mistaken, no other changes will be needed, but again, the best thing to do is try it.

    Never be afraid to experiment with these things. Just make sure you only change one thing at a time and if you don't get the expected results change things back to how they were before moving on.
    What you should *not* do is leave a change in place if no effect is noted as a result of the change. Doing this has a nasty habit of biting you in unexpected ways.

    Cheers
    RodG

  4. #14
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: What files control the 404 product not found?

    Quote Originally Posted by Ajeh View Post
    Just a silly idea here ...

    But ... wouldn't it be easier to have Products that are 0 stock that go to products_status = 0, be changed to NOT go to products_status = 0 and just be products_quantity = 0 which then is Sold Out and adapt the Catalog to not show Products that products_quantity = 0 where you do not want to see them?
    I have a feeling that this is what mc12345678 is/was trying to eke out of the OP.

    I could be wrong.... or at best, a little confused other exactly what is trying to be achieved.
    My aim here is to just answer the questions :)

    Cheers
    RodG

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v151 Problem about control the 404 error product
    By macbookpro in forum General Questions
    Replies: 3
    Last Post: 23 Jan 2015, 09:32 PM
  2. v151 product not found 404
    By lpm92 in forum General Questions
    Replies: 3
    Last Post: 7 Oct 2013, 01:48 PM
  3. Admin 404 Not Found The requested URL was not found on this server
    By L.a.Willman in forum Installing on a Windows Server
    Replies: 23
    Last Post: 10 Jan 2012, 02:26 AM
  4. Add product gives a 404 not found
    By Bastelboy in forum General Questions
    Replies: 1
    Last Post: 2 Jan 2011, 10:04 PM
  5. ZJ Black 2 - What files control the New Tab?
    By Beau91324 in forum Addon Templates
    Replies: 1
    Last Post: 27 Apr 2010, 03:13 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