Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: HTML Block use absolute addressing  (Read 4341 times)

Offline helperbee

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +2/-0
    • View Profile
HTML Block use absolute addressing
« 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.

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4250
  • Karma: +277/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: HTML Block use absolute addressing
« Reply #1 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.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

 

Powered by SMFPacks Social Login Mod