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)
-   -   Featured items with links break layout (https://forum.x-cart.com/showthread.php?t=668)

minorgod 11-15-2002 01:14 PM

Featured items with links break layout
 
I've just noticed some strangeness that happens in x-cart 3.1.3a when you try to include an <a href> tag in the description of a product and then use that product as a featured item in a category. It completely breaks the layout after the featured item. I'm looking for the place where this happens and assume I'll need to do an htmlspecialchars() call to fix it, but I'm not sure where to look. Anyone know this off the top of their head?

minorgod 11-15-2002 01:27 PM

ooooh, i see the problem
 
After further investigation, this problem is not unique to the Featured Products. You simply can't use html code in your product title or your product's short description since it's apparently either not escaped before being placed into the database, or it needs an htmlspecialchars() encoding done on it before being sent to the database. I'll have to save that problem for another day, in the meantime, my workaround is just to put the links in the detailed description field only.

B00MER 11-15-2002 02:12 PM

You can do such with an extra field, and just use the {products.param00} smarty tag whever you want the html to be inserted, note you cant use smarty tags in the extra fields so you'll need to reference images/etc more directly. :wink:


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

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