WebSite X5Help Center

 
Rick De Rooij
Rick De Rooij
User

Stock control in shopping cart: make my own  en

Autor: Rick De Rooij
Visitado 778, Followers 1, Compartido 0  

Stock control: do it myself? I want to try to build my own stock control within X5. I think there are four actions to be dealt with: 1. To check availability, typically when a product page is viewed only the available items should be shown. 2. Make a reservation for an item, typically when a customer adds an item to the cart. 3. Undo a reservation, when an item is removed from the cart or when the cart is emtied. 4. Convert the reservation into an order, typically when the customer confirms the order. The handling of the order and the database management can be done outside the website itself. To be able to do this I need access to the shopping cart, using .php code. Where can I find detailed instructions on how to get this access and on how to use it?

Publicado en
3 RESPUESTAS
Incomedia
Claudio D.
Incomedia

Hello Rick,

You can see directly the source code in the php files of the cart you find under the cart folder of the project and other functionalities used under the res folder.

Unfortunately we do not have instruction of how to modify the source code of the projects and we cannot give support to custom code.

The only way would be to check the project files and try to modify them.

Please feel free to write back if you need more information.

Leer más
Publicado en de Claudio D.
Rick De Rooij
Rick De Rooij
User
Autor

If I modify the php-files of the cart directory, they will be overwritten everytime I modify the website using X5, right? So I have to redo the modifications everytime a change has been made. That is not a very sophisticated solution, I think. Is there no other way?

Leer más
Publicado en de Rick De Rooij
Incomedia
Claudio D.
Incomedia

Hello Rick,

Yes correct the files will be overwritten everytime you export the project and you can or choose to keep a copy of the modified files and then after to upload you replace them or you uase a custom script for the whole system so you will have all the options and these will be not overwritten when you uplaod the project.

Hope this helps.

Leer más
Publicado en de Claudio D.