AbanteCart Community

Shopping Cart Operations => Security => Topic started by: helperbee on July 26, 2015, 02:25:54 AM

Title: HTML Block use absolute addressing
Post by: helperbee on July 26, 2015, 02:25:54 AM
My host first needs the site to be live to enable HTTPS, but site is not ready and I don't want to take  down current site until this new one can replace it within hours.

Related to this, I have a couple related questions:
1) Where do I learn about the development workflow to understand the sequence of standing up an e-com site to see if I'm overlooking something?

2) Some of my HTML Blocks use absolute addressing to build menu links, this means I have http:// , and anticipate that these links will break once the site switches to HTTPS. What can I do to minimize the "URL fixing" I have to do after HTTPS is enabled. I don't see a way to make links relative when building Blocks.
Title: Re: HTML Block use absolute addressing
Post by: abantecart on July 26, 2015, 11:56:38 AM
1) Where do I learn about the development workflow to understand the sequence of standing up an e-com site to see if I'm overlooking something?
If you need AbanteCart technical docs, you can check in here:
http://www.abantecart.com/document_wiki/index.php/Main_Page

2) Some of my HTML Blocks use absolute addressing to build menu links, this means I have http:// , and anticipate that these links will break once the site switches to HTTPS. What can I do to minimize the "URL fixing" I have to do after HTTPS is enabled. I don't see a way to make links relative when building Blocks.
In AbanteCart all links are built dynamically in PHP code. In PHP code you need to use $this->html->getSecureURL() vs $this->html->getURL

If you build static HTML block and put HTML with absolute URLs, you can use just // instead of http or https.