The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 05-22-2017, 12:00 PM
admin5153's Avatar
admin5153 admin5153 is offline
 
Join Date: Apr 2017
Posts: 0
Default Find product ID to hide add to bag button

Hello I would like hide the "ADD TO BAG" button
by the page of certain products only, I've read some posts
who explain it, this is the actual script who was suggested:

div.ecwid-productBrowser-ProductPage-XXXXXX div.ecwid-AddToBagButton {
display:none;
}

Where XXXXXX should be my product ID, I used this code but
the "add to bag" button is keeping show, I wanna ask is maybe the code
wrong or I just didn't enter the correct ID?
Going in my product page I get this url:

http://www.mywebsite.com/#!/Leaf-T-S...613/category=0

ID should be 84877613 right?
but if I put the following in my custom CSS it still show..

div.ecwid-productBrowser-ProductPage-84877613 div.ecwid-AddToBagButton {
display:none;
}


I really need help..
Ivan
  #2  
Old 05-23-2017, 07:30 PM
Wendy's Avatar
Wendy Wendy is offline
Ecwid Team
 
Join Date: Jun 2014
Posts: 1,122
Default

Quote:
Originally Posted by admin5153 View Post
Hello I would like hide the "ADD TO BAG" button
by the page of certain products only, I've read some posts
who explain it, this is the actual script who was suggested:

div.ecwid-productBrowser-ProductPage-XXXXXX div.ecwid-AddToBagButton {
display:none;
}

Where XXXXXX should be my product ID, I used this code but
the "add to bag" button is keeping show, I wanna ask is maybe the code
wrong or I just didn't enter the correct ID?
Going in my product page I get this url:

http://www.mywebsite.com/#!/Leaf-T-S...613/category=0

ID should be 84877613 right?
but if I put the following in my custom CSS it still show..

div.ecwid-productBrowser-ProductPage-84877613 div.ecwid-AddToBagButton {
display:none;
}


I really need help..
Ivan

Hi Ivan,

This is Wendy from Ecwid. Thanks a lot for getting in touch with us!

I checked your custom CSS code and as I see, you correctly found the product ID. In order to fix this CSS code, you need to update this part:

Code:
div.ecwid-AddToBagButton
This is the CSS class of old "Add to bag" button. There are new new store front buttons in your store at this moment. So, you should replace the old class with the new one:

Code:
button.ecwid-btn--addToBag
Here is the correct CSS code:

Code:
div.ecwid-productBrowser-ProductPage-84877613 button.ecwid-btn--addToBag { 
display:none; 
}
If you have other concerns, please feel free to write me back and it will be my pleasure to assist you further. Have a wonderful day!
__________________
Wendy
Ecwid Customer Care Team
Help Center


⬇ Please click Thanks if my reply helped you.
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
add to bag button, hide add to bag, product, product id

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:48 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.