Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Change color for cart module

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-23-2008, 07:05 AM
 
buddy buddy is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 97
 

Default Change color for cart module

Hi,
i have moved cart module on the top of the page and now i would want to change the color of the table but i don't know what i have to do.

If i change css class i change all modules and i don't want that.

Anyone can help me?

Thank you
__________________
Buddy

X-Cart DB Version: 4.4.2 GOLD
Reply With Quote
  #2  
Old 01-25-2008, 03:43 AM
  SpinyMan's Avatar 
SpinyMan SpinyMan is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 30
 

Default Re: Change color for cart module

Quote:
Originally Posted by buddy
i have moved cart module on the top of the page and now i would want to change the color of the table but i don't know what i have to do.

If i change css class i change all modules and i don't want that.
Hi,
open tpl file of your cart and rename its classnames to yous (ex., <table class="my_class">...</table>). Open css file and dublicate the classnames you changed in template. Do not forget to rename them to the same name ("my_class"). Change "dublicated" styles color and etc.
__________________
Regards,
SpinyMan

X-Cart Templates Store -
http://www.x-cart-customization.com/shop/

X-Cart Customization Services -
http://www.x-cart-customization.com/
Reply With Quote
  #3  
Old 01-25-2008, 07:55 AM
 
buddy buddy is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 97
 

Default Re: Change color for cart module

Hi,
i have to opern cart.tpl?

Thank you for your help.
__________________
Buddy

X-Cart DB Version: 4.4.2 GOLD
Reply With Quote
  #4  
Old 01-25-2008, 09:46 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Change color for cart module

No, cart.tpl is the shopping cart. You are talking about the mini-cart. Use webmaster mode to determine which template is which, and edit the styles accordingly.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 01-28-2008, 03:12 AM
 
buddy buddy is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 97
 

Default Re: Change color for cart module

I have checked minicart.tpl but i couldn't find

VertMenuBox class.

Anyone can help me?

Thank you
__________________
Buddy

X-Cart DB Version: 4.4.2 GOLD
Reply With Quote
  #6  
Old 01-28-2008, 03:31 AM
  SpinyMan's Avatar 
SpinyMan SpinyMan is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 30
 

Default Re: Change color for cart module

VertMenuBox class is located in main css file (skin1.css) and have next format:
Code:
.VertMenuBox { BACKGROUND-COLOR: #FFD44C; PADDING: 1px; }
If u can't find it in that file just put the code above in the skin1.css file and change BACKGROUND-COLOR to yours.
__________________
Regards,
SpinyMan

X-Cart Templates Store -
http://www.x-cart-customization.com/shop/

X-Cart Customization Services -
http://www.x-cart-customization.com/
Reply With Quote
  #7  
Old 01-28-2008, 03:41 AM
 
buddy buddy is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 97
 

Default Re: Change color for cart module

I would change the backgroung color just for the mini cart module but i don't know what i have to do.

Can you help me?

Thank you again
__________________
Buddy

X-Cart DB Version: 4.4.2 GOLD
Reply With Quote
  #8  
Old 01-28-2008, 03:58 AM
  SpinyMan's Avatar 
SpinyMan SpinyMan is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 30
 

Default Re: Change color for cart module

open "customer/main/minicart.tpl" and edit next line
Code:
<table cellpadding="1" cellspacing="0">
to
Code:
<table cellpadding="1" cellspacing="0" bgcolor="#abcdef">
in place of #abcdef u can insert the color u want
__________________
Regards,
SpinyMan

X-Cart Templates Store -
http://www.x-cart-customization.com/shop/

X-Cart Customization Services -
http://www.x-cart-customization.com/
Reply With Quote
  #9  
Old 01-28-2008, 05:47 AM
 
buddy buddy is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 97
 

Default Re: Change color for cart module

Unfortunately the background color doesn't change for all the modules but just for the first line where the cart image is.

I would want to change all the module.

Thank you
__________________
Buddy

X-Cart DB Version: 4.4.2 GOLD
Reply With Quote
  #10  
Old 01-28-2008, 07:12 AM
  SpinyMan's Avatar 
SpinyMan SpinyMan is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 30
 

Default Re: Change color for cart module

open "customer/menu_cart.tpl" file, find a string
Code:
{ include file="menu.tpl" ... menu_content=$smarty.capture.menu }
put into this line the next param
Code:
my_bg="#abcdef"

open "menu.tpl" file, find a string
Code:
<table cellspacing="1" width="100%" class="VertMenuBorder"> ... </table>
and append
Code:
<table cellspacing="1" width="100%" class="VertMenuBorder" {if $my_bg}{$my_bg}{/if}>
__________________
Regards,
SpinyMan

X-Cart Templates Store -
http://www.x-cart-customization.com/shop/

X-Cart Customization Services -
http://www.x-cart-customization.com/
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:24 PM.

   

 
X-Cart forums © 2001-2020