Leafly Integration

Notes on the integration:
* Leafly Category, Leafly Unit and Leafly Count of 'Unit' are required by Leafy.
* Only the products which have those fields filled will start appearing on Leafly.
* 'Web Visibility' attribute could be used to control visibility on Leafly:

Enable Integration
  1. Go to Settings in the left navigation menu.

  2. Select the General Settings tab.

  3. Scroll down to Leafly Integration.

  4. Under ENABLE INTEGRATION, select Enabled.

  5. Scroll down and press Save.


Assign API key to Location
  1. Go to Settings in the left navigation menu.

  2. Select the Locations tab.

  3. Press the edit icon next to the location. 

  4. Scroll down to LEAFLY MENU KEY.

  5. Under LEAFLY MENU KEY, enter the API Key provided to you by Leafly.

  6. Press Save Changes.


Create the Attributes
  1. Go to Items in the left navigation menu.

  2. Press the Custom Attributes button in the upper right corner.

  3. Follow the steps below. All attributes must be created:

A. Leafly Category
  1. Press + New Product Attribute.

  2. Under ATTRIBUTE CODE, enter leafly_type.

  3. Under ATTRIBUTE NAME, enter Leafly Category.

  4. Under CUSTOM ATTRIBUTE TYPE, select String.

  5. Under FRONTEND INPUT TYPE, select Select.

  6. Under SELECT VALUES, press +Add New.

  7. Under VALUE and LABEL enter the following:
    VALUE: Accessory LABEL: Accessory
    VALUE: Seeds LABEL: Seeds

    VALUE: Clone LABEL: Clone

    VALUE: Flower LABEL: Flower

    VALUE: Edible LABEL: Edible

    VALUE: PreRoll LABEL: PreRoll

    VALUE: Concentrate LABEL: Concentrate
    VALUE: Cartridge LABEL: Cartridge

    VALUE: Topical LABEL: Topical

    VALUE: Other LABEL: Other

  8. Under SHOW ON PRODUCT LIST, select Enabled.

  9. Press Save Changes.



B. Leafly Unit
  1. Press + New Product Attribute.

  2. Under ATTRIBUTE CODE, enter leafly_unit.

  3. Under ATTRIBUTE NAME, enter Leafly Category.

  4. Under CUSTOM ATTRIBUTE TYPE, select String.

  5. Under FRONTEND INPUT TYPE, select Select.

  6. Under SELECT VALUES, press +Add New.

  7. Under VALUE and LABEL enter the following:
    VALUE: oz LABEL: Oz

    VALUE: g LABEL: G

    VALUE: each LABEL: Each

  8. Press Save Changes.


C. Leafly Count of 'Unit'
  1. Press + New Product Attribute.

  2. Under ATTRIBUTE CODE, enter leafly_amount.

  3. Under ATTRIBUTE NAME, enter Leafly Count of 'Unit'.

  4. Under CUSTOM ATTRIBUTE TYPE, select Floating Point Number.

  5. Under FRONTEND INPUT TYPE, select Text.

  6. Press Save Changes.


D. Strain Name
  1. Press + New Product Attribute.

  2. Under ATTRIBUTE CODE, enter leafly_strain.

  3. Under ATTRIBUTE NAME, enter Strain Name.

  4. Under CUSTOM ATTRIBUTE TYPE, select String.

  5. Under FRONTEND INPUT TYPE, select Text.

  6. Under UI COLUMN SIZE IN POS, enter 3.

  7. Under SHOW ON PRODUCT LIST, select Enabled.

  8. Press Save Changes.


E. Compound(CBD)
  1. Press + New Product Attribute.

  2. Under ATTRIBUTE CODE, enter leafly_cbd.

  3. Under ATTRIBUTE NAME, enter Compound(CBD).

  4. Under CUSTOM ATTRIBUTE TYPE, select Floating Point Number.

  5. Under UI COLUMN SIZE IN POS, enter 2.

  6. Under FRONTEND INPUT TYPE, select Text.

  7. Press Save Changes.


F. Compound(THC)
  1. Press + New Product Attribute.

  2. Under ATTRIBUTE CODE, enter leafly_thc.

  3. Under ATTRIBUTE NAME, enter Compound(THC).

  4. Under CUSTOM ATTRIBUTE TYPE, select Floating Point Number.

  5. Under UI COLUMN SIZE IN POS, enter 2.

  6. Under FRONTEND INPUT TYPE, select Text.

  7. Press Save Changes.