Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 02-23-2007 12:27:03

supercapes
Member
From: Nevada City, California
Registered: 12-01-2005
Posts: 101
Website

How do I display html in product option selections?

In CCP51, I changed the product option selection name field to things like: 

Cute <IMG SRC=http://www.supercapes.com/ccp51/media/images/site/supercute.jpg>

And used radio buttons.  And the image showed up right next to the product option selection.

In CCP60, I changed the ccp0_prodoptionsel table's name field to text (varchar(40) was too short), but the display is just the exact text you see above instead of the picture.   - see http://www.supercapes.com/khxc/index.ph … ef=cape021


Laura
probably workin' in my jammies

Offline

 

#2 03-01-2007 14:54:50

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19850
Website

Re: How do I display html in product option selections?

Instead of doing those images next to the radio selection items, simply include a big image in your option description with those pictures.


Nick Hendler

Offline

 

#3 03-02-2007 14:43:55

supercapes
Member
From: Nevada City, California
Registered: 12-01-2005
Posts: 101
Website

Re: How do I display html in product option selections?

In some cases, when the option is a letter of the alphabet, that would be 26 pictures.  There's no way to display pictures next to options?  radio buttons or some other?


Laura
probably workin' in my jammies

Offline

 

#4 03-02-2007 15:32:02

Quizno
Member
Registered: 06-02-2003
Posts: 447

Re: How do I display html in product option selections?

That's exactly what I was asking here:

It would be really nice if this could be figured out...

Offline

 

#5 03-02-2007 16:10:21

supercapes
Member
From: Nevada City, California
Registered: 12-01-2005
Posts: 101
Website

Re: How do I display html in product option selections?

I did it in CCP51...and it worked great.


Laura
probably workin' in my jammies

Offline

 

#6 03-06-2007 10:26:52

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19850
Website

Re: How do I display html in product option selections?

Actually there is a really easy way to do this in CCP6.  Go here:

Kryptronic Hybrid X Core > Displays: Skins, Menus, XHTML Includes and Messages > Manage XHTML Includes

Edit the 'Formfield: Radio Button' include (or any other form field type).  Look for:

Code:

$value = $this->xhtml_encode($value);

And change to:

Code:

if (!(preg_match('/\<.*?\>/',$value))) {$value = $this->xhtml_encode($value);}

This encodes the value as an XHTML compliant string only if it does not contain HTML tags.


Nick Hendler

Offline

 

#7 03-06-2007 10:58:19

supercapes
Member
From: Nevada City, California
Registered: 12-01-2005
Posts: 101
Website

Re: How do I display html in product option selections?

Beautiful!  Thanks!


Laura
probably workin' in my jammies

Offline

 

#8 07-25-2010 12:41:58

karrasda103
Member
Registered: 06-02-2010
Posts: 44

Re: How do I display html in product option selections?

will this work in V7???

Offline

 

#9 07-25-2010 12:48:44

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: How do I display html in product option selections?

Yes it should.

Offline

 

#10 11-18-2010 22:03:01

karrasda103
Member
Registered: 06-02-2010
Posts: 44

Re: How do I display html in product option selections?

would this work on a selection list?

Offline

 

#11 11-18-2010 22:58:18

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: How do I display html in product option selections?

You can not use html code in selection lists display, standard html code rule.

John

Offline

 

Board footer