props; $tools = WaicUtils::getArrayValue($props['settings'], 'tools', array(), 2); ?>
WaicUtils::getArrayValue($tools, 'prod_enabled', 0, 1), )); ?>
WaicUtils::getArrayValue($tools, 'prod_prompt', __('When a user asks about products, items, or anything related to our store catalog.', 'ai-copilot-content-generator')), 'rows' => 6, )); ?>
WaicUtils::getArrayValue($tools, 'prod_taxonomies', 0, 1), )); ?>
WaicUtils::getArrayValue($tools, 'prod_limit', 3, 1), 'attrs' => 'class="wbw-small-field"', )); ?>
0, 'hide_empty' => 0, 'orderby' => 'name', 'order' => 'asc', ); $workspace = WaicFrame::_()->getModule('workspace'); $categories = $workspace->getTaxonomyHierarchy('product_cat', $args); ?>
array( '' => __('All products', 'ai-copilot-content-generator'), 'cat' => __('Specific categories', 'ai-copilot-content-generator'), 'ids' => __('Specific products', 'ai-copilot-content-generator'), ), 'value' => $modeInclude, 'attrs' => 'class="wbw-small-field"', )); ?>
$categories, 'value' => WaicUtils::getArrayValue($tools, 'prod_inc_cat'), )); ?>
WaicUtils::getArrayValue($tools, 'prod_inc_ids'), )); ?>
array( '' => __('None', 'ai-copilot-content-generator'), 'cat' => __('Specific categories', 'ai-copilot-content-generator'), 'ids' => __('Specific products', 'ai-copilot-content-generator'), ), 'value' => $modeExclude, 'attrs' => 'class="wbw-small-field"', )); ?>
$categories, 'value' => WaicUtils::getArrayValue($tools, 'prod_exc_cat'), )); ?>
WaicUtils::getArrayValue($tools, 'prod_exc_ids'), )); ?>
array( 'h' => __('Horizontal', 'ai-copilot-content-generator'), 'v' => __('Vertical', 'ai-copilot-content-generator'), ), 'value' => $modeCards, 'attrs' => 'class="wbw-small-field"', )); ?>
WaicUtils::getArrayValue($tools, 'prod_card_image', 1, 1, false, true, true), )); ?>
WaicUtils::getArrayValue($tools, 'prod_card_name', 1, 1, false, true, true), )); ?>
WaicUtils::getArrayValue($tools, 'prod_card_desc', 0, 1), )); ?>
WaicUtils::getArrayValue($tools, 'prod_card_price', 1, 1, false, true, true), )); ?>
WaicUtils::getArrayValue($tools, 'prod_card_cat', 0, 1), )); ?>
WaicUtils::getArrayValue($tools, 'prod_card_featured', 0, 1), )); ?>
WaicUtils::getArrayValue($tools, 'prod_card_cart', 1, 1, false, true, true), )); ?>