Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

User dynamic loaded blocks
(1 viewing) (1) Guest
Magento E-Commerce accelerator component.
  • Page:
  • 1

TOPIC: User dynamic loaded blocks

User dynamic loaded blocks 13 years, 3 months ago #23873

Hi,

I am trying to update the User dynamic loaded blocks section but it doesn't work.
This is what needs be to loaded (a mini cart on the top of my menu which is now removed when I use M-turbo)

<block type="checkout/cart_sidebar" name="cart_menu" as="cart_menu" template="checkout/cart/top_cart.phtml"/>
<block type="checkout/cart_sidebar" name="mini_cart" as="mini_cart" template="checkout/cart/mini_cart.phtml"/>

how do I load this with m-turbo in the dynamic loaded blocks?

Thanks for the reply

SAnder
The topic has been locked.

Re: User dynamic loaded blocks 13 years, 3 months ago #23918

  • jich
  • OFFLINE
  • Posts: 254
Hello Sander,

The block "cart sidebar" is recognized by class name "Mage_Checkout_Block_Cart_Sidebar". This block is really represented type "checkout/cart_sidebar" in layout. System watches creating blocks. In time of creating specified blocks are replaced special blocks; insantces of Artio_MTurbo_Block_Ajax, which prints special div container into html. Browser then loaded blocks by Ajax and puts them into special created containers.

If you lost cart menu, then the javascript probably fails. Check that in the head of your html is placed javascript "skin/frontend/default/default/js/mturbo.js", please. If not, it's possible that you use another design package. In this case, copy that javascript into path which will respect your design package.

If javascript is loaded or instructions described above doesn't help you, then you try to make follows test. You put into your browser follows url: YOUR_SITE/mturbo?identifier[]=cartsidebar. If you see information about cart, then javascript isn't working. If you see nothing, then mturbo ajax handler isn't working. In this case contact us by email ( This e-mail address is being protected from spambots. You need JavaScript enabled to view it or This e-mail address is being protected from spambots. You need JavaScript enabled to view it ). We will look at issue more deeply.
ARTIO Support Team
The topic has been locked.

Re: User dynamic loaded blocks 13 years, 1 month ago #24927

Hi, I read this thread so I have a similar problem: is it possible that I corrected cache the cart block but if I have something into the cart and I try to remove it with the standard button (anchor) I get the redirect to MY_SITE/mturbo?identifier[]=cartsidebar which is a page with only the cart html.

Should I change the remove button javascript (anchor link) with a custom ajax request?

Thanks
The topic has been locked.

Re: User dynamic loaded blocks 13 years, 1 month ago #24982

  • jich
  • OFFLINE
  • Posts: 254
Hello anc.m,

Which version do you use? This bug has been fixed since version 1.2.1.

Do you use any extension which change the functionality of the cart? It is possible that there is collision. You can try to do a little test:

1) Copy the file 'Renderer.php' (extract it from attachments) into 'app/code/local/Artio/MTurbo/Block/Checkout/Cart/Item/Renderer.php' and overwrite it


File Attachment:

File Name: Renderer.php.zip
File Size: 1 KB



2) Enable the Magento system log. (System/Configuration/Advanced/Developer/Log settings)
3) Cache some page by MTurbo.
4) Look into the system log file (var/log/system.log)

If there is no record from MTurbo then block isn't rewrited and probably there is collision with other extension. In this case it needs to find a collision extension a fix it.

If you will have any problem, we are ready to help you.

jich
ARTIO Support Team
Last Edit: 13 years, 1 month ago by jich.
The topic has been locked.

Re: User dynamic loaded blocks 12 years, 10 months ago #27423

Hello,

I have still the same issue with dynamic loaded blocks. I've already tried this:
------
If javascript is loaded or instructions described above doesn't help you, then you try to make follows test. You put into your browser follows url: YOUR_SITE/mturbo?identifier[]=cartsidebar. If you see information about cart, then javascript isn't working.
------

and yeah..I can see information about cart..result? Javascript isn't working. But what I have to do for fixing the javascript??

Thanks
The topic has been locked.

Re: User dynamic loaded blocks 12 years, 10 months ago #27431

  • jich
  • OFFLINE
  • Posts: 254
Dear Abigail,

Firstly, check that javascript (mturbo.js) is declared in the HTML head of your page. There should be something like

 
<script type="text/javascript" src="http://eshopdemo.tramin.artio.cz/skin/frontend/blank/default/js/mturbo.js" ></script>
 
.

There should be also follows statements, for example

 
<script type="text/javascript">if (typeof(mturboloader)!='undefined') mturboloader.addBlockRequest('pollsidebar');</script>
<script type="text/javascript">if (typeof(mturboloader)!='undefined') mturboloader.addBlockRequest('comparesidebar');</script>
mturboloader.loadBlocks((location.protocol+"//eshopdemo.tramin.artio.cz/english/mturbofrontend"), "aHR0cDovL2VzaG9wZGVtby50cmFtaW4uYXJ0aW8uY3ovZW5nbGlzaC8_X19fU0lEPVU,");</script>
 
.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
Moderators: pedu
User Login Empty