I would love to use for example text I created in a html module or in an information page of the site.
Or is the only way hard coded in the html?
1. refreshing itself (mean display always another text - like in a loop)
2. text which is displayed only once per page call - is static
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
(1)
Then load the information text via information model inside the controller you want/need.
Then assign the content to a variable and call that inside the template.
When you know the information id it is easy.
(2)
If not, create a small new module and select there the text you want.
If you do it this way, you can change easyily the text whenever there is a need.
Beside using such a new module, you can load everything you need in the output controller and template by the corresponding module controller (= 1 line in the target controller)
(3)
Or add a new event and call that.
You see, several ways to get what you want.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
{{ header }}
<div id="information-information" class="container">
<ul class="breadcrumb">
{% for breadcrumb in breadcrumbs %}
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
{% endfor %}
</ul>
<div class="row">{{ column_left }}
{% if column_left and column_right %}
{% set class = 'col-sm-6' %}
{% elseif column_left or column_right %}
{% set class = 'col-sm-9' %}
{% else %}
{% set class = 'col-sm-12' %}
{% endif %}
<div id="content" class="{{ class }}">{{ content_top }}
<h1>{{ heading_title }}</h1>
{{ description }}{{ content_bottom }}</div>
{{ column_right }}</div>
</div>
{{ footer }}
As suggested in my former answer.
Anything else result in custom, paid job.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Code: Select all
$information_id = 9;
$this->load->model('catalog/information');
$information = $this->model_catalog_information->getInformation($information_id);
if ($information) {
$data['information_title'] = $information['title'];
$data['information_description'] = $information['description'];
} else {
$data['information_title'] = '';
$data['information_description'] = '';
}
Code: Select all
{{ information_title }}
{{ information_description }}
Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount
Users browsing this forum: No registered users and 15 guests