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:
parent
41cf2820f6
commit
b0fa48ab64
1 changed files with 7 additions and 1 deletions
|
|
@ -1114,8 +1114,14 @@
|
|||
|
||||
<cfset wooModifiers = structKeyExists(wooResult, "modifiers") ? wooResult.modifiers : []>
|
||||
|
||||
<cfset wooBiz = structKeyExists(wooResult, "business") ? wooResult.business : {}>
|
||||
<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,
|
||||
"items": wooItems,
|
||||
"modifiers": wooModifiers,
|
||||
|
|
|
|||
Reference in a new issue