Last active
December 24, 2015 04:59
-
-
Save standa/6747735 to your computer and use it in GitHub Desktop.
Get an Information page content by ID set in the Admin Settings page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// @author standa | 2013-09-28 | get the return terms | |
// 1. load the model and get the page id | |
$this->load->model('catalog/information'); | |
// here the page_id is the setting from the Admin / Settings / Default Shop / Options | |
$page_id = $this->config->get('config_return_id') | |
// 2. get the the row from the information database | |
$information = $this->model_catalog_information->getInformationDescriptions($page_id); | |
// 3. here are the terms from the admin | |
// mind you must get a current language too | |
// and only the description column | |
$text_terms = htmlspecialchars_decode($information[(int)$this->config->get('config_language_id')]['description']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment