Wednesday, December 25, 2013

How to edit slider images. Coin Slider in ZenCart

This tutorial will show you how to locate and edit slider images in ZenCart.


 


Locating slider


Usually the slider code could be found in includes\templates\theme###\common\tpl_main_page.php file.


You can use the search tool (CTRL+F) and search for the “slider” keyword.


The slider displays ZenCart banner groups. Each slide displays single banner group. The slide code is as follows:



<!-- BOF- BANNER #1 display -->
<?php
if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1))
if ($banner->RecordCount() > 0)
?>
<div id="bannerOne"><?php echo zen_display_banner('static', $banner); ?></div>
<?php


?>
<!-- EOF- BANNER #1 display -->

 



Where you can see the banner group ID – SHOW_BANNERS_GROUP_SET1


 


Editing slides


To change the banner images open ZenCart admin panel, go to Tools>Banners Manager.


zencart-edit-slider-1


Select any banner and click Edit. You can learn more about editing banners checking the detailed tutorial.



How to edit slider images. Coin Slider in ZenCart

No comments:

Post a Comment