View Full Version : Second Post changing shopping cart.css
blbrocks
06-28-2007, 03:44 PM
This is the second time I have posted this... can someone guide me to the right place to make these changes?
I have created a custom cart.html and cart.css and shopping_cart.css
I know that I am missing something: please help!
I have successfully changed most of the colors on the shopping cart but 3 places elude me and I cannot find where to adjust these:
1. The text size on of the links to "Shipping Information" "Returns and Exchanges" and "Privacy Policy"
2. The box fill color of the warning that "you did not enter a correct credit cart #" (and other warnings appear here as well) currently it comes up pink with white text - not good. I do have the entire site in white text because it is a dark bg color.
3. After you make a purchase and you have chose to buy something downloadable... this download button is within a box that is current fill in with white... well my text it white and you cant read it. Where oh where is this adjust located?
Where can I locate these items in the css to change them?
lwyau
06-28-2007, 04:04 PM
The general method of figuring out which part of the .css to adjust in order to achieve what you'd like to change is to look at the source code so you can see if there is a class or an id associated with the component you are looking at. It is not always possible to get the results via .css modifications.
Example: Your first item regarding text size of "shopping information" etc. A look at the source will reveal that they are associated with class "smtext". Yes you can change the style of "smtext" but it is a class used in many other places throughout. If you change it, you will change the rest of the places with perhaps undesirable results.
Look at the source code on all these items. You will then be able to decide: a) if in fact a particular style is associated with the component you want to change and b) if the change is localized enough so you can change it safely.
You will find cases you can't do much via .css. The only recourse then is to customize soho codes.
blbrocks
06-28-2007, 05:43 PM
Could you tell me where these particular lines of code are... so that I can add a class or id to it...
I don't know php but I could certainly add something if it was pointed out to me... then I could add the associated code to the css for the control....
Is it this simple? or is my idea of "just adding a class or id to a particular section" really a much more complex process?
I have no option but to find a solution... :(
Blb
lwyau
06-28-2007, 05:59 PM
The thing about php is that html codes are "generated" and it requires quite a bit of work to trace the codes. Additionally, you won't be able to update soho because everything time you do that you would lost your customization and have to redo it.
Here's another idea: Use the UDT_CONTENT_SEARCH_REPLACE table to search and change codes. Example: The code for "shipping information" line is this (according to the source code)
<A HREF="start.php?policy=shipping&=SID">Shipping Information</a></TD></TR><TR>
You can search the above and replace it with:
<A HREF="start.php?policy=shipping&=SID" style="font-size:16px;....">Shipping Information</a></TD></TR><TR>
The trick is to make the search string unique enough so you won't affect other areas inadvertently (bad to search for "<table>" string, for example).
Good luck!
kyle04
07-06-2007, 11:04 AM
Alternatively change each <a href... individually. The policy links occur, as far as I can tell, in the following places in your FTP :
shopping/prod_search_column.inc (don't forget to change sohoadmin/base_files/shopping_cart/prod_search_column.inc as well)
shopping/pgm-checkout.php (and again sohoadmin/base_files...etc)
shopping/pgm-add_cart.php ( " " " )
I have made many minor display modifications by accessing these files. Always save a copy of the original file first, even as a .txt file just in case....
Regards
Kyle04
http://www.jpennyltd.co.uk
kyle04
07-06-2007, 07:37 PM
....sorry I should have typed ".../client_files/..." instead of ".../base_files/..."
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.