Publish catalog after XML batch import

Vote:
 

Hello,

This question may sound pretty dumb but, so far, I wasn't able to find a real answer.

Long story short - I have a process through which I'm importing a catalog through XML files - this process works very well without any issues. My problem is the following: everytime the import process finishes, I see that the catalog is in "Edit mode" and it needs to be manually publish - don't understand why (sort of) but what I care is how can I publish the catalog at the end of the import process through an automated process (call a service API method or something). Can you please recommend any method?

Another strange question - starting few months ago (I don't remember the version) we can have a custom catalog model class that can have custom properties (like any other node / entry / etc.) - my problem is that after the batch import finishes I see that my catalog (that was created having a custom type) is now a standard Catalog type. Do I have any kind of way of setting the type of the catalog through the XML import?

Thank you,

Evdin.

#325426
Jul 15, 2024 9:03
Vote:
 

Hello again,

For the first question, I found the answer myself - the isActive attribute was set to false and this is why the catalog wasn't automatically published. Now everything is OK.

For the second question, I included also the MetaData node (exactly like the Catalog Node structure) but without any effect.

Thank you,

Evdin

#325427
Jul 15, 2024 9:14
Vote:
 

Hi Evdin

Are you saying that the catalog in the XML file is the custom type? Or that one exists on the site, and it is changed upon importing the XML?

#325482
Jul 16, 2024 15:03
Vote:
 

Hi,

The one that exists on the site because only this way you can create a custom type catalog. I don't have any way of specifying the metatype for the catalog that I import and it automatically gets converted to the standard / default catalog type.

Thank you,

Evdin

#325483
Edited, Jul 16, 2024 15:52
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.