| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
how I add a new field to orders in admin area ? | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Re: how I add a new field to orders in admin area ?
You should change your Product class as follows:
PHP Code:
X-Cart 5.3 doesn't add get/set methods automatically, so now you should add these methods manually (if you need them in your modules).
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#12
|
|||||||||
|
|||||||||
Re: how I add a new field to orders in admin area ?
Quote:
Doesn't seem to be working with 5.3 in skins\admin\en\modules\EBLIEB\GlasPak\ I have Code:
but it doesn't seem to add to the admin for each product like it did in 5.2 ... This was based off of http://devs.x-cart.com/en/basics/adding_new_property_to_a_product/ Any chance this will be updated in the future for 5.3?
__________________
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 |
|||||||||
#13
|
|||||||||
|
|||||||||
Re: how I add a new field to orders in admin area ?
The model and page for modify product in 5.3.x changed a lot. While you still should add the new fields to table the set/get functions and where/how fields appear on the modify page in admin require more changes to other (new) classes.
Look at XLite/Model/DTO/Product and XLite/View/FormModel/Product
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#14
|
|||||||||
|
|||||||||
Re: how I add a new field to orders in admin area ?
Quote:
This is going to be a huge headache to upgrade unless they change that KB. Also the google adwords order js wont convert over. Took me a while to learn the old system and smarty and now everything is changed again and seems to be more complicated
__________________
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 |
|||||||||
#15
|
|||||||||
|
|||||||||
Re: how I add a new field to orders in admin area ?
So I moved all the skins to the proper location, changed the decorator and everything that was suggested and it still doesn't work. I uploaded the latest changes. The KB still hasn't been updated eventho my sites are now nagging me to do the 5.3 upgrade (can't until this issue is resolved).
__________________
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 |
|||||||||
#16
|
|||||||||
|
|||||||||
Re: how I add a new field to orders in admin area ?
I believe we discussed this in other forum thread.
Anyway, here is the article that explains how you should deal with custom fields on the Edit Product page in X-Cart 5.3.x: http://devs.x-cart.com/en/basics/adding_new_property_to_a_product/adding_product_property_via_formmodel_api.html
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#17
|
|||||||||
|
|||||||||
Re: how I add a new field to orders in admin area ?
Quote:
Is your documentation right? <X-Cart>/classes/XLite/Module/XCExample/NewProductFieldDemo/View/Model/Product.php Should that be <X-Cart>/classes/XLite/Module/XCExample/NewProductFieldDemo/View/FormModel/Info.php ?
__________________
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 |
|||||||||
#18
|
|||||||||
|
|||||||||
Re: how I add a new field to orders in admin area ?
Ouch. I believe you're right as the code example (that is below the wrong class name) uses the correct one.
I've reported it to the XC5 team.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|