Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2006
    Posts
    121
    Plugin Contributions
    0

    Virtual server URL not in emails

    I'm running my shop using frame forwarding to point to a directory on a hosting server. Everything works just fine accept that the emails send to customers are showing the name of the server hosting my shop directory. So http://www.myhostingserver.com/myshop/ instead of http://www.myshop.com/.

    I found out that it's somewhere in the 'zen_catalog_href_link' but I can't seem to find were it is defined. Is there a way to change these email URLs?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Virtual server URL not in emails

    What are the contents of your /includes/configure.php file, without the password?
    .

    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
    Apr 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: Virtual server URL not in emails

    Made some changes for anonymity but setup is the same. Using 1.3.5 by the way, might be important.

    define('HTTP_SERVER', 'http://www.myhostingserver.com');
    define('HTTPS_SERVER', 'https://www.myhostingserver.com');

    define('ENABLE_SSL', 'false');

    define('DIR_WS_CATALOG', '/myshop/');
    define('DIR_WS_HTTPS_CATALOG', '/myshop/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    define('DIR_FS_CATALOG', '/home/users/username/myhostingserver.com/myshop/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'username');
    define('DB_SERVER_PASSWORD', 'password');
    define('DB_DATABASE', 'username');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

    define('SQL_CACHE_METHOD', 'database');
    define('DIR_FS_SQL_CACHE', '/home/users/username/myhostingserver.com/myshop/cache');

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Virtual server URL not in emails

    Since you're striving for anonymity, the best I can do is tell you that the URL is typically generated from the combination of HTTP_SERVER and DIR_WS_CATALOG *or* HTTPS_SERVER and DIR_WS_HTTPS_CATALOG.

    This of course holds true for all the links generated in Zen Cart.
    .

    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
    Apr 2006
    Posts
    121
    Plugin Contributions
    0

    Re: Virtual server URL not in emails

    That's what I thought. So I changed

    define('HTTP_SERVER', 'http://www.myhostingserver.com');
    define('HTTPS_SERVER', 'https://www.myhostingserver.com');

    to

    define('HTTP_SERVER', 'http://www.myshop.com');
    define('HTTPS_SERVER', 'https://www.myshop.com');

    but that made at least all images disappear because all DIR_WS definitions depend on HTTP_SERVER definititions. So I rolled back on that.


    I can think of two ways to work around this.

    - Replace all 'zen_catalog_href_link' code in relavant email links by hardcoded ones.
    - Add HTTP_VIRT_SERVER and HTTPS_VIRT_SERVER defines (www.myshop.com) to the config and somehow make them into a 'zen_virt_catalog_href_link' and change all relavant email URL to reflect the 'virt'. But I have no idea where the 'zen_catalog_href_link' is combined from the HTTP_SERVER and DIR_WS_CATALOG (or HTTPS_SERVER and DIR_WS_HTTPS_CATALOG). Where do I find that?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Virtual server URL not in emails

    You could also stop using frame forwarding, and maybe try something more direct such as a subdomain or maybe even your "own" hosting account.
    .

    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.

  7. #7
    Join Date
    Apr 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: Virtual server URL not in emails

    True indeed. And I will when testing is over and the shop goes live.

    It's just that during testing I've not come across any problems using frame forwarding. Haven't had the need to stop using frame forwarding until now.
    You ZC guys have spoiled me with the flexibility of Zen Cart. I assumed there had to be a quick workaround for this email link thing even if it's only a staging environment. Guess the use of a framed solution is not to be recommended in general.

    Thanks for your swift feedback. (Still wondering were the 'zen_catalog_href_link' takes shape though ;-)

  8. #8
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Virtual server URL not in emails

    peek in the html_output.php file in the functions folders ... they are presently different between admin and store. I believe you're looking for the file contained in the admin tree
    .

    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.

 

 

Similar Threads

  1. Virtual Server V Dedicated Server
    By mongoosepepper in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 23 May 2011, 02:12 PM
  2. The requested URL /admin was not found on this server.
    By dragon2007 in forum General Questions
    Replies: 4
    Last Post: 22 Jul 2010, 09:18 PM
  3. Emails not sending anymore following physical server move
    By donplay in forum General Questions
    Replies: 5
    Last Post: 31 Oct 2007, 04:20 PM
  4. The requested URL /shop/..... was not found on this server
    By Stone10 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 5 Nov 2006, 06:28 PM

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