Jump to content

votre-evenement.be

Members
  • Posts

    18
  • Joined

  • Last visited

Profile Information

  • Activity
    Developer

Recent Profile Visitors

363 profile views

votre-evenement.be's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. si c'est pas trop tard ... :-) //dans product.js de ton thème function colorPickerClick(elt) { id_attribute = $(elt).attr('id').replace('color_', ''); id_attribute2 = $(elt).attr('name'); $(elt).parent().parent().children().removeClass('selected'); $(elt).fadeTo('fast', 1, function(){ $(this).fadeTo('fast', 0, function(){ $(this).fadeTo('fast', 1, function(){ $(this).parent().addClass('selected'); }); }); }); $(elt).parent().parent().parent().children('.color_pick_hidden').val(id_attribute); $(elt).parent().parent().parent().children('.color_pick_hidden2').html(id_attribute2); findCombination(); } et dans ton product.tpl //ajouter {assign var="default_colorpicker2" value=""} //après {assign var="default_colorpicker" value=""} ajouter tjs dans product.tpl //ajouter {$default_colorpicker2 = $colors.$id_attribute.name} //après {$default_colorpicker = $id_attribute} et ajouter //ajouter juste avant <input type="hidden" class="color_pick_hidden" name="{$groupName|escape:'html':'UTF-8'}" value="{$default_colorpicker|intval}" /> //cette ligne-ci <h3 class="color_pick_hidden2" name="{$groupName|escape:'html':'UTF-8'}">{$default_colorpicker2|escape:'html':'UTF-8'}</h3>
  2. Try this <!-- PRODUCTS --> {foreach $order_details as $order_detail} {cycle values=["color_line_even", "color_line_odd"] assign=bgcolor_class} <tr class="product {$bgcolor_class}"> <td class="product center"> {$order_detail.reference} </td> <td class="product left"> {if $display_product_images} <table width="100%"> <tr> <td width="15%"> {if isset($order_detail.image) && $order_detail.image->id} {$order_detail.image_tag} {/if} </td> <td width="5%"> </td> <td width="80%"> {$order_detail.product_name} </td> </tr> </table> {else} {$order_detail.product_name} {if Pack::isPack($order_detail.id_product)}{assign var=packItems value=Pack::getItemTable($order_detail.id_product, Configuration::get('PS_LANG_DEFAULT'))} {if $packItems|@count > 0} {foreach from=$packItems item=packItem} <br/>{$packItem.name|escape:'html':'UTF-8'} {l s='Quantity' pdf='true'}: {$packItem.pack_quantity} {/foreach} {/if} {/if} {/if} </td> <td class="product center"> {$order_detail.order_detail_tax_label} </td> {if isset($layout.before_discount)} .... :-)
  3. I supposed that not the perfect code but... {if Pack::isPack($order_detail.id_product)}{assign var=packItems value=Pack::getItemTable($order_detail.id_product, Configuration::get('PS_LANG_DEFAULT'))} {if $packItems|@count > 0} {foreach from=$packItems item=packItem} <br/>{$packItem.name|escape:'html':'UTF-8'} {l s='Quantity' pdf='true'}: {$packItem.pack_quantity} {/foreach} {/if} {/if} it's work
  4. Could you help me?? I tried this in invoice.product-tab.tpl: {$order_detail.packItems|@count} {if $order_detail.isPack} {foreach from=$order_detail.packItems item=packy} {Pack::getItems($order_detail.id_product, Configuration::get('PS_LANG_DEFAULT'))} {Pack::getItemTable($order_detail.id_product, Configuration::get('PS_LANG_DEFAULT'))} {/foreach} {/if} and return number of packItem and array and nothing else... Are you a suggestion? Thanks
  5. petit up please il y a bien ceci ==> https://www.prestashop.com/forums/topic/442177-group-product-details-in-invoice/ mais je n'y parviens pas
  6. What should I add to the invoice.product-tab.tpl file to recover the retail pack? Thanks
  7. Petite contribution :-) Pour savoir si un produit est toujours considéré comme nouveauté (Prestashop 1.6.0.14) Petite adaptation dans le fichier suivant: Racine/controllers/admin/AdminProductsController.php que vous copierez et collerez dans Racine/override/controllers/admin/AdminProductsController.php Ajout ligne +/- 264 $this->fields_list['datetime'] = array( 'title' => $this->l('Date'), 'width' => 130, 'type' => 'date', 'align' => 'right', 'filter_key' => 'a!date_add' ); ensuite: Copiez: Racine/admin/themes/default/template/helpers/list/list-header.tpl Racine/admin/themes/default/template/helpers/list/list-content.tpl Collez: Racine/override/controllers/admin/templates/products/helpers/list/list-header.tpl Racine/override/controllers/admin/templates/products/helpers/list/list-content.tpl ajout ligne +/- 294 list-header.tpl <th class="text-center">{l s='New'} {l s='Product'} </th> ajout ligne +/- 369 list-header.tpl <th class="text-center"> {assign var='nb_days_new_timestamp' value=Configuration::get('PS_NB_DAYS_NEW_PRODUCT')} {$nb_days_new_timestamp} {l s='Days'} </th> ajout ligne +/- 151 list-content.tpl <td class="text-center"> {assign var='nb_days_new_timestamp' value=Configuration::get('PS_NB_DAYS_NEW_PRODUCT')} {assign var='nb_days_new' value=60*60*24*$nb_days_new_timestamp} {if strtotime($smarty.now|date_format:'%d-%m-%Y %H:%M:%S')-strtotime($tr.datetime|date_format:'%d-%m-%Y %H:%M:%S') >$nb_days_new} {*30jours*} <i class="icon-times-circle icon-border" style="color:#e27c79;font-size: 2em;"></i> {else} <i class="icon-check-circle icon-border" style="color:#93cd60;font-size: 2em;"></i> {/if} </td> Pour terminer n'oubliez pas de recompiler BO -> paramètres avancés -> Performances -> SMARTY -> Enregistrer
  8. Bonsoir, la solution pour prestashop 1.6.0.14 : juste après "responsiveflagMenu = true;" dans votre-thème->js->modules->blocktopmenu->jsblocktopmenu.js ajouter: var positionElementInPage = $('.sf-menu').offset().top; $(window).scroll( function() { if ($(window).scrollTop() >= positionElementInPage) { // fixed $('.sf-menu').addClass("floatable"); } else { // relative $('.sf-menu').removeClass("floatable"); } } ); dans votre-thème->css->global.css ajouter : @media (min-width: 1200px) { .sf-menu.floatable { position: fixed; top: 0px; width: 1170px; } } @media (max-width: 1199px) { .sf-menu.floatable { position: fixed; top: 0px; width: 970px; } } @media (max-width: 991px) { .sf-menu.floatable { position: fixed; top: 0px; width: 750px; } } recompiler ne fait pas de mal et le tour est joué ;-) Bonne soirée
  9. Bonsoir, la solution pour prestashop 1.6.0.14 : juste après "responsiveflagMenu = true;" dans votre-thème->js->modules->blocktopmenu->jsblocktopmenu.js ajouter: var positionElementInPage = $('.sf-menu').offset().top; $(window).scroll( function() { if ($(window).scrollTop() >= positionElementInPage) { // fixed $('.sf-menu').addClass("floatable"); } else { // relative $('.sf-menu').removeClass("floatable"); } } ); dans votre-thème->css->global.css ajouter : @media (min-width: 1200px) { .sf-menu.floatable { position: fixed; top: 0px; width: 1170px; } } @media (max-width: 1199px) { .sf-menu.floatable { position: fixed; top: 0px; width: 970px; } } @media (max-width: 991px) { .sf-menu.floatable { position: fixed; top: 0px; width: 750px; } } recompiler ne fait pas de mal et le tour est joué ;-) Bonne soirée
  10. silentRun, on 02 Sept 2013 - 1:07 PM, said: Same question. Any help????
×
×
  • Create New...