Yes. The only change I made was to have all pages load with https in the config file.
Yes. The only change I made was to have all pages load with https in the config file.
Well, that was one way to address it, but I can think of two others. One for the modules code and the other for the customized code.
For the module's header_php.php:
The other fix is to not hardcode links into files... use zen_href_link style functions. For pages being directed to this type functionality where information is expected to use https (when available) the zen_href_link should attempt to use SSL if it is available. By requesting the link to be generated with SSL, if the system is not setup to support then it won't be attempted and the redirect won't occur.Code:} // end action==send if (ENABLE_SSL == 'true' && $request_type != 'SSL') { zen_redirect(zen_href_link(FILENAME_REQUEST_A_QUOTE, zen_get_all_get_params(), 'SSL')); }
As for the changes made to the site, would verify that the canonical links are properly populated as supported by Zen Cart versions at least at and more recent to ZC 1.5.3 (maybe 1.5.1 I can remember) that other templates may not have made available. At one point the https pages were not provided canonical links by design.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I added that and as expected it works correctly. Thanks
Unfortunately this was created long before I got here. This customer does not use zencart as a shopping platform. They do everything via quotes, e-mail, and phone. The links are hardcoded directly into each product description in tables. Each product has a table which contains a link in each row to the request for quote page and passing a unique item number and the current product id in a query string. In other words I'm stuck with this implementation.The other fix is to not hardcode links into files... use zen_href_link style functions. For pages being directed to this type functionality where information is expected to use https (when available) the zen_href_link should attempt to use SSL if it is available. By requesting the link to be generated with SSL, if the system is not setup to support then it won't be attempted and the redirect won't occur.
As for the changes made to the site, would verify that the canonical links are properly populated as supported by Zen Cart versions at least at and more recent to ZC 1.5.3 (maybe 1.5.1 I can remember) that other templates may not have made available. At one point the https pages were not provided canonical links by design.
A shame about having to hard code the links, but if nothing else and because they are in the description text, may I recommend that if they are or can be relative to the current store that they be entered that way: ie. instead of having http or https ://domain /subfolder etc... that they be relative to whatever the source code has for the base href tag... cuts down on a few things, but wouldn't have prevented the redirect from firing.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Bookmarks