Author Topic: Adding fields to Store information  (Read 4380 times)

Marcelo

  • Beginner
  • *
  • Posts: 44
    • Bagge-Web
Adding fields to Store information
« on: April 01, 2008, 11:15:02 am »
Hi there  :)

I want to add some fields to the store information, but I'm not sure on what files that hold the information for that change.
Here is what I've done so far:

 I've inserted an extra field in store.store_form.php

Code: [Select]
<tr>
      <td width="22%" align="right" ><?php echo $VM_LANG->_PHPSHOP_STORE_FORM_EXTRA_FIELD_2 ?>:</td>
      <td width="78%" ><input type="text" class="inputbox" name="extra_field_2" value="<?php $db->sp("extra_field_2"?>" size="32" /></td>
    </tr>

Then I modified the language file english.php by inserting the following line

Code: [Select]
var $_PHPSHOP_STORE_FORM_EXTRA_FIELD_2 = 'EXTRA FIELD';
When I go to 'edit store' I see the field but when I save the field with some info, it isn't saved. So what other files do I need to configure?


VM 1.0.14 - joomla 1.0.14

Marcelo

  • Beginner
  • *
  • Posts: 44
    • Bagge-Web
Re: Adding fields to Store information
« Reply #1 on: April 01, 2008, 11:56:15 am »
OK I think I did something wrong, I think I misunderstood some of the posts on extra fields, cause there are no extra fields for vendor.
So I inserted the one I needed in the database --> jos_vm_vendor  (check the pic added)

So now I configured the changes posted above with vendor_VAT

But I'm still missing something.

Am I in the right track at all, cause I'm a noob at this.

[attachment cleanup by admin]

ced

  • Beginner
  • *
  • Posts: 15
Re: Adding fields to Store information
« Reply #2 on: June 18, 2008, 09:30:28 am »
Could be a good idea with siret numbers, tva numbers...
Anybody ?