upload vp miniature in adminCategory

This commit is contained in:
Marion Muszynski 2016-08-30 13:47:42 +02:00
parent 0fa7a8b036
commit a96b0018c0
4 changed files with 648 additions and 596 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,8 @@
<img src="{$link->getCatImageLink($category->link_rewrite, $category->id, 'cover_vp')}" alt="{$category->name}" /> <img src="{$link->getCatImageLink($category->link_rewrite, $category->id, 'cover_vp')}" alt="{$category->name}" />
<div class="logo_cat"> <div class="logo_cat">
<img src="{$base_dir_ssl}modules/privatesales/img/{$sale->id}/thumb_{$cookie->id_lang}.jpg" /> {* <img src="{$base_dir_ssl}modules/privatesales/img/{$sale->id}/thumb_{$cookie->id_lang}.jpg" /> *}
<img src="{$base_dir_ssl}img/c/{$category->id}_thumb_vp.jpg" alt="{$category->name}" />
</div> </div>
{if !$consumable} {if !$consumable}
<div class="delivery_delay_left"> <div class="delivery_delay_left">

View File

@ -12,7 +12,7 @@ class ProductController extends ProductControllerCore {
'HOOK_PRIVATESALES_PRODUCT' => Module::hookExec('privatesales_product', array('sale' => $sale)), 'HOOK_PRIVATESALES_PRODUCT' => Module::hookExec('privatesales_product', array('sale' => $sale)),
'is_sale_home' => ($sale? $sale->id_category == $id_category: FALSE), 'is_sale_home' => ($sale? $sale->id_category == $id_category: FALSE),
)); ));
// assign date estimation from sale delay // assign date estimation from sale delay
if (Module::isInstalled('privatesales_delay')) { if (Module::isInstalled('privatesales_delay')) {
if (!class_exists('SaleDelay')) { if (!class_exists('SaleDelay')) {

View File

@ -204,7 +204,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus
<div class="title_block"> <div class="title_block">
<div class="content"> <div class="content">
<div class="logo_vente"> <div class="logo_vente">
<img src="{$base_dir_ssl}modules/privatesales/img/{$sale->id}/thumb_{$cookie->id_lang}.jpg" height="80px"/> <img src="{$base_dir_ssl}img/c/{$sale->id_category}_thumb_vp.jpg" height="80px"/>
</div> </div>
{if $sale} {if $sale}
<div class="psales"> <div class="psales">
@ -314,14 +314,14 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus
{foreach from=$groups key=id_attribute_group item=group} {foreach from=$groups key=id_attribute_group item=group}
{if $group.attributes|@count} {if $group.attributes|@count}
<p> <p>
<label for="group_{$id_attribute_group|intval}">{$group.name|escape:'htmlall':'UTF-8'} <label for="group_{$id_attribute_group|intval}">{$group.name|escape:'htmlall':'UTF-8'}
{if $id_attribute_group == '795' || {if $id_attribute_group == '795' ||
$id_attribute_group == '75'} $id_attribute_group == '75'}
<span class="help_tailles tailles">&nbsp;</span> <span class="help_tailles tailles">&nbsp;</span>
{/if} {/if}
: :
</label> </label>
{if $id_attribute_group == '795' || $id_attribute_group == '75'} {if $id_attribute_group == '795' || $id_attribute_group == '75'}
<div class="info_tailles" style="display:none"> <div class="info_tailles" style="display:none">
<p> <p>
@ -329,8 +329,8 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus
</p> </p>
</div> </div>
{/if} {/if}
{assign var="groupName" value="group_$id_attribute_group"} {assign var="groupName" value="group_$id_attribute_group"}
@ -340,7 +340,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus
<option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option> <option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option>
{/foreach} {/foreach}
</select> </select>
</p> </p>
{/if} {/if}
{/foreach} {/foreach}