| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Changing color of product variant selector | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I am seeking to change the color of the product variant selector label which is displayed on the product details page. Any ideas? Thanks a lot guys. And Balinor, if you read this one, thank you so much for your dedication to this forum, you've helped me loads.
__________________
X-Cart Version :: 4.1.6 (Finally) X-Cart Mods :: Kids Skin by 7dana Running on :: SUSE Linux 9.3 with Plesk 7.5.4 Webserv :: Apache 2.0.53 mySQL :: 4.1.10 PHP :: 4.3.10 |
|||||||
#2
|
|||||||
|
|||||||
![]() I read every one
![]() By the selector, do you mean the drop-down box itself or the label next to it?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() I mean the text next to it, so the label of the control. Thanks
![]()
__________________
X-Cart Version :: 4.1.6 (Finally) X-Cart Mods :: Kids Skin by 7dana Running on :: SUSE Linux 9.3 with Plesk 7.5.4 Webserv :: Apache 2.0.53 mySQL :: 4.1.10 PHP :: 4.3.10 |
|||||||
#4
|
|||||||
|
|||||||
![]() Although this post is not SPECIFICALLY how to change your specific "option" tag (actually you are not changing anything in the template -- you will be editing the CSS file), it will show you how you can figure this out on your own in about 30 seconds...
For your specific case, change step #4 to: 4. click on a product detail that has a variant then proceed... http://forum.x-cart.com/viewtopic.php?p=148575#148575
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#5
|
|||||||
|
|||||||
![]() Unfortunately X-Cart didn't bother to assign a class to that piece of text, so it isn't that easy. This is the line that controls the code, it is in skin1/modules/Product_options/customer_options.tpl:
<td valign="middle" height="25">{if $usertype eq "A"}{$v.class}{else}{$v.classtext|default:$v.class }{/if}</td> You'll need to either add a class to it, or use <span> tags to format it.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||
|
|||||||
![]() Sorry..
I was thinking you wanted class="ProductDetailsTitle" or .ProductDetailsTitle in the CSS file.... In this case, change this line of code from: Code:
Code:
then in your skin1/skin1.css - add this anywhere... Code:
Obviously, change the CSS to match what you really want it to look like. This particular code will look pretty nasty there... if you are not proficient in CSS editing, no worries. there are countless sites on the web with everything you need to know. You only need to know how to search for the answer... hope this helps. Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#7
|
|||||||
|
|||||||
![]() Thanks a lot guys, it worked just fine. Just one more question:
I have one selector box which lets the customer choose the product variant. Now left of it is of course the label or name of the option group whose format I have now been able to change. However I would like to inlcude another text label on the right side of it. How would I do this?? Thanks!
__________________
X-Cart Version :: 4.1.6 (Finally) X-Cart Mods :: Kids Skin by 7dana Running on :: SUSE Linux 9.3 with Plesk 7.5.4 Webserv :: Apache 2.0.53 mySQL :: 4.1.10 PHP :: 4.3.10 |
|||||||
#8
|
|||||||
|
|||||||
![]() Same template, just add a new table cell at the end.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
![]() balinor or anyone - is there a good guide to skin1.css that explains in detail what the selectors affect? Maybe someone has placed a bunch of comments in that would help guide us?
__________________
Scott DeToffol Online Marketing and E-Commerce Consulting in Minneapolis X-Cart Gold Version 4.1.9 for www.sundogtrading.com X-Cart Pro Version 4.2.3 for www.heavyglare.com |
|||||||
|
|||
X-Cart forums © 2001-2020
|