Skip to content

Commit 75c6ee4

Browse files
committed
Fix error when installing vendor dir directly to build
1 parent 31744e0 commit 75c6ee4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ A WooCommerce plugin that automatically generates and delivers product feeds to
1919
- Running [Build Production Zip](https://github.com/woocommerce/OpenAI-Product-Feed/actions/workflows/build-production-zip.yml) workflow manually for your selected branch
2020
2. **Upload** the zip file via WordPress admin (Plugins > Add New > Upload Plugin) or extract to `/wp-content/plugins/`
2121
3. **Activate** the plugin through WordPress admin
22-
4. Go to **WooCommerce > Settings > Integrations > OpenAI** for OpenAI Product feed.
22+
4. Go to **WooCommerce > Settings > Integrations > Agentic Commerce** for OpenAI Product feed.
23+
- This settings requires the hidden Woo core feature flag `agentic_checkout` enabled. Enable it by CLI command: `wp option update woocommerce_feature_agentic_checkout_enabled 'yes'`

bin/build-prod-zip.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ mkdir -p ./build/${PLUGIN_SLUG}
2626

2727
echo ""
2828
echo "Step 3: Installing production dependencies..."
29-
COMPOSER_VENDOR_DIR=./build/${PLUGIN_SLUG}/vendor composer install --no-dev --optimize-autoloader
29+
COMPOSER_VENDOR_DIR=./vendor_prod composer install --no-dev --optimize-autoloader
30+
mv ./vendor_prod ./build/${PLUGIN_SLUG}/vendor
3031

3132
echo ""
3233
echo "Step 4: Copying files and folders..."

0 commit comments

Comments
 (0)