Answer the question
In order to leave comments, you need to log in
How to correctly add a specific banner to a specific category?
ocStore 2.1.0.2
In general, I'll rephrase the question:
Situation:
The schema applies to all categories. Banner, respectively.
Task:
Display your banner for the category so that the design does not change.
Solution:
To apply your schema for a category, you need to bind it through the "Design" tab.
And do not forget to bind all the necessary modules to the schema .
<div id="slideshowmag<?php echo $module; ?>" class="owl-carousel" style="opacity: 1;">
<?php foreach ($banners as $banner) { ?>
<div class="item">
<?php echo html_entity_decode($banner['description'], ENT_QUOTES, 'UTF-8'); ?>
<?php if ($banner['link']) { ?>
<a href="<?php echo $banner['link']; ?>"><img src="<?php echo $banner['image']; ?>" alt="<?php echo $banner['title']; ?>" class="img-responsive" /></a>
<?php } else { ?>
<img src="<?php echo $banner['image']; ?>" alt="<?php echo $banner['title']; ?>" class="img-responsive" />
<?php } ?>
</div>
<?php } ?>
</div>
Answer the question
In order to leave comments, you need to log in
Of course, it is correct to do it through the Design tab.
You should have a design scheme for all categories, most likely already.
For a different category, you need to create a new schema. Copy all the modules there, only replace the slider module with another one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question