Support is online

Updating the e-shop from two different XML feeds #78917

Open andrejk opened this topic Thursday, 04 January 2024 · 8 replies
Author

Hello,

I have a project. Joomla 4 + VM 4. I want to update the store regularly - 3-4 times a week (about 20000 products). The problem is that I have 2 update xml feeds from two different vendors. How could I update the eshop with both feeds without deleting the products that are no longer in the feed. Is it possible?

Best regards
Andrej

Support

Hello Andrej,

How could I update the eshop with both feeds without deleting the products that are no longer in the feed. Is it possible?

Products are not deleted on import by default. If the products are not in feed they are not updated on import but they still exists in database. You can have two different import templates to run the two XMLs and update the existing products. Hope that answers your question.

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hello,

thank you for your answer,
yes I have 2 templates, but then how do I update the products when they are no longer in the feed?

Best regards
Andrej

Support

Hello Andrej,

but then how do I update the products when they are no longer in the feed?

You cannot update products which are not in the feed. Products which are in XMLs feed are only updated on import.

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hello,

I can, if I have one feed ;-) then I would delete all products that are not in the feed. But now I have 2 feeds.
That's why I'm wondering what is the option.
Example:
I import 12000 products from the first feed
I import 6000 products from the second feed

two days later update:
There are 11000 products in the first feed - 1000 products have been eliminated by the supplier

There are 5999 products in the second feed - 1 product has been removed from the offer by the supplier

How could I make the eshop up to date?

BEst regards
Andrej

Support

Hello Andrej,

I can, if I have one feed ;-) then I would delete all products that are not in the feed.

With update you mean removing products from database which are not in feed?

If I may ask are you deleting products as explained in Auto delete of discontinued products document?

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Yes,

But I would just like to know if it is possible to keep the eshop up to date with two different XML feeds.

Best regards

Andrej

Support

Hello Andrej,

In the product import template for VirtueMart we have the option to unpublish all products before import. What is unpublished can be controlled by selecting which manufacturers should be unpublished if you do not want all unpublished.

So if you do not use the manufacturer field or if they are different based on feed you can use that to unpublish products selectively before import. Any unpublished products can be deleted afterwards if you wish.

Perhaps that is an option you can use.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hello,

thank you very much
ok I will try this option with the manufacturers

Best regards
Andrej

Log in to reply to this topic.