Adding multiple new properties to a product trouble
I am following the "Add a New Property to a Product" instructions and am having a little trouble adding multiple properties in X-Cart 5.4. Adding a single property works fine, but adding multiple properties is making the product description, name, images, and category disappear from the back and front end while displaying all the new properties.
My code for decorating viewer class: Code:
<?php Instructions code for decorating viewer class: Code:
<?php Any help will be most appreciated. |
Re: Adding multiple new properties to a product trouble
Code:
$schema = parent::defineFields(); You are overriding $schema with your custom line. You should be adding to it your new fields whether you want them to show |
Re: Adding multiple new properties to a product trouble
Thank you. Could you elaborate on how to do that?
|
Re: Adding multiple new properties to a product trouble
Would I just add each separately like this:
Code:
$schema = parent::defineFields(); etc. |
Re: Adding multiple new properties to a product trouble
You can do that, you can use array_merge as well
|
Re: Adding multiple new properties to a product trouble
Thank you. I appreciate the assistance.
|
All times are GMT -8. The time now is 11:15 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.