![]() |
Dynamic Language labels - are they possible
I am trying to create a tool tip for product options.
My idea is to create a unique label for each product option using the classid value of the product option. Example: $lng.lbl_product_class_22 $lng.lbl_product_class_23 $lng.lbl_product_class_24 $lng.lbl_product_class_25 My problem is how do I combine the classid variable {$v.classid} with my prefix for the label; $lng.lbl_product_class_ to end up with the correct label showing. E.g. classid = 50 should end up with a label: $lng.lbl_product_class_50 |
Re: Dynamic Language labels - are they possible
This might be difficult to do inside a template, but pretty easy to do in PHP. I would look at assigning the language variable right into the $product_options array.
|
Re: Dynamic Language labels - are they possible
Thanks Mike,
In the end I have created a separate field in the classes table and included the relevant value there. |
Re: Dynamic Language labels - are they possible
movilla -
I'm trying to do the same thing, but I'm not a PHP programmer. I have most pieces working except for /modules/Product_Options/product_options.php. On an existing option, when saving the option group form, it saves to the db, but throws an error. If I try to create a new option group, it errors and does not save. The error is Access Denied, but I'm thinking it is something I did wrong in the product_options.php file. Would you be able to share that file with me so I can do a diff and see what I may have missed? Despite my sig, I'm on v 4.5.5. Thanks. Matt |
All times are GMT -8. The time now is 06:01 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.