Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    help question Remove or redirect URL access to New, Featured, Discount Coupon, etc. pages

    Greetings,

    I have no need for certain ZC functions such as the New Products or Discount Coupon pages. However, even after updating the admin settings to not show links and turning off sideboxes, I can still access these page directly via URL.

    example: "www.yourdomain.com/index.php?main_page=discount_coupon"

    Is there a setting I am missing in the admin to either show "Page Not Found" or redirect to index or other? If not, what would be the preferred method to do this?



    Thank you!
    Experience is what you get when you don’t get what you want…

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Remove or redirect URL access to New, Featured, Discount Coupon, etc. pages

    Remove or rename the corresponding foldername in /includes/modules/pages/ ... and then people hitting those pages will get a not-found response.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    Default Re: Remove or redirect URL access to New, Featured, Discount Coupon, etc. pages

    Quote Originally Posted by DrByte View Post
    Remove or rename the corresponding foldername in /includes/modules/pages/ ... and then people hitting those pages will get a not-found response.
    Thanks DrByte,

    With my setup, it even redirects to the home page! Perfect...
    Experience is what you get when you don’t get what you want…

 

 

Similar Threads

  1. v151 How to remove New - Featured - Specials from sub-category pages
    By mrcastle in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Nov 2015, 09:30 PM
  2. v139h Is it possible to disable/hide gift cert, discount coupon etc
    By cabdr1ver in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 29 Feb 2012, 08:14 PM
  3. Discount Coupon Restriction by URL
    By CooksPlus in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 16 Mar 2011, 05:47 PM
  4. remove redirect in Products URL
    By beatdis in forum General Questions
    Replies: 6
    Last Post: 22 Sep 2009, 11:33 AM

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