Magento 1.9.x script: add option to *existing* multiselect for products
- or -
Post a project like this2181
$60
- Posted:
- Proposals: 3
- Remote
- #1962390
- Awarded
Description
Experience Level: Intermediate
Need script based on attachment
Script van
- option to upload file
- file format is CSV with columns id or sku | atrtibute code | option to add
- on upload script does the following
1. check for sku or id, then looks up product
2. checks the attribute code: only process attribute type multiselect, skip other (take default attribute COLOR for testing)
3. open product on line of CSV based on sku or id
3. read color options from the loaded product
4. if color from csv starts with + then add if starts with - then remove option
5. read the color from csv and check if already in multiselect of current product:
if for example +red and already in multiselect of current product: then skip
if for example +red and not already in multiselect of current product: then add option value (so dont create new option, but rather select the existing option value): error if attribute valule does not yet exist
if for example -red and already in multiselect of current product: then remove option value from multiselect
if for example -red and not already in multiselect of current product: then skip
- report back on screen sku | attribute | added or removed | success or not | error msg
For the solution
a) create new standalone script
b) add ability to process multiselect to current import script (attached)
Prefered option B and review existing code
Script van
- option to upload file
- file format is CSV with columns id or sku | atrtibute code | option to add
- on upload script does the following
1. check for sku or id, then looks up product
2. checks the attribute code: only process attribute type multiselect, skip other (take default attribute COLOR for testing)
3. open product on line of CSV based on sku or id
3. read color options from the loaded product
4. if color from csv starts with + then add if starts with - then remove option
5. read the color from csv and check if already in multiselect of current product:
if for example +red and already in multiselect of current product: then skip
if for example +red and not already in multiselect of current product: then add option value (so dont create new option, but rather select the existing option value): error if attribute valule does not yet exist
if for example -red and already in multiselect of current product: then remove option value from multiselect
if for example -red and not already in multiselect of current product: then skip
- report back on screen sku | attribute | added or removed | success or not | error msg
For the solution
a) create new standalone script
b) add ability to process multiselect to current import script (attached)
Prefered option B and review existing code
Mark B.
99% (36)Projects Completed
17
Freelancers worked with
15
Projects awarded
26%
Last project
25 Apr 2018
Netherlands
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Hi Mark,
Attachment is missing.
621085
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies