Jump to content

Change add to cart icon on Prestashop 1.6


and78

Recommended Posts

Hi all!! 

 

I need to change the add_to_cart icon; I follow the instructions from Milosz
 
 
and I have now a backgroung image, but it didnt replace the original cart icon, and the cart icon its in front on my new icon
 
How can I remove the original icon or send it backwards from my new image??
 
Thanks in advance!!!  :)
Link to comment
Share on other sites

so, this template to generate add to cart button on product page use two things:

- css styles

- font awesome icon

n10bbLX.png

 

button contains 2 things:

 

<button> code

<span> code

if1NbbR.png

 

::before is an icon of cart: product.css 434

.box-info-product .exclusive:before {
font-family: "FontAwesome";
position: absolute;
top: 0;
left: 0;
bottom: 0;
color: white;
font-size: 25px;
line-height: 47px;
text-shadow: 0 1px #015883;
content: "\f07a";
z-index: 2;
width: 51px;
text-align: center;
border: 1px solid #06b2e6;
-webkit-border-radius: 5px 0 0 5px;
-moz-border-radius: 5px 0 0 5px;
-ms-border-radius: 5px 0 0 5px;
-o-border-radius: 5px 0 0 5px;
border-radius: 5px 0 0 5px;
}

<span> add to cart </span>

.box-info-product .exclusive span {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
font-weight: 700;
font-size: 20px;
line-height: 22px;
border-top: 1px solid #06b2e6;
border-right: 1px solid #06b2e6;
border-left: 1px solid #06b2e6;
border-bottom: 1px solid #06b2e6;
text-shadow: 0 1px #015883;
padding: 12px 36px 14px 60px;
color: white;
display: block !important;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}

product.css 477

Link to comment
Share on other sites

  • 3 weeks later...
  • 10 months later...
  • 3 months later...
  • 2 years later...
  • 8 months later...

Hi!

Does anyone knows wich is the path to the source code of the "Cart icon" in the desktop version of the website, so I can change the cart icon (font awesome) with this icon (Google material icon):  <i class="material-icons">shopping_basket</i> ?

I've put the "Google material icons" source code in my theme "header", I've managed to change the "User" and "Cart icon" in the mobile version of my website butI don't know how wich is the path to the file that contains the source code of te "Cart icon" from desktop version of the theme. I am using PrestaShop 1.6.1.23 + arehouse theme.

Thank you in advance!

 

capture-20181111-230439.png.a36c47b18ec7b1553f673e92e3e2c078.png

Link to comment
Share on other sites

19 hours ago, mdekker said:

/themes/warehouse/modules/blockcart/blockcart.tpl

Hi! I've changed all the <i class="icon..............."></i> elements from the "blockart.tpl" file with this code <i class="material-icons">shopping_basket</i> and I haven't seen any change :(((( Am I missing something? Thank you!

Edited by Alexandra-Ionela
Wrong translate (see edit history)
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...