Jump to content

Customization of Shopping Cart


Recommended Posts

Hi,

 

I'm trying to change the bg color of the cart block.

I've tried adding css in the block cart module and global css to no avail.

 

I've tried both:

li#shopping_cart {

background: #e4c8ea;

}

 

and

 

#header_nav {

background: #e4c8ea;

}

 

but it stays the default color.

 

Thanks.

Edited by closeupman (see edit history)
Link to comment
Share on other sites

Hi,

 

I just enabled it, had it under maintenance mode.

 

it's www.sitinuriatistudio.com

 

I took out my css changes for the bg color because it did nothing. I was just hoping someone could tell me what css class and/or id to use and which file. Should be something simple.

 

(Too bad Prestashop doesn't have a live css editor like avactics....really should try to add that in version 2.0 :P)

Link to comment
Share on other sites

Blkockuserinfo.css,m line 16

 

Change the background property of the following rule

 

 

#shopping_cart a {
height: 15px;
padding: 15px 27px 10px 43px;
background: url('img/icon/cart.gif') no-repeat 10px 9px #eee;
min-width: 130px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
display: block;

  • Like 1
Link to comment
Share on other sites

another thing:

10Gh43N.png

 

 

it's a transparent backgrund, so you have to add backgrund color to:

#header #cart_block {
z-index: 10;
display: none;
position: absolute;
right: 0;
top: 65px;
height: auto;
width: 200px;
-moz-border-bottom-right-radius: 3px;
-moz-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
box-shadow: 0 1px 0 #C6C6C6;
}

in /modules/blockcart/blockcart.css

  • Like 1
Link to comment
Share on other sites

i will change the topic title to something like "customize the cart block" ;)

if you want to remove 'cart' word, you have to edit .tpl file: modules/blockuserinfo/blockuserinfo.tpl

 

there is:

{l s='Cart' mod='blockuserinfo'}

 

just remove it

  • Like 1
Link to comment
Share on other sites

thanks....should include this and more in the prestashop guide.... :P

I'll look it over and try my best.

 

====

Just started reading it.....should I have added my previous shopping cart edits in my themes/module folder? I did it in the root/modules folder......

 

:P

 

 

there were also some comments about Nemo's solution not working fully....did you fix it...or was Max wrong?

 

 

thanks.

Edited by closeupman (see edit history)
Link to comment
Share on other sites

I took

background: #e4c8ea;

 

out of

 

#header #cart_block

 

of the root/modules/blockcart folder's blockcart.css and created a blockcart.css in my themes/module/blockcart,

but get transparency, so it doesn't seem to override the other css.

 

do I need to include it somewhere or what?

 

thanks.

 

and will I have to do this with all my other changes? if I want to take them out of the root and put them in the theme folder?

 

 

p.s. I put in back in the root, so my site will look okay, but I'd prefer to know how to have it in theme, so I can upgrade easily prestashop when needed.

Edited by closeupman (see edit history)
Link to comment
Share on other sites

  • 5 months later...

it's hard to browse your website, it doesnt work well (cart feature)

what's goin on there?

 

Well in the link that I posted, size was already selected.

Try this one: http://www.nordicapparel.com/mikkel-rude/store/index.php?id_product=8&controller=product

 

I just customized the radio-buttons.

 

Hard to browse? might be because there is no real products added yet?

Link to comment
Share on other sites

im confused,

problem with border radius? where?

gilE09g.png

 

 

The "Cart Block" module was never supposed to be enabled, and for some reason I never realized that it was enabled, because my browser did not show the hover-block like on your screen shot. It is disabled now, and it solved the problem. Thanks  for making me aware with your screen shot.

Link to comment
Share on other sites

I think your layout is missing a #bigpic element, it spawns a javascript error on add to cart. The main image must have the id 'bigpic'

 

You are right, the bigpic have been removed. I removed this and displayed only thumbnails as big images. Reason: when the bigpic is there, the page will display the same image two times. (one as bigpic and one as the first thumbnail).

 

Please let me know if you still get the same error selecting size when you use the following link: 

http://www.nordicapparel.com/mikkel-rude/store/index.php?id_product=8&controller=product

 

Thanks,

Link to comment
Share on other sites

No error, I get redirected to the cart page..... but then there is a redirect loop!

 

I dont know why this problem occurred, but after some time I tried to turn off the friendly url and it seamed to solve the problem. Now I guess that I just need to live with that turned off.

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...