feat: add Refresh Prices button to pull WC prices for existing mappings

Existing mapped products had no WC price since they were fetched before
the woo_price field existed. action_refresh_prices fetches current prices
from WC API for all mapped products.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-03-31 22:35:13 -04:00
parent 919dbcb4cf
commit 3ea283247a
3 changed files with 55 additions and 0 deletions

View File

@@ -44,6 +44,10 @@
t-att-disabled="state.loading">
<i class="fa fa-refresh me-1"/> Sync Now
</button>
<button class="woo-btn woo-btn-secondary" t-on-click="refreshPrices"
t-att-disabled="state.loading">
<i class="fa fa-dollar me-1"/> Refresh Prices
</button>
<!-- Spacer -->
<div class="flex-grow-1"/>