Pass WooCommerce business info (name, address, phone) to wizard

The WooCommerce fast path was returning empty business info. Now the
Playwright script extracts it from the page and the CFML passes it through.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-03-07 20:18:17 -08:00
parent 41cf2820f6
commit b0fa48ab64

View file

@ -1114,8 +1114,14 @@
<cfset wooModifiers = structKeyExists(wooResult, "modifiers") ? wooResult.modifiers : []> <cfset wooModifiers = structKeyExists(wooResult, "modifiers") ? wooResult.modifiers : []>
<cfset wooBiz = structKeyExists(wooResult, "business") ? wooResult.business : {}>
<cfset menuData = { <cfset menuData = {
"business": { "name": "", "address": "", "phone": "", "hours": "" }, "business": {
"name": structKeyExists(wooBiz, "name") ? wooBiz.name : "",
"address": structKeyExists(wooBiz, "address") ? wooBiz.address : "",
"phone": structKeyExists(wooBiz, "phone") ? wooBiz.phone : "",
"hours": structKeyExists(wooBiz, "hours") ? wooBiz.hours : ""
},
"categories": wooCategories, "categories": wooCategories,
"items": wooItems, "items": wooItems,
"modifiers": wooModifiers, "modifiers": wooModifiers,