0

I have custom module in product_view.
in customBlock so i want sort list by helpfulless or date.
how do it?

enter image description here

Note: i used ajax post to Customblock.php when change sortby. if refresh cache before change select it post value to Customblock.php. if don't refresh cache and change select it not run Customblock.php.

So any suggestion to i can sort custom list? thanks so muck.

2

I do not know why you want to load a newly generated block every time. That will normally be very resource consuming once you start seeing your traffic increase. It can even crash your system. Such a change will imply rebuilding your block and thus assembling the full page with all the cached blocks again every time a user hits your page.

I am guessing all you want to do is change one value for every user. My suggestion is you add an AJAX call to the web API and change it dynamically using AngularJs or jQuery whichever you feel more comfortable with.

Or explain more in detail what you want to achieve.

| improve this answer | |
  • yes in product view i have some product question. i wat sort it with some condition. I use ajax post. Any suggestion? @awavi. – xanka Dec 11 '15 at 3:52
  • I dont understand very well what you are trying to do – awavi Dec 11 '15 at 7:43
  • I edited question – xanka Dec 11 '15 at 7:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.