RE: [CBS-MMODS] RE: Fw: Conditional Body Background Color
Leslie, oops just noticed the else was redundant at the end of the last =
if
statement, so you don't need it at all, just let the if statements =
change
the first (default) set statement if they can (are true).=20
Ending of OpenUI Head tag field:
%IF(g.Product_Code EQ 'prod125')%
%SET(g.bgndvar|#333300)%
%ELSE%
%IF(g.bgndvar NE %VAR(OUI_Store.d.body_bg)%)%
%SET(g.bgndvar|%VAR(OUI_Store.d.body_bg)%)%
%IFEND%
%IFEND%
New ending if statement for same field should be:
%IF(g.Product_Code EQ 'prod125')%
%SET(g.bgndvar|#333300)%
%IFEND%
Jerry Pe=F1a
President, P.R.Custom.com
Custom Technology-Based Business Solutions
Phone: (310) 387-1153 Fax: (801) 999-6598
-----Original Message-----
From: [email protected] =
[mailto:[email protected]]
On Behalf Of Jerry Pena
Sent: Tuesday, November 02, 2004 8:40 AM
To: [email protected]
Subject: [mrc] RE: [CBS-MMODS] RE: [mrc] Fw: Conditional Body Background
Color
Leslie,=20
You could also do it the long way if you are using OpenUI. Set up a few =
if
statements to check for prod/cat codes and set a variable named =
something
like g.bgndvar with the color code you want to use in the head field of =
the
head/body tags tab for the store. Then call the variable in the body tag
(remember to use %OUI% for both fields). Ex:
Head Tag:
%SET(g.bgndvar|%VAR(OUI_Store.d.body_bg)%)%
%IF(g.Category_Code EQ '123')%
%SET(g.bgndvar|#333300)%
%IF(g.Product_Code EQ 'prod123')%
%SET(g.bgndvar|#FFCC00)%
%IFEND%
%IF(g.Product_Code EQ 'prod124')%
%SET(g.bgndvar|#333300)%%IFEND%
%IFEND%
%IF(g.Category_Code EQ 'cat124')%
%SET(g.bgndvar|#331100)%
%IFEND%
%IF(g.Product_Code EQ 'prod125')%
%SET(g.bgndvar|#333300)%
%ELSE%
%IF(g.bgndvar NE %VAR(OUI_Store.d.body_bg)%)%
%SET(g.bgndvar|%VAR(OUI_Store.d.body_bg)%)%
%IFEND%
%IFEND%
Body Tag: (remember the tag itself is already there. Here you just add =
the
attributes to the tag)=20
bgcolor=3D"%VAR(g.bgndvar)%"
This way you could play with a bunch of combinations. I haven't tested =
it,
but it should be right in theory. I know it can be made a lot more
efficient, but I just wanted to illustrate its flexibility in the =
simplest
way I could.
Jerry Pe=F1a
President, P.R.Custom.com
Custom Technology-Based Business Solutions
Phone: (310) 387-1153 Fax: (801) 999-6598
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, November 02, 2004 7:26 AM
To: [email protected]; [email protected]; [email protected];
[email protected]
Subject: [CBS-MMODS] RE: [mrc] Fw: Conditional Body Background Color
Cool to know - but at this time that's not an option for this site.
Thanks,
Leslie
Hey Leslie,
With the OpenUI SuperMod (or DynamicTemplates for MMUI) you can have an
individual template for each category and product - or you can make a
template that applies to multiple categories or products based on =
cat-code
or prod-code prefixes.
With these full screen templates- you have access to changing every bit =
of
HTML in the store, including the BODY tag attributes to set the bgcolor.
Regards,
James
--------------------------------------------------------------------
mail2web - Check your email from the web at http://mail2web.com/ .
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D COPERNICUS BUSINESS SYSTEMS LLC =
LIST MANAGER =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D
Please do not send subscribe or other commands to the list. Instead, =
send an
email to the following addresses to control your subscription:
=20
- To Subscribe: [email protected]
- To Unsubscribe: [email protected]
- Command Help: [email protected]
Announcement
Collapse
No announcement yet.
RE: [CBS-MMODS] RE: Fw: Conditional Body Background Color
Collapse
X
-
Guest replied
-
RE: [CBS-MMODS] RE: Fw: Conditional Body Background Color
Leslie,=20
You could also do it the long way if you are using OpenUI. Set up a few =
if
statements to check for prod/cat codes and set a variable named =
something
like g.bgndvar with the color code you want to use in the head field of =
the
head/body tags tab for the store. Then call the variable in the body tag
(remember to use %OUI% for both fields). Ex:
Head Tag:
%SET(g.bgndvar|%VAR(OUI_Store.d.body_bg)%)%
%IF(g.Category_Code EQ '123')%
%SET(g.bgndvar|#333300)%
%IF(g.Product_Code EQ 'prod123')%
%SET(g.bgndvar|#FFCC00)%
%IFEND%
%IF(g.Product_Code EQ 'prod124')%
%SET(g.bgndvar|#333300)%%IFEND%
%IFEND%
%IF(g.Category_Code EQ 'cat124')%
%SET(g.bgndvar|#331100)%
%IFEND%
%IF(g.Product_Code EQ 'prod125')%
%SET(g.bgndvar|#333300)%
%ELSE%
%IF(g.bgndvar NE %VAR(OUI_Store.d.body_bg)%)%
%SET(g.bgndvar|%VAR(OUI_Store.d.body_bg)%)%
%IFEND%
%IFEND%
Body Tag: (remember the tag itself is already there. Here you just add =
the
attributes to the tag)=20
bgcolor=3D"%VAR(g.bgndvar)%"
This way you could play with a bunch of combinations. I haven't tested =
it,
but it should be right in theory. I know it can be made a lot more
efficient, but I just wanted to illustrate its flexibility in the =
simplest
way I could.
Jerry Pe=F1a
President, P.R.Custom.com
Custom Technology-Based Business Solutions
Phone: (310) 387-1153 Fax: (801) 999-6598
-----Original Message-----
From: [email protected] [mailto:[email protected]]=20
Sent: Tuesday, November 02, 2004 7:26 AM
To: [email protected]; [email protected]; [email protected];
[email protected]
Subject: [CBS-MMODS] RE: [mrc] Fw: Conditional Body Background Color
Cool to know - but at this time that's not an option for this site.
Thanks,
Leslie
Hey Leslie,
With the OpenUI SuperMod (or DynamicTemplates for MMUI) you can have an
individual template for each category and product - or you can make a
template that applies to multiple categories or products based on =
cat-code
or prod-code prefixes.
With these full screen templates- you have access to changing every bit =
of
HTML in the store, including the BODY tag attributes to set the bgcolor.
Regards,
James
--------------------------------------------------------------------
mail2web - Check your email from the web at http://mail2web.com/ .
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D COPERNICUS BUSINESS SYSTEMS LLC =
LIST MANAGER =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D
Please do not send subscribe or other commands to the list. Instead, =
send an
email to the following addresses to control your subscription:
=20
- To Subscribe: [email protected]
- To Unsubscribe: [email protected]
- Command Help: [email protected]
Tags: None
Leave a comment: