Minibasket.tpl - problem with block

Hello!
I have some doubts about “minibasket.tpl” file and his block “widget_minibasket_total”.
This block is used in MODAL WINDOW and on BASKET BTN (somelike popup window) in top menu.
I want to overide this block with module. When i do this in MODAL WINDOW works OK (screen-b),

but on POPUP WINDOW it shows two time. One with my change and second with old version (screen-a).


In “minibasket.tpl” file we have line 139 with empty block.
Is it bug? Should line from 121 to 128 shold be into this block?
Or maybe here is other solution, js or something?

I think this empty block should be deleted.

so there is no any NICE soloution to overide it?

I think it’s a bug, you could try to workaround so that it is displayed only the first time, with css or with a method that sets a global variable, this would not really be a nice solution, but it may work.

For my overided “widget_minibasket_total.tpl” file I added:
[{if $_prefix == ‘modal’}] … [{/if}]
and it works as I want. :slight_smile:

1 Like