X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   General questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=66)
-   -   Next-sdk core (https://forum.x-cart.com/showthread.php?t=75288)

Soptareanu Alex 05-04-2017 02:27 AM

Next-sdk core
 
I want to create a new module that contains an item list of my all products including variants.For this purpose i tried to use create-crud-items macro (using next-sdk kitt). But after call this command using my terminal and all the files was created i got some errors when I re-deployed my store. I think that is because of the difference between core version.I using X-Cart 5.3.2.8 version.
The question is that there exist an update for sdk core for dealing with new version of x-cart ? and if not, what should i do ?!
Or some tips in order to do this task manualy. :( :(

qualiteam 05-04-2017 12:15 PM

Re: Next-sdk core
 
Please provide more details. Do you need a plain list of variants of your products? Or do you need a pager for it? Should it be a read-only list? Who will see it? And so on...

As for the SDK. I think you are right and the SDK is outdated now. But I don't think that you need it there. CRUD is for creating backend pages to manage database entities (and usually these are entities of a new Model class). But in your case it is a read-only list of existing models (as far as I understand), so you should look into working with \XLite\View\ItemsList\AItemList class (see how other classes extend their logic from this class).

Soptareanu Alex 05-04-2017 11:18 PM

Re: Next-sdk core
 
1 Attachment(s)
Yes, I want to create a backend page in admin zone that lists all the variants of my products (The Entity is \ProductVariant) but i also want to be able to add, edit or delete some entry. The SDK works fine and was the solution but only for an ancient version such as 5.1.* .

qualiteam 05-15-2017 10:55 PM

Re: Next-sdk core
 
I've got a reply from the XC5 dev team. They have plans on updating macros in the DSK to make them compatible with the 5.3.x version. But there is no date that I could announce yet, unfortunately.

The macro should work with the latest 5.2.x version. So, as a workaround you may try to use the macro on a 5.2.x installation, and then copy'n'convert the files over to your 5.3.x installation.


All times are GMT -8. The time now is 10:05 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.