View Single Post
  #8  
Old 06-27-2016, 07:37 AM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default Re: how I add a new field to orders in admin area ?

Quote:
Originally Posted by qualiteam
I will try to check the code on my local 5.3.x installation this week.

Please could you clarify what exactly doesn't work after you migrated the code?
Can you send me your module files?

We don't sell single items (just cases) so I added a new field called PPCField (pieces per case) and modified the admin screen for products so I could add a field for how many pieces per case each product had (unless there were options, then I use variants).

This caused all kinds of problems with importing the products into another build (but I manually corrected all the issues) because the export and import can't handle new fields in the database apparently.

Attached is the packed module that I used the smarty to twig converter that xcart gave.
Attached Files
File Type: tar EBLIEB-GlasPak-v5_3_0.tar (12.5 KB, 144 views)
__________________
Business License
https://glaspak.com
GoDaddy VPS - Apache with WHM
2GB ECC DDR3 1600MHz
2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz
15 MB proc cache
60 GB 10k RPM hdd
PHP 7.0.15
MariaDB 10.1.21 with InnoDB engine
Reply With Quote