Jump to content
Sign in to follow this  
ultraxa

probleme de rafraichissement de blockcart

Recommended Posts

bonjour

 

voici mon probleme , j'ai modifié mon block cart

par defaut lorsque je n'ai pas de produit dans le panier ,et que j'en rajoute un , la liste des produits ne se met pas a jour automatiquement, il faut que je fasse actualiser sur mon navigateur

 

voici le code de mon blockcart.tpl

et le fichier jquery est le meme que d'origine

{if $ajax_allowed}
<script type="text/javascript">
var CUSTOMIZE_TEXTFIELD = {$CUSTOMIZE_TEXTFIELD};
var customizationIdMessage = '{l s='Customization #' mod='blockcart' js=1}';
var removingLinkText = '{l s='remove this product from my cart' mod='blockcart' js=1}';
</script>
<script type="text/javascript" src="{$base_dir}modules/blockcart/ajax-cart.js"></script>
{/if}

<!-- MODULE Block cart -->
<div id="cart_block" class="block exclusive">


<div class="block_content">
<div id="cart_block_list" class="{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !$ajax_allowed || !isset($colapseExpandStatus)}expanded{else}collapsed{/if}">
 <p>
 <span {if $products} class="hidden"{/if} id="cart_block_no_products"></span>
    <span class="ajax_cart_quantity" {if $cart_qties <= 0}style=""{/if}>{$cart_qties}</span>
 <span class="ajax_cart_product_txt_s" {if $cart_qties <=1}style="display:none;"{/if}>{l s='products' mod='blockcart'} <br> dans votre panier </span>
 <span class="ajax_cart_product_txt" {if $cart_qties > 1}style="display:none;"{/if}>{l s='product' mod='blockcart'}&nbsp<br> dans votre panier </span>
 <span id="cart-buttons">{if $order_process == 'order'}<a href="{$link->getPageLink("$order_process.php", true)}" class="button_cart" title="{l s='Cart' mod='blockcart'}">{l s='Cart' mod='blockcart'}</a>{/if}</span>
 </p>

<div class="list_products" >
 <dl class="products">
 </dl>
</div>

<div id="cart-prices">
 {if $show_tax && isset($tax_cost)}
 <span>{l s='Tax' mod='blockcart'}</span>
 <span id="cart_block_tax_cost" class="price ajax_cart_tax_cost">{$tax_cost}</span>
 <br/>
 {/if}
 <span id="cart_block_total" class="price ajax_block_cart_total">{$Total} </span>
 <span>{l s='Total' mod='blockcart'}</span>
   <span>TTC</span>
</div>


{if $use_taxes && $display_tax_label == 1 && $show_tax}
 {if $priceDisplay == 0}
 <p id="cart-price-precisions">
 {l s='Prices are tax included' mod='blockcart'}
 </p>
 {/if}
 {if $priceDisplay == 1}
 <p id="cart-price-precisions">
 {l s='Prices are tax excluded' mod='blockcart'}
 </p>
 {/if}
{/if}

</div>
</div>
</div>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More