| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Help with "creating interface" in admin on 5.3 | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Help with "creating interface" in admin on 5.3
So most of my module is working now (except my new database column data got erased when I upgraded my dev site from 5.2 to 5.3)
The only part that isn't working is Code:
I tried using the kb for upgrading modules to 5.3 from 5.2 but it doesn't seem to work. Any help on the changes needed here?
__________________
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 |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Help with "creating interface" in admin on 5.3
\XLite\View\Model\Product is not used anymore since the 5.3.0 version.
You should look into decorating the following two classes: - \XLite\View\FormModel\Product\Info - defines form fields (for examples search in the soruce code for defineFields() method and how it uses static::compose() to combine existing and custom fields into groups) - \XLite\Model\DTO\Product\Info - translates model properties/methods to form fields and back (look into init() and populateTo() methods and how these use static::compose() and static::deCompose() methods when fields are to be grouped into lines). You don't need compose() and deCompose() methods if your custom fields appear as new lines (you use these methods only when your custom fields should appear along with other field in a single line, next to each other).
__________________
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 Last edited by qualiteam : 09-12-2016 at 01:34 AM. |
|||||||||
|
#3
|
|||||||||
|
|||||||||
Re: Help with "creating interface" in admin on 5.3
Quote:
I am at a complete loss... I have looked over the areas you mentioned and looked at other modules and this should be working Code:
But it isn't adding it to the self::SECTION_DEFAULT or anywhere for that matter...
__________________
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 |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Help with "creating interface" in admin on 5.3
Quote:
http://devs.x-cart.com/en/basics/adding_new_property_to_a_product/ - Is this KB ever going to be updated? Was told all of them would be updated by the time 5.3 went out of beta. Nevermind.. After a week or so of headaches I finally got it working (can't figure out how to do it with compose but atleast it is working).
__________________
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 |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Help with "creating interface" in admin on 5.3
The mentioned article is for X-Cart 5.2.x only.
For X-Cart 5.3.x you should check this one: http://devs.x-cart.com/en/basics/adding_new_property_to_a_product/adding_product_property_via_formmodel_api.html "Compose" methods are used to "group" multiple fields into a single line. For example, you want to add a custom field and display it to the right of the existing Price field. In this case you "compose" your custom field with the Price field. If your custom field should be displayed alone on a new form line, you don't need "compose" methods.
__________________
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 |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|