News:

AbanteCart v1.4.2 is released.

Main Menu
support

Updating option qty

Started by vsdoug, May 14, 2025, 02:22:16 PM

Previous topic - Next topic

vsdoug

I set up a test shop, have one shoe item with 15 sizes. Im trying to import a CSV with the option.sku and option.qty. It says item description is needed so I added that too, my file look slike

forum thinks i have links but I dont, see screenshot..

any idea what im doing wrong? Still evaluating AC and updating qty by a csv is a major must-have.

Basara

Hello.
Please try again to attach the CSV file and screenshot of the mapping to the fields when you import

vsdoug


vsdoug


vsdoug

I tried using SKU and Option Name and get same error

2025-05-16 15:19:43 - Unknown Error: AbanteCart core v.1.4.2 array_merge_recursive(): Argument #1 must be of type array, null given
Trace:
#0 /home/public_html/AbanteCart/admin/model/tool/import_process.php(1110): array_merge_recursive(NULL, Array)
#1 /home/public_html/AbanteCart/admin/model/tool/import_process.php(235): ModelToolImportProcess->buildDataMap(Array, Array, Array, NULL)
#2 /home/public_html/AbanteCart/admin/model/tool/import_process.php(179): ModelToolImportProcess->addUpdateProduct(Array, Array, 1, 0)
#3 /home/public_html/AbanteCart/admin/controller/task/tool/import_process.php(149): ModelToolImportProcess->process_products_record(6, Array, Array)
#4 /home/public_html/AbanteCart/admin/controller/task/tool/import_process.php(48): ControllerTaskToolImportProcess->_process(6, 37)
#5 /home/public_html/AbanteCart/core/engine/dispatcher.php(308): ControllerTaskToolImportProcess->processRows(6, 37, Array)
#6 /home/public_html/AbanteCart/core/engine/dispatcher.php(204): ADispatcher->dispatch('')
#7 /home/public_html/AbanteCart/core/lib/task_manager.php(250): ADispatcher->dispatchGetOutput()
#8 /home/public_html/AbanteCart/task.php(106): ATaskManager->runStep(Array)
#9 {main} in /home/public_html/AbanteCart/admin/model/tool/import_process.php on line 1110

Basara

Hello.
To update existing products, you must have an import file that includes the option name, option value name, and other relevant details. If the option name is missing, the import process won't recognize which attribute to update and may end up removing the option instead.

vsdoug

#6
cant add a reply, forum thinks im spam. more errors. it wont update now because it can't find the product by name.
2025-05-21 13:28:04 - Processing record for product VS Power Throw.
2025-05-21 13:28:04 - Error: Update only action is set, but product not found. Skipping!

Basara

Quote from: vsdoug on May 21, 2025, 05:06:10 PM
cant add a reply, forum thinks im spam. more errors. it wont update now because it can't find the product by name.
2025-05-21 13:28:04 - Processing record for product VS Power Throw.
2025-05-21 13:28:04 - Error: Update only action is set, but product not found. Skipping!
Hello. Did you check the "Update if exist" box next to the product name?

vsdoug

no because if I do that, it erases all but the last Size option (15.0). and i have to recreate them again.

2025-05-22 8:35:28 - Processing record for product VSPowerThrow.
2025-05-22 8:35:28 - Updated product VSPowerThrow with ID 1
2025-05-22 8:35:28 - Creating product option for product ID 1
2025-05-22 8:35:28 - Created product option 'Size' with ID 52

Maybe someone who has shoes they update can post a sample of what a working csv would look like because everything I try either fails or deletes options.

vsdoug

If I leave the box unchecked, it can't find the product. (i tried removing spaces from the name to see if that had any effect)

update;VSPowerThrow;Size;6;17
update;VSPowerThrow;Size;6.5;22
update;VSPowerThrow;Size;7;23
update;VSPowerThrow;Size;7.5;22
update;VSPowerThrow;Size;8;20
update;VSPowerThrow;Size;8.5;10

2025-05-22 8:53:19 - Processing record for product VSPowerThrow.
2025-05-22 8:53:19 - Error: Update only action is set, but product not found. Skipping!

Basara


vsdoug

the wizard may be the issue, if I'm mapping things correctly, the wizard should import it fine, but theres no way i can put all the option parameters in the sample file into a daily csv file to just to adjust stock levels. this makes it unusable for my purposes. thanks for the help anyway.

Forum Rules Code of conduct
AbanteCart.com 2010 -