Quote:
Originally Posted by qualiteam
\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).
|
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