stefandoorn/google-shopping-category-form-type-bundle

Form type to select a Google Shopping Category ID


README

Build Status Dependabot Status

GoogleShoppingCategoryFormTypeBundle

Installation

    composer require stefandoorn/google-shopping-category-form-type-bundle

Usage

In your form, use:

    $builder->add('googleShoppingCategory', GoogleShoppingCategoryType::class);

The locale of the category list downloaded can be adjusted by injecting another locale into the downloader service:

    google_shopping_category.downloader.category:
        class: StefanDoorn\GoogleShoppingCategoryFormTypeBundle\Downloader\GoogleShoppingCategoryList
        arguments:
            - 'nl_NL'