Skip to content

Items and Category (ies) #3

@cniemann88

Description

@cniemann88

Hey I am trying to figure out 2 things, and couldn't find anything yet, hope you can help me out.

  1. How do I add an item to an maybe existing category (i am not sure if it exists). I know that if i use Category_SaveAndGet then it will just create a new category, but this is definetly not what i want. I know i can use Category_GetByName, but that throws a soapException if the cat does not exist, and i would rather not catch exception... is there something that returns a boolean ?
    I saw Category_Exists, but its unclear how to use this, since it takes picatID as a parameter, but i dont have that without getting that category first from the AC Database.

and the more important one for me:
2. how do you add multiple categories to a single item ?
I know that by using a csv upload file it would look like this: Jerseys|Jerseys > Kids Jerseys|Kids|Kids > Childrens but using otherCategories on the ProductTrans doesnt work, and carID is not an array...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions