"> <td class="label"> <label for="<?php echo sanitize_title($attribute_name) . '_' . $bundled_item->item_id; ?> "><?php echo wc_attribute_label($attribute_name); ?> <abbr class="required" title="<?php _e('Required option', 'woocommerce-product-bundles'); ?> ">*</abbr></label> </td> <td class="value"><?php $selected = isset($_REQUEST[$bundle_fields_prefix . 'bundle_attribute_' . sanitize_title($attribute_name) . '_' . $bundled_item->item_id]) ? wc_clean($_REQUEST[$bundle_fields_prefix . 'bundle_attribute_' . sanitize_title($attribute_name) . '_' . $bundled_item->item_id]) : $bundled_item->get_selected_product_variation_attribute($attribute_name); WC_PB_Core_Compatibility::wc_dropdown_variation_attribute_options(array('options' => $options, 'attribute' => $attribute_name, 'name' => $bundle_fields_prefix . 'bundle_attribute_' . sanitize_title($attribute_name) . '_' . $bundled_item->item_id, 'product' => $bundled_product, 'selected' => $selected)); echo end($attribute_keys) === $attribute_name ? '<a class="reset_variations" href="#">' . __('Clear', 'woocommerce-product-bundles') . '</a>' : ''; ?> </td> </tr><?php } ?> </tbody> </table><?php /** * woocommerce_bundled_product_add_to_cart hook. * * Used to output content normally hooked to 'woocommerce_before_add_to_cart_button'. */ do_action('woocommerce_bundled_product_add_to_cart', $bundled_product->id, $bundled_item); ?>
function wc_bundles_dropdown_variation_attribute_options($args = array()) { _deprecated_function('wc_bundles_dropdown_variation_attribute_options', '4.13.1', 'WC_PB_Core_Compatibility::wc_dropdown_variation_attribute_options'); return WC_PB_Core_Compatibility::wc_dropdown_variation_attribute_options($args); }