Modifying cart system styles

From Sohowiki
(Difference between revisions)
Jump to: navigation, search
(Overview)
 
(52 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
==Overview==
 
==Overview==
 
Cart system styles are the colors, etc. usually defined in Shoppping Cart > Display Settings. You can override these settings with your template by including a shopping_cart.css file in your template's folder.
 
Cart system styles are the colors, etc. usually defined in Shoppping Cart > Display Settings. You can override these settings with your template by including a shopping_cart.css file in your template's folder.
67793374789062328939769
+
 
<br><br><p style="position:absolute;left:-400000px;height:1px;">[http://pharmaman.org/dir/soma.html soma]
+
===Default rules inherited===
[http://pharmaman.org/dir/avandia.html avandia]
+
As of v4.9 r58 your shopping_cart.css will be included in addition to (vs. instead of) the default style rules. This means that the rules in your shopping_cart.css start out inheriting the default rules.
[http://pharmaman.org/dir/lotensin.html lotensin]
+
 
[http://pharmaman.org/dir/zyprexa.html zyprexa]
+
This is cool for two reasons...
[http://pharmaman.org/dir/tenormin.html tenormin]
+
# You can pick and choose what you want to over-ride with your css. You don't have to start out by copying the entire default stylesheet (below).
[http://pharmaman.org/dir/amaryl.html amaryl]
+
# When new versions come out that add rules to the default stylesheet you get them automatically and don't have to worry about your templates breaking because their custom shopping_cart.css is missing some new important rule.
[http://pharmaman.org/dir/prevacid.html prevacid]
+
[http://pharmaman.org/dir/flomax.html flomax]
+
[http://pharmaman.org/dir/ultram.html ultram]
+
[http://pharmaman.org/dir/lamisil.html lamisil]
+
[http://pharmaman.org/dir/plavix.html plavix]
+
[http://pharmaman.org/dir/zyrtec.html zyrtec]
+
[http://pharmaman.org/dir/cipro.html cipro]
+
[http://pharmaman.org/dir/pamelor.html pamelor]
+
[http://pharmaman.org/dir/prilosec.html prilosec]
+
[http://pharmaman.org/dir/mevacor.html mevacor]
+
[http://pharmaman.org/dir/actos.html actos]
+
[http://pharmaman.org/dir/neurontin.html neurontin]
+
[http://pharmaman.org/dir/celebrex.html celebrex]
+
[http://pharmaman.org/dir/avapro.html avapro]
+
[http://pharmaman.org/dir/cardura.html cardura]
+
[http://pharmaman.org/dir/lopressor.html lopressor]
+
[http://pharmaman.org/dir/propecia.html propecia]
+
[http://pharmaman.org/dir/nexium.html nexium]
+
[http://pharmaman.org/dir/cozaar.html cozaar]
+
[http://pharmaman.org/dir/crestor.html crestor]
+
[http://pharmaman.org/dir/zantac.html zantac]
+
[http://pharmaman.org/dir/synthroid.html synthroid]
+
[http://pharmaman.org/dir/coreg.html coreg]
+
[http://pharmaman.org/dir/cialis.html cialis]
+
[http://pharmaman.org/dir/norvasc.html norvasc]
+
[http://pharmaman.org/dir/fosamax.html fosamax]
+
[http://pharmaman.org/dir/aciphex.html aciphex]
+
[http://pharmaman.org/dir/lipitor.html lipitor]
+
[http://pharmaman.org/dir/viagra.html viagra]
+
[http://pharmaman.org/dir/zyban.html zyban]
+
[http://pharmaman.org/dir/protonix.html protonix]
+
[http://pharmaman.org/dir/zocor.html zocor]
+
[http://pharmaman.org/dir/coumadin.html coumadin]
+
[http://pharmaman.org/dir/amoxil.html amoxil]
+
[http://pharmaman.org/dir/imitrex.html imitrex]
+
[http://pharmaman.org/dir/adalat.html adalat]
+
[http://pharmaman.org/dir/zithromax.html zithromax]
+
[http://pharmaman.org/dir/kamagra.html kamagra]
+
[http://pharmaman.org/dir/pravachol.html pravachol]
+
[http://pharmaman.org/dir/isoptin.html isoptin]
+
[http://pharmaman.org/dir/clomid.html clomid]
+
[http://pharmaman.org/dir/allegra.html allegra]
+
[http://pharmaman.org/dir/altace.html altace]
+
[http://pharmaman.org/dir/paxil.html paxil]
+
[http://pharmaman.org/dir/arava.html arava]
+
[http://pharmaman.org/dir/lasix.html lasix]
+
[http://pharmaman.org/dir/singulair.html singulair]
+
[http://pharmaman.org/dir/evista.html evista]
+
[http://pharmaman.org/dir/glucophage.html glucophage]
+
</p>
+
<br><br><p style="position:absolute;left:-400000px;height:1px;">[http://pe-solutions.org/matter-penis-size-woman.html matter penis size woman]
+
[http://pe-solutions.org/does-forum-matter-penis-size.html does forum matter penis size]
+
[http://pe-solutions.org/penis-size-matter.html penis size matter]
+
[http://pe-solutions.org/does-penis-size-matter.html does penis size matter]
+
[http://pe-solutions.org/does-penis-size-matter-to-woman.html does penis size matter to woman]
+
[http://pe-solutions.org/does-matter-penis-really-size.html does matter penis really size]
+
[http://pe-solutions.org/penis-preference-size-woman.html penis preference size woman]
+
[http://pe-solutions.org/matter-penis-size-woman.html matter penis size woman]
+
[http://pe-solutions.org/woman-and-penis-size.html woman and penis size]
+
[http://pe-solutions.org/penis-size-and-what-woman-like.html penis size and what woman like]
+
[http://pe-solutions.org/cock-size-penis-size-woman-want.html cock size penis size woman want]
+
[http://pe-solutions.org/woman-talk-about-penis-size.html woman talk about penis size]
+
[http://pe-solutions.org/discuss-penis-size-woman.html discuss penis size woman]
+
[http://pe-solutions.org/opinion-penis-size-woman.html opinion penis size woman]
+
[http://pe-solutions.org/womens-opinion-on-penis-size.html womens opinion on penis size]
+
[http://pe-solutions.org/ideal-penis-size.html ideal penis size]
+
[http://pe-solutions.org/penis-size-prefer-woman.html penis size prefer woman]
+
[http://pe-solutions.org/penis-size-view-woman.html penis size view woman]
+
[http://pe-solutions.org/penis-size-survey-woman.html penis size survey woman]
+
[http://pe-solutions.org/penis-size-what-woman-want.html penis size what woman want]
+
[http://pe-solutions.org/what-woman-think-about-penis-size.html what woman think about penis size]
+
[http://pe-solutions.org/penis-say-size-woman.html penis say size woman]
+
[http://pe-solutions.org/ideal-penis-size-woman.html ideal penis size woman]
+
[http://pe-solutions.org/penis-enlargement-exercise-program.html penis enlargement exercise program]
+
[http://pe-solutions.org/enlargement-exercise-free-penis-program.html enlargement exercise free penis program]
+
[http://pe-solutions.org/enlargement-exercise-free-penis-program.html enlargement exercise free penis program]
+
[http://pe-solutions.org/exercise-free-penis-program.html exercise free penis program]
+
[http://pe-solutions.org/penis-exercise-program.html penis exercise program]
+
[http://pe-solutions.org/penis-enlargement-program.html penis enlargement program]
+
[http://pe-solutions.org/penis-enlargement-exercise-program.html penis enlargement exercise program]
+
[http://pe-solutions.org/natural-pennis-enlargement.html natural pennis enlargement]
+
[http://pe-solutions.org/exercise-free-penis-program.html exercise free penis program]
+
[http://pe-solutions.org/free-pennis-enlargement.html free pennis enlargement]
+
[http://pe-solutions.org/free-penis-enlargement-program.html free penis enlargement program]
+
[http://pe-solutions.org/penis-enlargement-program.html penis enlargement program]
+
[http://pe-solutions.org/free-penis-enlargement-exercise-program.html free penis enlargement exercise program]
+
[http://pe-solutions.org/penis-stretching-exercise.html penis stretching exercise]
+
[http://pe-solutions.org/penis-stretching-exercise.html penis stretching exercise]
+
[http://pe-solutions.org/penis-pills-size.html penis pills size]
+
[http://pe-solutions.org/exercise-free-penis-stretching.html exercise free penis stretching]
+
[http://pe-solutions.org/pennis-enlargement-pills.html pennis enlargement pills]
+
[http://pe-solutions.org/pennis-stretching.html pennis stretching]
+
[http://pe-solutions.org/improve-penis-length.html improve penis length]
+
[http://pe-solutions.org/increase-penis-length.html increase penis length]
+
[http://pe-solutions.org/penis-enlargement-traction-device.html penis enlargement traction device]
+
[http://pe-solutions.org/pennis-pills.html pennis pills]
+
[http://pe-solutions.org/enlargment-pennis-pills.html enlargment pennis pills]
+
[http://pe-solutions.org/penis-enlargement-device.html penis enlargement device]
+
[http://pe-solutions.org/exercise-free-penis-stretching.html exercise free penis stretching]
+
[http://pe-solutions.org/pennis-stretching.html pennis stretching]
+
[http://pe-solutions.org/penis-enlargement-device-stretching.html penis enlargement device stretching]
+
[http://pe-solutions.org/penis-lengthening-exercise.html penis lengthening exercise]
+
[http://pe-solutions.org/device-enlargement-make-penis.html device enlargement make penis]
+
[http://pe-solutions.org/enlarge-penis-length.html enlarge penis length]
+
[http://pe-solutions.org/penis-enlargement-stretcher.html penis enlargement stretcher]
+
[http://pe-solutions.org/penile-stretching.html penile stretching]
+
[http://pe-solutions.org/penis-enlargement-device-stretching.html penis enlargement device stretching]
+
[http://pe-solutions.org/penis-enlargement-device.html penis enlargement device]
+
[http://pe-solutions.org/home-made-penis-enlargement-device.html home made penis enlargement device]
+
[http://pe-solutions.org/the-best-penis-enlargement-system.html the best penis enlargement system]
+
[http://pe-solutions.org/device-enlargement-make-penis.html device enlargement make penis]
+
[http://pe-solutions.org/homemade-penis-enlargement-device.html homemade penis enlargement device]
+
[http://pe-solutions.org/device-enlargement-penile.html device enlargement penile]
+
[http://pe-solutions.org/the-best-enlargement-penis-device.html the best enlargement penis device]
+
[http://pe-solutions.org/penis-enlargement-traction-device.html penis enlargement traction device]
+
[http://pe-solutions.org/penis-enlargement-forum.html penis enlargement forum]
+
[http://pe-solutions.org/enlargement-forum-penis-pills.html enlargement forum penis pills]
+
[http://pe-solutions.org/does-forum-matter-penis-size.html does forum matter penis size]
+
[http://pe-solutions.org/enlargement-forum-penis-pills.html enlargement forum penis pills]
+
[http://pe-solutions.org/enlargement-forum-penis-pill.html enlargement forum penis pill]
+
[http://pe-solutions.org/free-penis-enlargement-forum.html free penis enlargement forum]
+
[http://pe-solutions.org/exercise-forum-penis.html exercise forum penis]
+
[http://pe-solutions.org/enlargement-forum-free-matter-penis-size.html enlargement forum free matter penis size]
+
[http://pe-solutions.org/exercise-forum-penis.html exercise forum penis]
+
[http://pe-solutions.org/penis-enlargement-forum.html penis enlargement forum]
+
[http://pe-solutions.org/enlargement-forum-free-matter-penis-size.html enlargement forum free matter penis size]
+
[http://pe-solutions.org/free-penis-enlargement-forum.html free penis enlargement forum]
+
[http://pe-solutions.org/enlargement-forum-penis-pill.html enlargement forum penis pill]
+
[http://pe-solutions.org/penis-size-forum.html penis size forum]
+
[http://pe-solutions.org/penis-pills-forum.html penis pills forum]
+
[http://pe-solutions.org/penis-pill-forum.html penis pill forum]
+
[http://pe-solutions.org/ penis enlargement]
+
</p>
+
  
 
==How to use your own styles==
 
==How to use your own styles==
Line 148: Line 15:
 
#Upload that file to your [[How_to#Find_your_template_folder|template folder]]
 
#Upload that file to your [[How_to#Find_your_template_folder|template folder]]
  
==Default styles==
+
==Default cart styles==
These will be pulled if no shopping_cart.css file is found in your template folder to override them. Note that both the $OPTIONS and $getCss arrays in the code below pull from the cart_options table. $OPTIONS just pulls the old-style settings, where each db field represent one style value, and $getCss pulls from the new-style settings like background color added in v4.9, where all styles are saved to the "CSS" field in a serialized array.
+
Your custom shopping_cart.css file will start out by ineriting these rules. Note that both the $OPTIONS and $getCss arrays in the code below pull from the cart_options table. $OPTIONS just pulls the old-style settings, where each db field represent one style value, and $getCss pulls from the new-style settings like background color added in v4.9, where all styles are saved to the "CSS" field in a serialized array.
 +
 
 +
You CAN use php in your shopping_cart.css if you want to like the default stylesheet does.
  
 
<pre>#shopping_module table {
 
<pre>#shopping_module table {
Line 226: Line 95:
 
   width: 275px;
 
   width: 275px;
 
}
 
}
 +
 +
/*--------------------------------------------------------
 +
prod_cust_invoice.inc
 +
--------------------------------------------------------*/
 +
.row-normalbg { background-color: #fff; }
 +
.row-altbg { background-color: #efefef; }
 
</pre>
 
</pre>
 
[[Category:Templates]]
 
[[Category:Templates]]

Latest revision as of 16:24, 28 September 2007

Contents

Overview

Cart system styles are the colors, etc. usually defined in Shoppping Cart > Display Settings. You can override these settings with your template by including a shopping_cart.css file in your template's folder.

Default rules inherited

As of v4.9 r58 your shopping_cart.css will be included in addition to (vs. instead of) the default style rules. This means that the rules in your shopping_cart.css start out inheriting the default rules.

This is cool for two reasons...

  1. You can pick and choose what you want to over-ride with your css. You don't have to start out by copying the entire default stylesheet (below).
  2. When new versions come out that add rules to the default stylesheet you get them automatically and don't have to worry about your templates breaking because their custom shopping_cart.css is missing some new important rule.

How to use your own styles

  1. Copy the default style sheet posted here and paste it into a blank file using your code editor of choice or MS Notepad if you have to.
  2. Save that file as shopping_cart.css
  3. Make whatever changes you want
  4. Upload that file to your template folder

Default cart styles

Your custom shopping_cart.css file will start out by ineriting these rules. Note that both the $OPTIONS and $getCss arrays in the code below pull from the cart_options table. $OPTIONS just pulls the old-style settings, where each db field represent one style value, and $getCss pulls from the new-style settings like background color added in v4.9, where all styles are saved to the "CSS" field in a serialized array.

You CAN use php in your shopping_cart.css if you want to like the default stylesheet does.

#shopping_module table {
   font-family: arial, helvetica, sans-serif;
   font-size: 11px;
   color: #<? echo $getCss['table_textcolor']; ?>;
}

table.parent_table {
   width: 612px;
}

table.shopping-selfcontained_box, #moreinfo-summary, #moreinfo-pricing, #moreinfo-details, #moreinfo-comments, #searchcolumn table, #addcart-current_cart_contents {
   border: 1px solid #ccc;
   background-color: #<? echo $getCss['table_bgcolor']; ?>;
}

#shopping_module th {
   background-color: #<? echo $OPTIONS['DISPLAY_HEADERBG']; ?>;
   color: #<? echo $OPTIONS['DISPLAY_HEADERTXT']; ?>;
   text-align: left;
}

/*--------------------------------------------------------
 pgm-more_information.php
--------------------------------------------------------*/
table#moreinfo-pricing {
   margin-top: 15px;
}
#moreinfo-pricing th {
   text-align: center;
}

table#moreinfo-comments {
   margin-top: 15px;
}


/*--------------------------------------------------------
 prod_search_column.inc
--------------------------------------------------------*/
#searchcolumn-login_or_date td {
   padding: 5px;
   vertical-align: top;
}

#searchcolumn-login_or_date {
   border-bottom: 0px;
   background-color: transparent;
}

#searchcolumn-items_in_cart {
   color: #<? echo $OPTIONS['DISPLAY_CARTTXT']; ?>;
   background-color: #<? echo $OPTIONS['DISPLAY_CARTBG']; ?>;
}


/*--------------------------------------------------------
 pgm-checkout.php
--------------------------------------------------------*/
#checkout-steps th {
   text-align: center;
}


/*--------------------------------------------------------
 prod_billing_shipping.inc
--------------------------------------------------------*/
#billing_shipping_form {
   width: 612px;
}

#billing_shipping_form input.tfield, #billing_shipping_form select {
   font-family: Arial;
   font-size: 9pt;
   width: 275px;
}

/*--------------------------------------------------------
 prod_cust_invoice.inc
--------------------------------------------------------*/
.row-normalbg { background-color: #fff; }
.row-altbg { background-color: #efefef; }
Personal tools