|

loading related products using ajax
Posted 29 March 2012 - 12:54 PM #1
I have a block on the product page which shows related products using hot deal template.
I want this block to load as an ajax request and not as a part of the page, so that the page loads faster.
Can anyone show me a similar example or point me in the right direction.
regds,
Shikhar
Posted 30 March 2012 - 02:04 AM #2
You'd have to create a custom block. You'd then use jQuery to go back to your server and get the content. My guess is that this will be VERY visually unappealing to your customers, but you could make the block hidden until it's filled. But then having a block appear after the user thinks the page load is done might be surprising to them too.
EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.
Posted 30 March 2012 - 01:15 PM #3
Yes this is what I want to do ? How to create a custom block and add jquery to it ?
When I create a block from blocks manager, all I see are standard non-jquery options.
regds,
Shikhar
Posted 31 March 2012 - 12:16 AM #4
skins/<your_sking>/customer/addons/my_changes/blocks/my_block.tpl
EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.
Posted 04 April 2012 - 02:47 PM #5
Worked just the way I wanted.
I wonder why this isn't mentioned in the developer doc or if mentioned how'd I missed it !!
Posted 04 April 2012 - 06:49 PM #6
EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.
Posted 05 April 2012 - 08:33 AM #7
Posted 05 April 2012 - 06:18 PM #8
EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.
Posted 05 April 2012 - 10:42 PM #9
Anyways forget it and thanks once again !!
Posted 07 December 2012 - 06:55 AM #10
I have a 5 blocks on the home page.
One block shows best sellers products using my custom template. and others are products template (like grid, scroller etc.).
I want to load my page faster, So I want to load all these blocks using an Ajax.
Can anyone help me or give some idea for this.
Posted 07 December 2012 - 08:36 AM #11
EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.
Posted 07 December 2012 - 10:20 AM #12
thanks for your reply,
Ok, in other way it is possible to load all the product images of the index page after the index page loads.? using any jQuery trick.
I think that the loading of the products images are cause of the slow page load. every time it sends request for image and increase the page load time.
Should i go with this trick..?? can this trick decrease the page load time?
Is it feasible..? If yes, then can you give me any link or some bit of code for that.
Posted 07 December 2012 - 09:06 PM #13
EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.
Posted 19 May 2018 - 04:02 AM #15
I have an ajax request which runs once in every minute. Am using ceAjax function. The problem is, the loader is poping up everytime which I don't want. I want to make the Ajax request silent. Is there a way to do that?
Posted 19 May 2018 - 05:39 PM #16
Depends on what you ajax request is doing. You can always just use standard jQuery if you don't need it to run the template editor.
EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.