Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Change color of in stock amount
Author « Topic »  

midvalleydrifter001
Ecommerce Template Expert

USA
912 Posts

Posted - 08/24/2020 :  09:39:05  
I would like to change the color of the "Quantity in Stock" on the following page that uses Options.

https://www (DOT) badmanbullets (DOT) com/OnlineStore/products.php?cat=9mm+115+Grain+RN+Polymer+Coated

Currently I have "In Stock" with an arrow pointing to the actual stock level in parenthesis but I'd like to make it the same color as the wording "In Stock"

Patrick


Edited by - midvalleydrifter001 on 08/24/2020 19:21:01

dbdave
ECT Moderator

USA
10276 Posts

Posted - 08/24/2020 :  12:48:44  
Hi Patrick, can you go in and assign a custom class to the options, then you can target that span

input.someclass span {
color:red;
}

Would that work?

Thanks,
David

midvalleydrifter001
Ecommerce Template Expert

USA
912 Posts

Posted - 08/24/2020 :  19:02:13  
I would do that but I have no idea where that stock number is coming from or what id is assigned to it.

dbdave
ECT Moderator

USA
10276 Posts

Posted - 08/25/2020 :  04:20:13  
Hi Patrick, I am guessing you have "stock by options" selected for those products, and in the product options, you have stock levels set there.
That is, unless you are using the alt product id feature.
If it's stock by options, there is a spot there to put a unique class for each option, and if you set one there, you can likely do the styling you want.
That is, if I fully understand what you want to do there.

Thanks,
David

midvalleydrifter001
Ecommerce Template Expert

USA
912 Posts

Posted - 08/25/2020 :  10:11:47  
Hi David,

Yes I'm using stock by options but I don't know where to assign that class for each option.

Patrick

dbdave
ECT Moderator

USA
10276 Posts

Posted - 08/25/2020 :  10:20:43  
Go into the product options and there is a spot to enter a custom class there next to each option.
All kinds of cool things are possible with the ability to add classes - https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=110777

Using Andy's tips and a bit a javascript to flip the background image, I was able to achieve this - https://www.trophykitsdev.com/dev2/proddetail.asp?prod=T2030-HASM

Thanks,
David

Edited by - dbdave on 08/25/2020 10:25:20

ITZAP
Ecommerce Template Guru

Australia
1009 Posts

Posted - 08/25/2020 :  22:15:37  
Very good indeed David. If there was a LIKE button here, I would click it twice

Gary
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000