Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2006
    Posts
    47
    Plugin Contributions
    0

    Default Replacing "CONTACT_US" URL

    I would like to change it so that whenever there is a reference to contact us instead of this

    http://www.mysite/store/index.php?main_page=contact_us

    That it redirects to my help desk software.

    How do I go about doing this?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Replacing "CONTACT_US" URL

    I'd suggest putting a link to your help desk system on the contact-us page, using the Define Pages Editor tool in Admin->Tools.

    That way folks can choose what they wish to do.

    Or, if you want to remove that option from the customer, you can have your customers leave the store by putting this in the top of the /includes/modules/pages/header_php.php file, immediately after the <?php
    Code:
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://www.my_site.com/helpdesksystem/index.php");
    die();
    .

    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
    Feb 2006
    Posts
    47
    Plugin Contributions
    0

    Default Re: Replacing "CONTACT_US" URL

    Quote Originally Posted by DrByte View Post
    I'd suggest putting a link to your help desk system on the contact-us page, using the Define Pages Editor tool in Admin->Tools.

    That way folks can choose what they wish to do.

    Or, if you want to remove that option from the customer, you can have your customers leave the store by putting this in the top of the /includes/modules/pages/header_php.php file, immediately after the <?php
    Code:
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://www.my_site.com/helpdesksystem/index.php");
    die();
    We really don't want them to have the option of either or. We are getting folks using the contact us for issues with the forum, gallery, store, and everything else, and since each section is handled by someone else, we want it in one area instead of having to forward it to them.

    I did the second option, and I'm not sure what it was suppose to do. The contact us page is still there, and it still goes to the zenCart form for contacts.

    Isn't there just one general code that dictates where it needs to redirect if you press Contact Us?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Replacing "CONTACT_US" URL

    Oops ... I left out part of the path to the correct file where you should make the change:

    /includes/modules/pages/contact_us/header_php.php


    Doing it this way will cause the page to redirect to your system whenever someone clicks to the Zen Cart contact-us page.
    If you want to change every contact-us link manually, feel free. The above method is a lot faster.
    .

    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.

  5. #5
    Join Date
    Feb 2006
    Posts
    47
    Plugin Contributions
    0

    Default Re: Replacing "CONTACT_US" URL

    Thank you :) This worked perfectly!

 

 

Similar Threads

  1. Replacing "Filter Results by ABC" with "Sort by: Price, Date added"
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Aug 2010, 09:18 AM
  2. Replacing "model" with "part number"
    By enigma666666 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 26 May 2010, 09:52 PM
  3. Using "Contact_us" from Admin
    By Veronika7747 in forum General Questions
    Replies: 5
    Last Post: 16 May 2010, 07:50 PM
  4. Replacing "Buy Now" button with Product URL
    By kaulpo in forum General Questions
    Replies: 3
    Last Post: 12 Jul 2009, 02:08 PM
  5. "Contact_Us" drop-downs missing
    By kbeard in forum General Questions
    Replies: 2
    Last Post: 7 Feb 2007, 05:51 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