| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
x5 New 'Short Description' Field in Categories - Solution and Question... | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
x5 New 'Short Description' Field in Categories - Solution and Question...
Using the example here as a guide: http://kb.x-cart.com/display/XDD/Adding+new+property+to+a+product
I've added a new field to the category admin screen to add short descriptions. My code looks like this: In XLite/Module/Client/ClientCatsShortDescriptions/Model/CategoryTranslation.php Code:
In XLite/Module/Client/ClientCatsShortDescriptions/View/Model/Category.php Code:
in my template listing the categories (cut down for clarity)... Code:
So this works very nicely except in admin the form field for entering the short descriptions is at the bottom of the page. How can I move it to be above the normal description box? I tried Code:
I guess it's something to do with the module being called last on the page?
__________________
Core version: 5.5.xx |
|||||||
#2
|
|||||||||
|
|||||||||
Re: x5 New 'Short Description' Field in Categories - Solution and Question...
In your __construct() class you must reorganize the schemaDefault array and put your shortDescr field right above usual Description field instead of adding it to the bottom of the array.
Please, let me know if it makes sense to you. Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#3
|
|||||||
|
|||||||
Re: x5 New 'Short Description' Field in Categories - Solution and Question...
Ah.. I did this...
In XLite/Module/Client/ClientCatsShortDescriptions/View/Model/Category.php now I have Code:
Seems to work. Cool!
__________________
Core version: 5.5.xx |
|||||||
#4
|
|||||||
|
|||||||
Re: x5 New 'Short Description' Field in Categories - Solution and Question...
UPDATE
For 5.2.6 function method needs to look like this... Code:
__________________
Core version: 5.5.xx |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|