Hide a product editing menu at front store My Seller Account

In this board, we will periodically list various tips and tricks we find that may help in your use of PrestaShop. This will also include tips on the use of Agile modules. If you have a great tip, fix, or workaround for a PrestaShop feature, feel free to post it here...

Re: Hide a product editing menu at front store My Seller Acc

Postby premysl.lukes_4533 » Mon Dec 15, 2014 8:55 pm

Hi,

unfotunately that didnt worked for as the code is slightly different.

{foreach from=$product_menus item=menu}

<a class="list-group-item {if $product_menu==$menu.id}active{/if}" id="link-{$menu.name}"

href="{$link->getModuleLink('agilemultipleseller', 'sellerproductdetail'

, ['id_product'=>$id_product,'product_menu'=>$menu.id,'token'=>$token], true)}">{$menu.name}</a>

{/foreach}


premysl.lukes_4533
 
Posts: 2
Joined: Mon Dec 15, 2014 8:52 pm

Re: Hide a product editing menu at front store My Seller Acc

Postby premysl.lukes_4533 » Mon Dec 15, 2014 8:59 pm

Ok, got it. So for anybody in need the code looks like this now:

Code: Select all
         {foreach from=$product_menus item=menu}
            {if $menu.id !== 3 AND $menu.id !== 4}   

            <a class="list-group-item {if $product_menu==$menu.id}active{/if}" id="link-{$menu.name}"

            href="{$link->getModuleLink('agilemultipleseller', 'sellerproductdetail'

            , ['id_product'=>$id_product,'product_menu'=>$menu.id,'token'=>$token], true)}">{$menu.name}</a>
            
            {/if}
            
         {/foreach}

premysl.lukes_4533
 
Posts: 2
Joined: Mon Dec 15, 2014 8:52 pm

Previous

Return to Tips and Tricks for PrestaShop and Agile Modules

Who is online

Users browsing this forum: No registered users and 0 guests