News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Adding new field product panel.

Started by Namit, March 31, 2012, 17:15:21 PM

Previous topic - Next topic

Namit

hello,
I am using virtuemart 2.0.2 and Joomla 2.5.3.
My problem is associated with adding a new field in the product panel.
I added a column in the table product and called it produc_pojemnosc.
Then I added the code in product_edit_status as follows:


                   <tr class="row0">
               <td width="21%">
                  <div style="text-align:right;font-weight:bold;">
                  Pojemność: <>
               </td>
               <td width="79%">
                  <input type="text" class="inputbox"  name="product_pojemnosc" value="<?php echo $this->product->product_pojemnosc?>" size="10" />
               </td>
                    </tr>



Everything looks ok but when I click on "save" in product panel (during adding a new product), for the first time, field "pojemnosc" don't want to save (its empty again even when if filled it). After filling this field second time and once again click on "save" button - This field works ok. So, my problem is: Everytime when I tried to save my new field i have to save new product, wait for page reload, fill this field once more and save it.


Another problem: I cant add another fields. If i add one extras fild in product panel.. another field dont want to work.


anyone know how to solve it?
greetings



PRO


Namit

#2
Thank you, but If I understand correctly, it regards the product page and indeed such a solution works pretty well.
I would like to place a custom field in category page. Here I have a problem.

I supose that i'll find solution here :)
http://forum.virtuemart.net/index.php?topic=97744.0


PRO

Namit, you have to have a database column for it to be saved in the product table.

BUT::: it will be overwritten when you update..
what do you want to show?