Jump to content

Changer image blockcart


Recommended Posts

Bonjour,

je souhaite modifier le petit caddie qui apparaît avec le module blockcart. J'ai suivi les conseils suivants mais malgré tout mon image ne s'affiche pas. Je ne suis pas sur le thème d'origine.

Merci par avance pour vos réponses.

 

slykereven, on 21 May 2014 - 2:08 PM, said:snapback.png

Bonjour,

 

D'abord pour enlever le caddie il faut commenter le fichier blockcart.css :

  1. .shopping_cart > a:first-child:before {
  2. /*content: "\f07a";*/

Ensuite pour insérer une image, il faut rajouter le chemin suivant dans le fichier blockcart.tpl :

<!-- MODULE Block cart -->
{if isset($blockcart_top) && $blockcart_top}
<div class="col-sm-12{if $PS_CATALOG_MODE} header_user_catalog{/if}">
{/if}
    
<div class="shopping_cart">
        <a href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my shopping cart' mod='blockcart'}" rel="nofollow">
        
<img src="/img/imagedupanier.png" id="imagedupanier">

Je rajoute un ID pour pouvoir intervenir facilement dessus en CSS après  :)

 

Link to comment
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
×
×
  • Create New...