1b.app
Link copied -

Error status in the action to unload goods to opencart - failure in opencart

Good day The problem remained. I am attaching a screenshot, while the action seems to be working, everything is being downloaded, updated over time. But bugs are noticed: for example, when renaming a category in onebox and moving goods to it - these categories then do not work in opencard (they do not open).
Original question is available on version: ua

Answers:

I am providing a screenshot of a message from the support of the opencard module (it is related to categories that are broken). The screenshot says that the solution can be through onebox
10.10.2024, 11:37
Original comment available on version: ua

I am also attaching 2 screenshots
10.10.2024, 11:40
Original comment available on version: ua

Good afternoon.
1. We do not use methods of updating categories from files that are on your server, you can consider them depracated. We update categories through the database with direct requests
2. If something doesn't work for you, make it so that one category doesn't open, check with the developer which entry is missing in which table or where the IDs haven't changed and we'll change it in our integration.
10.10.2024, 12:13
Original comment available on version: ru


let him cook
OneBox production wrote:
Good day
1. We do not use methods of updating categories from files that you have on the server, it can be considered that they are depracated. We update categories through the database with direct requests
2. If something doesn't work for you, make sure that it doesn't open for one category, check with the developer which entry in which table is missing or where the Yiddish symbols have not changed and we will change it in our integration.

Can you change this information (from the developer of the record) in your integration:
After updating the category, you need to do repair
see the method
in $this->model_catalog_category->repairCategories();
admin/model/catalog/category.php
public function repairCategories($parent_id = 0) {
10.10.2024, 12:26
Original comment available on version: ua


Bobir Denis Viktorovych wrote:

let him cook
OneBox production wrote:
Good day
1. We do not use methods of updating categories from files that you have on the server, it can be considered that they are depracated. We update categories through the database with direct requests
2. If something doesn't work for you, make sure that it doesn't open for one category, check with the developer which entry in which table is missing or where the Yiddish symbols have not changed and we will change it in our integration.

Can you change this information (from the developer of the record) in your integration:
After updating the category, you need to do repair
see the method
in $this->model_catalog_category->repairCategories();
admin/model/catalog/category.php
public function repairCategories($parent_id = 0) {

drop the code of this function, I'll look. And clarify, is this the basic code of some version of OpenCard or some module?
10.10.2024, 13:22
Original comment available on version: ua


let him cook
OneBox production wrote:

Bobir Denis Viktorovych wrote:

let him cook
OneBox production wrote:
Good day
1. We do not use the methods of updating categories from the files that you have on the server, it can be considered that they are depracated. We update categories through the database with direct requests
2. If something is not working for you, make one category so that it does not open, check with the developer which record is missing in which table or where the Yiddish symbols have not changed and we will change it in our integration.

Can you change this information (from the developer of the record) in your integration:
After updating the category, you need to do repair
see the method
in $this->model_catalog_category->repairCategories();
admin/model/catalog/category.php
public function repairCategories($parent_id = 0) {

drop the code of this function, I'll look. And clarify, is this the basic code of some version of OpenCard or some module?

This is an openkart core from 1.5
admin/model/catalog/category.php
10.10.2024, 14:04
Original comment available on version: ua

repairCategories() method is available since 1.5.6
Allows you to create a quick category tree
10.10.2024, 14:13
Original comment available on version: ru

We also work with the category path, you need to enable the "Export the main category tree" setting in the action - then the paths will also have to change. Try it
10.10.2024, 14:26
Original comment available on version: ru

If suddenly the setting does not help, we can do repairCategories for the entire tree when exporting goods (although as far as I can see we do the same thing, just not as radically). It will take 1 hour in the form of setting.
10.10.2024, 14:29
Original comment available on version: ru

Unfortunately, I don't know what your requests are, how you do it, because the files that are there (api/oneboxsync), as I understand it, do not work
Because those that are available are very "bad"
$this->db->query("REPLACE INTO `" . DB_PREFIX . "category_path` (`category_id`, `path_id`, `level`) values ​​('" . $id . "', '" . $id . "', '1')" );
ESPECIALLY level = '1'
10.10.2024, 14:43
Original comment available on version: ua

We do not use this code.
10.10.2024, 14:53
Original comment available on version: ru

Yes, I already understood
you need to enable the "Export main category tree" setting in the action
It helped
Thank you
10.10.2024, 14:56
Original comment available on version: ua


let him cook
OneBox production wrote:
We also work with path categories, you need to enable the "Export main category tree" setting in the action - then the paths will also have to change. Try it

Installed as if everything is working. Thank you! Let's see in a couple more days and write back finally
10.10.2024, 15:02
Original comment available on version: ua

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment