jleesaxon Posted July 5, 2013 Share Posted July 5, 2013 (edited) Dumb question: where is the CSS for the Cart block? I can't find it in global.css (maybe not surprising given its size!) Edited July 9, 2013 by jleesaxon (see edit history) Link to comment Share on other sites More sharing options...
Martin Uker K Posted July 5, 2013 Share Posted July 5, 2013 It's in a module, blockcart. You need to override it in your theme if you want to modify it (Create a new one in /css/module/blockcart/*.css) Link to comment Share on other sites More sharing options...
jleesaxon Posted July 7, 2013 Author Share Posted July 7, 2013 Ah, I was looking in [mytheme]/modules/blockcart instead of [myshop]/modules/blockcart. Thank you! #header #cart_block seems to work well for styling the expanded portion, but I can't figure out how to to style the collapsed portion? Link to comment Share on other sites More sharing options...
PSfever.com Posted July 7, 2013 Share Posted July 7, 2013 Hi, please post the link to your site + the list of changes you want to make. I can help with that! Do you use normal module block cart, or is it edited in any way? Link to comment Share on other sites More sharing options...
jleesaxon Posted July 7, 2013 Author Share Posted July 7, 2013 Thanks! http://www.elliscamera.com/ I've tweaked background and border in "#header #cart_block" in blockcart.css, otherwise it is unmodified. I would like for the collapsed portion to have, like the expanded portion: background:#fafafa border:1px dashed #000 border-radius:5px Link to comment Share on other sites More sharing options...
vekia Posted July 8, 2013 Share Posted July 8, 2013 if you're talking about this: This isn't cart. it's a <ul> element named header_nav (id) you can define styles for that in the: /modules/blockuserinfo/blockuserinfo.css file (line ~8) change it to: #header_nav { list-style-type: none; float: right; background: #fafafa; border: 1px dashed #000; border-radius: 5px; } effect: Link to comment Share on other sites More sharing options...
jleesaxon Posted July 8, 2013 Author Share Posted July 8, 2013 Ah! Thank you vekia! That's confusing! The border and border radius worked, but the background color did not. That box is dark gray, but no background color is defined in #header_nav. It's defined somewhere else. Adding background color to #header_nav didn't override the dark gray definition, so we'll need to find and remove/change it. Any theories? Link to comment Share on other sites More sharing options...
vekia Posted July 8, 2013 Share Posted July 8, 2013 just use background param with !important; modifier it will work Link to comment Share on other sites More sharing options...
jleesaxon Posted July 9, 2013 Author Share Posted July 9, 2013 (edited) Actually, !important; didn't work since the contradicting background definition was on the same style sheet ( !important; seems to only work if the definition you're trying to supercede is in a different file. In case anyone is wondering, I found it under #shopping_cart a Edited July 22, 2013 by jleesaxon (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 and what about background, it works now? Link to comment Share on other sites More sharing options...
jleesaxon Posted July 9, 2013 Author Share Posted July 9, 2013 Yeah removing the background color from "#shopping_cart a" was the solution. Link to comment Share on other sites More sharing options...
DillyDog Posted July 13, 2013 Share Posted July 13, 2013 How can I remove this block altogether? Link to comment Share on other sites More sharing options...
DillyDog Posted July 13, 2013 Share Posted July 13, 2013 It's OK, just sussed it! Link to comment Share on other sites More sharing options...
mowax Posted July 22, 2013 Share Posted July 22, 2013 (edited) Hi, I am having a similar problem. I'm trying to remove the border-radius by editing blockuserinfo.css, and it works but only until you expand the cart, then it returns to having 3px border-radius. Please check my site to see what I'm talking about: Edited July 22, 2013 by duratex (see edit history) Link to comment Share on other sites More sharing options...
jleesaxon Posted July 22, 2013 Author Share Posted July 22, 2013 (edited) duratex, I had that problem too, and it turns out it it's very easy to fix. See the last post in http://www.prestashop.com/forums/topic/263037-solved-blockcart-mouseover-affects-blockuserinfo-border-radius/ . Edited July 22, 2013 by jleesaxon (see edit history) Link to comment Share on other sites More sharing options...
mowax Posted July 22, 2013 Share Posted July 22, 2013 Great one mate, thanks a lot! Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2013 Share Posted July 22, 2013 hello duratex you've got exactly the same issue? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now