Inventory warning color question - where is it defined

General ShopSite user discussion

Inventory warning color question - where is it defined

Postby Don Lundell » Fri Aug 26, 2005 2:01 am

In the code generated on an out-of-inventory error:

<td class="inv_err" bgcolor="#FFFFCC">

I can't seem to be able to find the color FFFFCC defined anywhere, not in the admin interface,
nor in any of the templates.

The text string following it:

"There is not enough of this product in stock to fulfill your order, try reducing the quantity ordered."

lives in one of the compiled cgi files. So it worries me that this color might also be non-modifiable
(which would be a bug).

The upshot is that because the background generated is a yellow (Shopsite's Yellow_4 I believe -
is there any way to redefine this?) and my text is white, the warning box is virtually unreadable.

Am I just not finding the way to redefine this color?

Thanks,

- dc
Don Lundell
 

Re: Inventory warning color question - where is it defined

Postby loren_d_c » Fri Aug 26, 2005 7:55 am

The text "There is not enough of this product in stock to fulfill your
order, try reducing the quantity ordered." can be changed in Preferences
-> Inventory Tracking, see the very bottom setting on this menu.

There may not be a setting for the background color for this error
anywhere, but you can override the color specified in the td tag by
defining the bgcolor for inv_err.td in CSS, the best way would be in a
custom shopping cart template.

-Loren



Don Lundell wrote:
In the code generated on an out-of-inventory error:

td class="inv_err" bgcolor="#FFFFCC"

I can't seem to be able to find the color FFFFCC defined anywhere, not
in the admin interface,
nor in any of the templates.

The text string following it:

"There is not enough of this product in stock to fulfill your order, try
reducing the quantity ordered."

lives in one of the compiled cgi files. So it worries me that this color
might also be non-modifiable
(which would be a bug).

The upshot is that because the background generated is a yellow
(Shopsite's Yellow_4 I believe -
is there any way to redefine this?) and my text is white, the warning
box is virtually unreadable.

Am I just not finding the way to redefine this color?

Thanks,

- dc
loren_d_c
 
Posts: 2569
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Inventory warning color question - where is it defined

Postby jim » Fri Aug 26, 2005 8:12 am

What version of ShopSite are you using and what template is being used
for the shopping cart?

You should be able to define the class for td.inv_err in a style in the
shopping cart style sheet and override the color with one that fits your
needs. Here is an example of what it would look like if you want the
color to be red.

td.inv_err {
background-color: #FF0000;
}

The default shopping cart template (sc_default) uses the include file
sc_cart.css as to define styles for the shopping cart. That is where
you would add the code if you are using the default template. Make the
modification in a copy of the sc_cart.css file in your local template
area rather than in the ShopSite template area otherwise your change
would be wiped out when your store is upgraded.

Jim



Don Lundell wrote:
In the code generated on an out-of-inventory error:

td class="inv_err" bgcolor="#FFFFCC"

I can't seem to be able to find the color FFFFCC defined anywhere, not
in the admin interface,
nor in any of the templates.

The text string following it:

"There is not enough of this product in stock to fulfill your order, try
reducing the quantity ordered."

lives in one of the compiled cgi files. So it worries me that this color
might also be non-modifiable
(which would be a bug).

The upshot is that because the background generated is a yellow
(Shopsite's Yellow_4 I believe -
is there any way to redefine this?) and my text is white, the warning
box is virtually unreadable.

Am I just not finding the way to redefine this color?

Thanks,

- dc
jim
 

Re: Inventory warning color question - where is it defined

Postby Don Lundell » Fri Aug 26, 2005 10:38 am

On Fri, 26 Aug 2005 08:12:29 -0700, jim <beeutahful@gmail.com> wrote:

You should be able to define the class for td.inv_err in a style in the
shopping cart style sheet and override the color with one that fits your
needs. Here is an example of what it would look like if you want the
color to be red.

td.inv_err {
background-color: #FF0000;
}

The default shopping cart template (sc_default) uses the include file
sc_cart.css as to define styles for the shopping cart. That is where
you would add the code if you are using the default template. Make the
modification in a copy of the sc_cart.css file in your local template
area rather than in the ShopSite template area otherwise your change
would be wiped out when your store is upgraded.

Got it; fixed. Thanks Jim.

- dc
Don Lundell
 


Return to User Forum

Who is online

Users browsing this forum: No registered users and 42 guests