Jump to content

theme file for admin catalog


Recommended Posts

admin/themes/default/template/header.tpl

 

you've got there something like:

 

<ul id="menu">
  {if !$tab}
   <div class="mainsubtablist" style="display:none">
   </div>
  {/if}
  {foreach $tabs AS $t}
   {if $t.active}
 <li class="submenu_size maintab {if $t.current}active{/if}" id="maintab{$t.id_tab}">
  <a href="#" class="title">
   <img src="{$t.img}" alt="" />{if $t.name eq ''}{$t.class_name}{else}{$t.name}{/if}
  </a>
  <ul class="submenu">
   {foreach from=$t.sub_tabs item=t2}
    {if $t2.active}
	 <li><a href="{$t2.href|escape:'htmlall':'UTF-8'}">{if $t2.name eq ''}{$t2.class_name}{else}{$t2.name|escape:'htmlall':'UTF-8'}{/if}</a></li>
    {/if}
   {/foreach}
  </ul>
 </li>
   {/if}
  {/foreach}
 </ul>

 

and this is menu

Link to comment
Share on other sites

sir but this is tpl for header I think I need the theme file for the product list in backoffice (catalog)

its output looks like

<table id="product" class="table  product" cellpadding="0" cellspacing="0" style="width: 100%; margin-bottom:10px;">
 <colgroup><col width="10px">
	   <col width="20px">
	   <col width="70px">
	   <col>

Link to comment
Share on other sites

  • 4 weeks later...

Hi Sir,

 

I Want the admin toolbar in customer login side, please tell me the code where we need to change this?

 

hello, if it is possible - please create new thread with your question. YOu also need to describe much more what you exactly expect. Im waiting for your new thread :-) regards

Link to comment
Share on other sites

  • 1 month later...
sir but this is tpl for header I think I need the theme file for the product list in backoffice (catalog) its output looks like
 

 

I am also looking for this file.. and I am having troubles looking for it, can anyone please help.

-thanks in advance..

Link to comment
Share on other sites

_ADMIN_DIR_/themes/default/template/helpers/list/list_content.tpl

 

Thank you Sir, found what I was looking for, I have one last question hopefully this is still the proper thread. When i look in to list of all products, I see 6 buttons 2 for each edit delete and duplicate.. how is this possible? but when i look into the list_content.tpl , there is only one action for the button.

Edited by jahyax (see edit history)
Link to comment
Share on other sites

you've got "action" buttons defined in the products controller (admin)

 

controllers/admin/AdminProductsController.php

 

in the __construct() function you've got:

 $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));

 

 

as i probably said, it's not as simple as it seems, because prestashop is based on object models, so list_content.tpl is related to all objects, not only products!

Link to comment
Share on other sites

<p>

you&#39;ve got available &quot;actinon&quot; buttons defined in the products controller (admin) controllers/admin/AdminProductsController.php in the __construct() function you&#39;ve got:
 $this->bulk_actions = array(&#39;delete&#39; => array(&#39;text&#39; => $this->l(&#39;Delete selected&#39;), &#39;confirm&#39; => $this->l(&#39;Delete selected items?&#39;))); 

as i probably said, it&#39;s not as simple as it seems, because prestashop is based on object models, so list_content.tpl is related to all objects, not only products!

</p>

 

wow! thank you for the insight.. ../AdminProductsController.php <<-- this file, i know I have done something because i made an override on this controller.

 

thank you for pointing me into the right direction..

is there any other things or tips should i know, on removing the duplicate buttons without affecting the other list, because the other list are fine..

 

thanks in advance

Edited by jahyax (see edit history)
Link to comment
Share on other sites

well , if you want to edit buttons related to certain objects - don't edit .tpl files, just object definiton. everything depends on what you exactly want to chage, if products - edit object definition in products controller, if for exampe: categories, edit categories object definition in categories controller

Link to comment
Share on other sites

  • 1 month later...

Hi, i got a q related to this. Since we have very slow internet connection, it takes very long to load the product list because of images need to load over and over again (in the list i mean).

 

Can i temp. shut of the display of the images in the list, so loading goes faster.

 

I tried looking in the list_content.tpl file, but cant see the loading of the images in there.

Link to comment
Share on other sites

×
×
  • Create New...