Include imageUrl on WooCommerce items for wizard image download

The wizard checks item.imageUrl to decide whether to skip the image
upload step and download images from remote URLs instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-03-07 16:47:06 -08:00
parent a7138ba958
commit 8fd0ccb8da

View file

@ -1090,6 +1090,7 @@
<cfset itemId = "item_" & wi> <cfset itemId = "item_" & wi>
<cfset itemMods = structKeyExists(wooResult, "itemModifierMap") AND structKeyExists(wooResult.itemModifierMap, wItem.name) ? wooResult.itemModifierMap[wItem.name] : []> <cfset itemMods = structKeyExists(wooResult, "itemModifierMap") AND structKeyExists(wooResult.itemModifierMap, wItem.name) ? wooResult.itemModifierMap[wItem.name] : []>
<cfset wItemImageUrl = structKeyExists(wItem, "imageUrl") AND len(trim(wItem.imageUrl)) ? trim(wItem.imageUrl) : "">
<cfset arrayAppend(wooItems, { <cfset arrayAppend(wooItems, {
"id": itemId, "id": itemId,
"name": wItem.name, "name": wItem.name,
@ -1097,7 +1098,8 @@
"description": structKeyExists(wItem, "description") ? wItem.description : "", "description": structKeyExists(wItem, "description") ? wItem.description : "",
"category": catName, "category": catName,
"modifiers": itemMods, "modifiers": itemMods,
"hasModifiers": arrayLen(itemMods) GT 0 "hasModifiers": arrayLen(itemMods) GT 0,
"imageUrl": wItemImageUrl
})> })>
<cfif structKeyExists(wItem, "imageUrl") AND len(trim(wItem.imageUrl))> <cfif structKeyExists(wItem, "imageUrl") AND len(trim(wItem.imageUrl))>