descom/descommarket-feeds

DescomMarket Feeds

1.15.0 2024-09-16 10:05 UTC

README

tests analyze style

Add to .env

GOOGLE_API_CREDENTIALS_PATH=

GOOGLE_MERCHANT_ID=
GOOGLE_MERCHANT_QUEUE_CONNECTION=sync
GOOGLE_MERCHANT_QUEUE_TRIES=10

GOOGLE_INDEX_ENABLED=
GOOGLE_INDEX_QUEUE_CONNECTION=sync
GOOGLE_INDEX_QUEUE_TRIES=10

Add config

php artisan vendor:publish --provider="DescomMarket\Feeds\DescomMarketFeedsServiceProvider"

Google Indexer Url in Search Console

Automatically index your products in Google Search Console if dispatch event:

DescomMarket\Common\Events\Catalog\Products\ProductPublished

You can use this API to index your products in Google Search Console

use DescomMarket\Feeds\Google\Index\Services\EnqueueUrlService;

EnqueueUrlService::publish($url);
EnqueueUrlService::unpublish($url);

Or use events:

use DescomMarket\Common\Events\Urls\UrlCreated;
use DescomMarket\Common\Events\Urls\UrlDeleted;