Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Allow html in additional register fields?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-19-2005, 08:03 AM
 
pdblizzard pdblizzard is offline
 

Member
  
Join Date: Sep 2005
Location: Central ILL., USA
Posts: 22
 

Default Allow html in additional register fields?

Our installation is a "mall" type, (Using BCSE's X-Mall mod & CartLab's SkinSwap) featuring multiple providers.

We allow those providers to have a unique "storefront". We added fields using "User Profiles options" in Additional Fields, to allow a business description, and we display their unique description on their home page. We selected "Text" as the field type for description (xcart_register_field_values)

We only do this in the back end, when we set up a provider. The additional fields do not display for customer registration.

However, we cannot use HTML in that field. We'd like to be able to use HTML there, in the same way that we can put HTML in the product descriptions, so the store has a richer looking "store front".

So my question is, what change do I have to make, in order to use HTML in the xcart_register_field_values, in the same way product descriptions allow and display HTML.

Thank you in advance for any help!
__________________
X-Cart PRO 4.1.9
Reply With Quote
  #2  
Old 10-22-2005, 05:19 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

I'd open a ticket with X-Cart on this one, as they should be able to easily point you in the right direction.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-25-2005, 10:12 PM
 
jharwood jharwood is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 67
 

Default

I was just coming in to ask a similar question which I'll still do below. If you've disovered the answer to your question, maybe you could pass it along? Or, may my thought on doing this is workable but I can't risk testing it at the moment.

Here's what I was going to post ...

I would like to add an additional field of data to product detail pages that is able to accept HTML. Basically to be used in a manner similar to the detail images but more flexible. With detail images, if you want to have text it has to be in the image and therefore high-K and not very flexible.

The "extra fields" feature creates char(255) type fields which do not accept HTML and are basically intended to add product-specific text. The benefit is that these fields already "know" the items they are associated with and appear on the admin's product entry page.

One simple solution would seem to just change the type of that field (the "value" field in the "xcart_extra_field_values" table) to "text" which would be the same as the "fulldesc" field in the "xcart_products" table and should accept and allow the browser to interpret HTML tags.

Does anyone know if that would mess things up (xcart upgrading not withstanding)? I do have the Market Manager mod on this which has put a "cost" field in but that is the only extra field in this xcart store at the moment.

xcart v4.09

Thanks
John
Reply With Quote
  #4  
Old 10-26-2005, 08:19 AM
 
pdblizzard pdblizzard is offline
 

Member
  
Join Date: Sep 2005
Location: Central ILL., USA
Posts: 22
 

Default

balinor, thank you for pointing me back to X-Cart support, you were right on the mark.

There was a very good reason to discuss my request with them directly.

They provided me with the resolution instantly.

John, feel free to PM for further discussion
__________________
X-Cart PRO 4.1.9
Reply With Quote
  #5  
Old 10-26-2005, 08:34 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Don't suppose you would care to post the solution for future reference?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 10-26-2005, 01:36 PM
 
chrisinoz chrisinoz is offline
 

eXpert
  
Join Date: Aug 2004
Location: Australia
Posts: 248
 

Default

Hi Blizzard

I too would like to know their answer on this. Wanted to use a field to record a live email address.

Thx

Chris
4.016
Reply With Quote
  #7  
Old 10-26-2005, 02:28 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Not sure the solution should be posted here, as it has the potential of causing some security risks. If you are interested in having this functionality, I'd suggest contacting X-Cart directly.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 10-26-2005, 02:32 PM
 
chrisinoz chrisinoz is offline
 

eXpert
  
Join Date: Aug 2004
Location: Australia
Posts: 248
 

Default

Hi Padraic

I was just following your cue :>

Cheers

Chris
Reply With Quote
  #9  
Old 10-26-2005, 03:05 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Yea, I didn't realize what making the change could cause as far as hackers are concerned
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:57 AM.

   

 
X-Cart forums © 2001-2020