X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Custom Field (https://forum.x-cart.com/showthread.php?t=25252)

Russ 09-25-2006 08:14 PM

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

balinor 09-26-2006 03:04 AM

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

Russ 09-27-2006 06:14 PM

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

balinor 09-27-2006 06:19 PM

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 :(


All times are GMT -8. The time now is 07:33 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.