Jump to content

Module Displaying Duplicate Content with Multistore


Recommended Posts

Hello!

I am new with Prestashop and SQL so I'm reaching out for a little assistance.  I've migrated from another platform to a multistore setup and one of the modules I am using is displaying a brand image twice in the slider.  From what I understand I need to adjust the TPL to tell it to only pull manufacturers that are assigned to the store ID that is live.

I've included the code as well as an image of what the problem is. 

Any help would be greatly appreciated!  I've been building for the last month or so and this is one of my final issues to resolve ;)  Thanks!
 


{if $fieldbrandslider.manufacturers}
    <div id="fieldbrandslider" class="block horizontal_mode title_center">
        <div class="container">
                <div class="field-brand">
                    {if ($fieldbrandslider.mainTitle != '')}
                        <h4 class="title_block title_font"><a href="{$link->getPageLink('manufacturer')|escape:'html'}"><span class="title_text">{$fieldbrandslider.mainTitle}</span></a></h4>
                    {/if}
                     <div class="row">
                        <div id="fieldbrandslider-manufacturers" class="grid carousel-grid owl-carousel">
                            {foreach $fieldbrandslider.manufacturers as $manufacturer}
                                <div class="item">
                                    <a class="img-wrapper" href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$manufacturer.name|escape:'htmlall':'UTF-8'}">
                                        <img class="img-responsive" src="{$img_manu_dir}{$manufacturer.id_manufacturer|escape:'htmlall':'UTF-8'}-m_scene_default.jpg" width="{$manufactureSize.width}" height="{$manufactureSize.height}" alt="{$manufacturer.name|escape:'htmlall':'UTF-8'}" />
                                        {if isset($fieldbrandslider.mantitle) AND $fieldbrandslider.mantitle == 1}<br/>
                                            <p>{$manufacturer.name|escape:'htmlall':'UTF-8'}</p>
                                        {/if}
                                    </a>
                                </div>
                            {/foreach}
                        </div>
                </div>
        </div>
        </div>
    </div>
    {if ($fieldbrandslider.maxitem)}{addJsDef fieldbs_maxitem=$fieldbrandslider.maxitem}{else}{addJsDef fieldbs_maxitem=6}{/if}
    {if ($fieldbrandslider.minitem)}{addJsDef fieldbs_minitem=$fieldbrandslider.minitem}{else}{addJsDef fieldbs_minitem=2}{/if}
    {if ($fieldbrandslider.autoScroll)}{addJsDef fieldbs_autoscroll=$fieldbrandslider.autoScrollDelay}{else}{addJsDef fieldbs_autoscroll=false}{/if}
    {if ($fieldbrandslider.pauseOnHover)}{addJsDef fieldbs_pauseonhover=true}{else}{addJsDef fieldbs_pauseonhover=false}{/if}
    {if ($fieldbrandslider.pagination)}{addJsDef fieldbs_pagination=true}{else}{addJsDef fieldbs_pagination=false}{/if}
    {if ($fieldbrandslider.navigation)}{addJsDef fieldbs_navigation=true}{else}{addJsDef fieldbs_navigation=false}{/if}
{/if}

post-1243227-0-90605900-1478813654_thumb.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...