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

Custom Field

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-25-2006, 08:14 PM
 
Russ Russ is offline
 

Member
  
Join Date: Oct 2002
Location: Tampa, FL USA
Posts: 14
 

Default Custom Field

I added a custom field to my products table. I call the value in that field on my product detail page using "{$product.show_dates}. When I save a product in product modify it strips all HTML from that field. Any ideas on how to make it not do that. I basically copied the code from the descr filed which allows HTML

v 4.1.0
__________________
X-Cart v4.4.5
CW Power Filter
BCSE Auth.Net CIM module
Reply With Quote
  #2  
Old 09-26-2006, 03:04 AM
 
balinor balinor is offline
 

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

Default Re: Custom Field

Why not just use Extra fields? In either case you need to add the variable to the trusted list so that html isn't stripped. I believe you can find that code in admin/product_modify.php and provider/product_modify.php
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 09-27-2006, 06:14 PM
 
Russ Russ is offline
 

Member
  
Join Date: Oct 2002
Location: Tampa, FL USA
Posts: 14
 

Default Re: Custom Field

Using extra fields in another way. I looked for both files you suggested but only found one product_modify.tpl in /main. can't see where you add to a trusted list. Actually looks like the one I want is product_details.tpl i think. Can you be more specific? Thanks
__________________
X-Cart v4.4.5
CW Power Filter
BCSE Auth.Net CIM module
Reply With Quote
  #4  
Old 09-27-2006, 06:19 PM
 
balinor balinor is offline
 

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

Default Re: Custom Field

Sorry, they may have changed something in 4.1, and I'm not going to start using that version until it is stable
__________________
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 07:16 AM.

   

 
X-Cart forums © 2001-2020