How can I use language variable in Extra Fields?
Hello Folks,
How can I use language variables in Extra Fields? For examply I create an Extra Field for a warranty text. Some variable parts of the text I would like to change faster than doing a SQL using language variables over the database (because I am not sure how the result will be, sometimes I could affect the content). For example in product add page, in the input text box for a specific extra field I will write the text using $lbl_ variable. Cheers |
Re: How can I use language variable in Extra Fields?
1 Attachment(s)
Unfortunately it is not possible in the default X-Cart.
But this feature can be custom programmed. You should alter the "modules/Extra_Fields/extra_fields.php" script and replace this code: PHP Code:
PHP Code:
Note: use FTP to edit the PHP scripts. Alternatively you can apply the attached Patch. After the patch is applied you should be able using e.g. "{$lng.lbl_login}" as extra field value. |
Re: How can I use language variable in Extra Fields?
Moving to complete mods forum.
|
Re: How can I use language variable in Extra Fields?
Hi,
works nice, but if I add an extra field to products list - {$product.extra_fields[0].field_value} - I get only the language variable, not the language entry ie. {$lng.lbl_material_vinyl} not "Vinyl". Thank for advance! |
All times are GMT -8. The time now is 06:24 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.