Track Google Ads orders into Sylius.
/!\ Currently in alpha /!\
$ composer require ikuzostudio/google-ads-plugin
Add plugin dependencies to your config/bundles.php
file:
return [
// ...
Ikuzo\SyliusGoogleAdsPlugin\IkuzoSyliusGoogleAdsPlugin::class => ['all' => true],
];
Import required config in your config/packages/_sylius.yaml
file:
# config/packages/_sylius.yaml
imports:
...
- { resource: "@IkuzoSyliusGoogleAdsPlugin/Resources/config/app/config.yaml"}
Extend your Order entity
// [...]
use Sylius\Component\Core\Model\Order as BaseOrder;
use Ikuzo\SyliusGoogleAdsPlugin\Model\GoogleAdsOrderInterface;
use Ikuzo\SyliusGoogleAdsPlugin\Model\GoogleAdsOrderTrait;
/**
* @ORM\Table(name="sylius_order")
* @ORM\Entity()
*/
class Order extends BaseOrder implements GoogleAdsOrderInterface
{
use GoogleAdsOrderTrait;
}
Update your database
$ bin/console doctrine:schema:update --force