Posted in

Módulos changeprice y changestock prestashop

“Módulos” desarrollados por mi, se abren en popup.

Añadir pestañas al menú:
admin/themes/template/header.tpl línea 204

<ul id="menu">
<link href="../js/jquery/plugins/fancybox/jquery.fancybox.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="../js/jquery/plugins/fancybox/jquery.fancybox.js"></script>
<script>
var domini = 'https://www.mydelishop.es';
function changePrice() {
jQuery.fancybox({
'modal' : true,
'content' : "<input style=\"margin:3px;padding:0px;float:right;\" type=\"button\" onclick=\"jQuery.fancybox.close();\" value=\"Cerrar\"><br /><iframe width='520' frameborder='0' marginheight='0' marginwidth='0' height='600' src='" + domini + "/modules/4changeprice/privat/interface.php?token=fb3dd9cc8b31e9ed96cb45831e6f38642a23a5ba3bb9eeec2a1828c673953abf'></iframe>"
});
}
function changeQuantity() {
jQuery.fancybox({
'modal' : true,
'content' : "<input style=\"margin:3px;padding:0px;float:right;\" type=\"button\" onclick=\"jQuery.fancybox.close();\" value=\"Cerrar\"><br /><iframe width='520' frameborder='0' marginheight='0' marginwidth='0' height='600' src='" + domini + "/modules/4changequantity/privat/interface.php?id_shop={(int)Context::getContext()->shop->id}{if $employee->id_profile == 1}&tipo=superadmin{/if}&token=fb3dd9cc8b31e9ed96cb45831e6f38642a23a5ba3bb9eeec2a1828c673953abf'></iframe>"
});
}
</script>
{if !$tab}
<div class="mainsubtablist" style="display:none">
</div>
{/if}
{foreach $tabs AS $t}
{if $t.active}
                {if ($employee->id_profile == 2 || $employee->id_profile == 3) && $t.id_tab == 15}
                <!--oscar-->
                {else}
<li class="submenu_size maintab {if $t.current}active{/if}" id="maintab{$t.id_tab}">
<span class="title">
<img src="{$t.img}" alt="" />{if $t.name eq ''}{$t.class_name}{else}{$t.name}{/if}
</span>
<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}
                            {if $t.id_tab == 9 && $employee->id_profile == 1}
                                <li><a onclick="changePrice()" style="cursor:pointer;">Cambio masivo de precios</a></li>
                            {/if}
                            {if $t.id_tab == 20}
                                <li><a onclick="changeQuantity()" style="cursor:pointer;">Carga de stocks</a></li>
                            {/if}
</ul>
</li>
{/if}
{/if}
{/foreach}
</ul>

modules

Deixa un comentari

L'adreça electrònica no es publicarà. Els camps necessaris estan marcats amb *


The reCAPTCHA verification period has expired. Please reload the page.