This is my first post, so first of all, thanks to all for everything, this page/product is great, made by all of you and I will like to help on the possibilities I can.
Okay, after my short introduction, here is my question.
I noticed that around the project there are a lot of tables where in one of them (e.g option_value) keeps the information of the image for the option, but in the other table (e.g. option_value_description) we have the multilingual information for the options. My question is the following, Im trying to create something able to add different pictures depending on the language.
My first, (and i think most obvious idea) is to add the information of the image on the second table (what actually makes sens, since has all the description of the option).
So, I started learning (by myself, REALLY HARD, since im quite slow and bad hihihi ), and I basically achieve everything, BUT there is just an small problem.
What do i mean with i achieve everything? Well, basically I have the code to add, update, put the second picture, displayed it, blablabla.
THE PROBLEM??? Im missing one step. The step is if I decide to upload a picture, then this information is no longer saved on the DATABASE. Im kind of becomming crazy, I tried and read everything, but without much success.
Actually, I can even put an input type in HTML to introduce manually the path to the picture, but we will lose the filemanager functionality already implemented:
Code: Select all
<input type="text" name="option_value[<?php echo $option_value_row; ?>][option_value_description][<?php echo $language['language_id']; ?>][name]" value="<?php echo isset($option_value['option_value_description'][$language['language_id']]) ? $option_value['option_value_description'][$language['language_id']]['image'] : ''; ?>" />
Im sorry, I think this is the proper place, but sorry in advance if im wrong. I dont want someone to code for me, I just want to understand, how can I integrate the filemanager and put (and give the info) to the DB. This also could be helpfull for others
Big thanks in advance