Jump to content

otiz

Members
  • Posts

    27
  • Joined

  • Last visited

Posts posted by otiz

  1. Here is Fix 

    'delete_url' => self::$this->context->link->getAdminLink('AdminModules', false).'&id_cs_blog_post='.$id_cs_blog_post.'&updatecs_blog_post&token='.$this->token.'&deleteimagePost',
    

    replace with this

    'delete_url' => $this->context->link->getAdminLink('AdminModules', false).'&id_cs_blog_post='.$id_cs_blog_post.'&updatecs_blog_post&token='.$this->token.'&deleteimagePost',
    

    Just remove "self::"

  2. Kaper dobre si na to isiel ale programator nie si :)

     

    ma riadok 145 : miesto 

    <SymbolPrevodu>'.$row['id_order'].'</SymbolPrevodu>

    vypln

    <SymbolPrevodu>'.$cid['reference'].'</SymbolPrevodu> / alebo $cid['id_order']

     

    a na riadok 111 : dopln to reference

    SELECT `reference`,`id_customer`, `total_paid`

     

     

    Spravim to ako instalovatelny modul aj pre verziu 1.5 a jeho LITE verziu Vam sem vlozim zdarma po novom roku

    • Like 1
  3. Fox for bug on order-opc Prestashop 1.5.x -- Payments to carriers (v. 0.1)

     

    edit

    themes/template_site/js/order-opc.js

     

    add on line: 732

    updateCarrierSelectionAndGift();
    

     

    complete function:

    // Term Of Service (TOS)
    $('#cgv').click(function() {
     if ($('#cgv:checked').length != 0)
      var checked = 1;
     else
      var checked = 0;
    
    
     $('#opc_payment_methods-overlay').fadeIn('slow');
     $.ajax({
      type: 'POST',
      url: orderOpcUrl,
      async: true,
      cache: false,
      dataType : "json",
      data: 'ajax=true&method=updateTOSStatusAndGetPayments&checked=' + checked + '&token=' + static_token,
      success: function(json)
      {
    $('div#HOOK_TOP_PAYMENT').html(json.HOOK_TOP_PAYMENT);
    $('#opc_payment_methods-content div#HOOK_PAYMENT').html(json.HOOK_PAYMENT);
    $('#opc_payment_methods-overlay').fadeOut('slow');
    //fix
    updateCarrierSelectionAndGift();
      }
     });
    });
    

    • Like 1
  4. If you want more depth:

    edit category-tree-branch.tpl

     

    {foreach from=$node.children item=child}
    {if $child.id == $smarty.get.id_category}
     {assign var='childSelected' value='1'}
       {/if}
       {foreach from=$child.children item=child2}
     {if $child2.id == $smarty.get.id_category}
      {assign var='childSelected' value='1'}
     {/if}
        {foreach from=$child2.children item=child3}
      {if $child3.id == $smarty.get.id_category}
       {assign var='childSelected' value='1'}
      {/if}
     {/foreach}
       {/foreach}
    {/foreach}
    

  5. in AdminProducts.php insert

     

     

    <tr>

    <td class="col-left">'.$this->l('new_field:').'</td>

    <td class="translatable">';

     

    echo ' <div class="lang_3" style="float: left;">

    <input size="55" type="text" id="new_field" name="new_field"

    value="'.$this->getFieldValue($obj, 'new_field').'" />

     

    </div>';

    echo '

    </td>

    </tr>

     

     

    And in classes/products.php define

     

    can in line 150

     

     

    /** @var string new_field */

    public $new_field;

     

    Do not change PostProcess() in AdminProducts.php

  6. Zdravím, nevie niekto kde a akím spôsobom sa ukladá nastavenie pdf? v Clercovom prípade je to bod 3. V administrácii nastavite PDF na kódovanie CP1250 a font na arialmt (Natavenia>PDF)

    Potrebujem to videť resp. zmeniť bez administrácie
    ???

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More