Jump to content

rraulinio

Members
  • Posts

    10
  • Joined

  • Last visited

Profile Information

  • First Name
    Raul
  • Last Name
    mircea

rraulinio's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Put in footer.tpl in your theme the following: $(window).load(function() { $('#layered_form span.layered_close a').trigger('click'); }); Explication: when page is fully loaded, it will perform the trigger, which "clicks" on all the minus signs that collapses the blocks. And then try accessing a category (with "#" at the end). It will work, just like it worked for me!
  2. Thanks for the solution. But you only need these lines for the images to work: rewrite ^/([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2$3.jpg last; rewrite ^/([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2.jpg last; rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$1$2.jpg last; rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$1$2$3.jpg last; rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$1$2$3$4.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg last; rewrite ^/c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg last; rewrite ^/c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /img/c/$1.jpg last; rewrite ^/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg last;
  3. Hello community, I have a really serious question. How I can disable the option of "auto-enabling" blocks in hooks when a theme is enabled? For example, I have the footer based on only one block, coming from a module. So, when I switch to a new theme, the theme adds its blocks in footer hook, resulting in a total mess. I just want to remove this option, so (in this example) the footer hook remains the same. Thanks!
  4. Hello community, I have a big problem that I don't understand with my prestashop copy. AJAX started giving errors all the time and I really don't know what's the cause. It works, but it returns erros. For example, on pressing the "add to cart" button, it returns error, but if you refresh the page you will see that the product was added to cart. Another example: when pressing the registration button, it returns error. Link: #removed Why is this happening? What can I do? PS: I tried by reinstalling the default theme, nothing.
×
×
  • Create New...