Skip to content

Instantly share code, notes, and snippets.

@standa
Last active December 24, 2015 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save standa/6747735 to your computer and use it in GitHub Desktop.
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
<?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