Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Extra Fields  (Read 4486 times)

Offline hgzica

  • Newbie
  • *
  • Posts: 6
  • Karma: +1/-0
    • View Profile
Extra Fields
« on: June 06, 2017, 10:24:57 AM »
Hello!

I'm creating an extension to append fields to address.
Where it is advisable to save this extra information:
Adding a column to the table "addresses" or in a global table or should I create a specific table to save this information?

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +93/-1
    • View Profile
Re: Extra Fields
« Reply #1 on: June 07, 2017, 09:48:55 AM »
There is no extra fields for address table. You just need to alter table `ac_addresses` and add fields what you need.

Add this to install.sql file. Also include uninstall.sql to clean up.

http://docs.abantecart.com/pages/developer/extension_dev.html#install
“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

Offline hgzica

  • Newbie
  • *
  • Posts: 6
  • Karma: +1/-0
    • View Profile
Re: Extra Fields
« Reply #2 on: June 07, 2017, 03:12:33 PM »
Thanks @eCommerceCore

 

Powered by SMFPacks Social Login Mod