Leave imported prices untouched

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
VerteXVaaR
Posts: 4
Joined: 01 Jun 2021, 12:03

Leave imported prices untouched

Post by VerteXVaaR » 02 Jun 2021, 14:58

Specific Example: Given that there is a system that produces product CSV files on a daily basis. These files are imported each night automatically. New Products will be imported including their prices. The Shop owner however can change the imported price in the shop. On the next import run, the price must not be overwritten by the import.

Generalized question: Can i - somehow - configure or program a solution to skip the import of certain fields, attributes, or related values (like media) based on external or dynamic logic (like an api call, php closure, or database field value)?

User avatar
aimeos
Administrator
Posts: 7923
Joined: 01 Jan 1970, 00:00

Re: Leave imported prices untouched

Post by aimeos » 03 Jun 2021, 08:58

The best way would be to create your own price processor for the product CSV importer where you can implement what you want:
https://github.com/aimeos/ai-controller ... andard.php

You can configure your new processor using:

Code: Select all

controller/common/product/import/csv/processor/price/name => Myproject
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply