-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug (cannot fill shopping cart) #87
Conversation
Without this change, DOL_DOCUMENT_ROOT is not defined and trying tom place an item in the shopping cart results in an error.
@Daoud-mohamed is this fix ok for you ? |
@priojk @eldy I think this issue is due to not loading the environment for pages of type SERVICE_PAGE . |
So @priojk can you check if after having got the last version and regenerating the website pages (you have a button for this on the website top toolbar), you still have the trouble (you should not) with no need foe this pr ? |
Thanks for looking into this. Actually, I installed from the latest Git resources about a week ago. Since the mentioned PR was merged already on July 3rd, it was already included. Anyway, I just checked again: if I do not add ' require "master.inc.php";' at the beginning of page 57 (_service_page_Ajax) I cannot add an item to the cart and a popup just says "Error". Since I did not yet dig very deep into this project, I cannot fully exclude configuration issues or other stupid things on my side. |
@priojk It should start like that: If it does not start with an include for master.inc.php, you should get the latest version of Dolibarr and the marketplace module, then either reimport the template or reload the marketplace module to regenerate the template pages. |
I just tested this with the very latest Dolibarr v20 and the latest marketplace module, including the three not yet merged PRs. I also reloaded the marketplace module and re-generated the files. And I still have the error message when trying to fill the shopping cart. The page57 looks like this: By manually changing the include of master.inc.php, I can fill the shopping cart and can complete the full checkout procedure including the payment. Additional question: is the search supposed to be working already? There I have problems as well, but this may be unrelated and I need to dig deeper to better understand the problem. -> could clarify this, there were three lines to fix to make it work. What would be the best way to submit these fixes? Since they happen on the website, it seems not optimal to submit a patch to the sql file containing the website. |
Several PRs used in this template are still in the develop branch of dolibarr, and they will probably be merged in V21 of Dolibarr. To resolve the issue, switching to the develop branch of Dolibarr should help. Regarding the search functionality, it works well and now supports multilingual search. However, it also depends on a PR currently in Dolibarr’s develop branch. Since this template is still under testing, and we've made some core updates to Dolibarr that are also in the develop branch, it is necessary to use the develop version of Dolibarr until the next release. If you continue to encounter errors after switching both dolibarr and dolibarr-foundation to the develop branch, feel free to submit fixes by providing the SQL file containing the website data. |
@Daoud-mohamed |
Without this change, DOL_DOCUMENT_ROOT is not defined and trying to place an item in the shopping cart results in an error.