Jump to content

webmasterdevil

Members
  • Posts

    6
  • Joined

  • Last visited

About webmasterdevil

  • Birthday 09/14/1977

Profile Information

  • Location
    Portugal
  • Activity
    Developer

Recent Profile Visitors

270,041 profile views

webmasterdevil's Achievements

Newbie

Newbie (1/14)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

2

Reputation

  1. I have the same problem here, but I need to sort the addresses by DESC. Anyone? Thanks
  2. Maybe you want to try check the structure of tables ps_image and ps_image_shop and alter the cover images index to normal, instead of unique. I did that and problems solved
  3. Boas a todos, achei por bem partilhar esta alteração de código para a pesquisa livre no módulo csquicksearch para o prestashop. Acontece que quando o utilizador escreve demasiado rápido os pedidos ajax atropelam-se, sendo que começa a comer letras à palavra pesquisada. Segue a função $ajaxsearch modificada que espero resolver problemas idênticos: /modules/csquicksearch/blocksearch-instantsearch.tpl {if $ajaxsearch} <script type="text/javascript"> // <![CDATA[ var typingTimer; //timer identifier var doneTypingInterval = 500; //time in ms for delay var $input = $('#csquicksearch'); //on keyup, start the countdown $input.on('keyup', function () { clearTimeout(typingTimer); typingTimer = setTimeout(doneTyping, doneTypingInterval); }); //on keydown, clear the countdown $input.on('keydown', function () { clearTimeout(typingTimer); }); //user is "finished typing," do something function doneTyping () { //do something if($input.val().length >= {$nbLeast}){ //stopInstantSearchQueries(); instantSearchQuery = $.ajax({ url: '{$csquicksearch_path}', data: { ajaxSearch: 1, id_lang: {$cookie->id_lang}, q: $input.val() }, delay : 700, dataType: 'html', type: 'POST', success: function(data){ if($("#csquicksearch").val().length >= {$nbLeast}) { $('#show_result').html(data); ajaxCart.refresh(); } } }).then(function(results){ $("ul.thumb_list").carouFredSel({ auto: false, responsive: true, width: '100%', height : 'variable', prev: '#prev_quicksearch', next: '#next_quicksearch', swipe: { onTouch : true }, items: { width: 90, height : 105, visible: { min: 1, max: {$nb} } }, scroll: { items : 1 , // The number of items scrolled. direction : 'left' } }); }); } else if ($input.val().length == 0) $('div.result').remove(); else { text = "{l s='Number of characters at least are ' mod='csquicksearch'} {$nbLeast}"; html = '<div class="result">' + text + '</div>'; $('div#show_result').html(html); } } // ]]> </script> {/if}
  4. I just correct this changing the line 247 from \controllers\admin\AdminCmsController.php from: 'href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token, to 'href' => self::$currentIndex.'&add'.$this->table.'&id_cms_category='.(int)$this->id_cms_category.'&token='.$this->token, I guess the problem was in "&"... work for me
  5. Hi, I resolve this error by enabling dev mode on config/defines.inc.php: define('_PS_MODE_DEV_', true); After this I discover that my problem was the field date_add from table categories that is required. Remove the requirement from DB table, and everything works fine. Hope it helps
×
×
  • Create New...