Пример #1
0
        echo $post->ID;
        ?>
">
						<div class="variations">
							<?php 
        $loop = 0;
        foreach ($attributes[$bundled_item_id] as $name => $options) {
            $loop++;
            ?>
								<div class="attribute-options">
								<label for="<?php 
            echo sanitize_title($name) . '_' . $bundled_item_id;
            ?>
"><?php 
            if (function_exists('ssc_remove_accents')) {
                echo ssc_remove_accents(wc_bundles_attribute_label($name));
            } else {
                echo wc_bundles_attribute_label($name);
            }
            ?>
</label>
								<select id="<?php 
            echo esc_attr(sanitize_title($name) . '_' . $bundled_item_id);
            ?>
" name="attribute_<?php 
            echo sanitize_title($name);
            ?>
">
									<option value=""><?php 
            echo __('Choose an option', 'woocommerce');
            ?>
Пример #2
0
        echo $post->ID;
        ?>
">
				<div class="variations">
					<?php 
        $loop = 0;
        foreach ($attributes[$bundled_item_id] as $name => $options) {
            $loop++;
            ?>
						<div class="attribute-options">
						<label for="<?php 
            echo sanitize_title($name) . '_' . $bundled_item_id;
            ?>
"><?php 
            if (function_exists('ssc_remove_accents')) {
                echo ssc_remove_accents($woocommerce->attribute_label($name));
            } else {
                echo $woocommerce->attribute_label($name);
            }
            ?>
</label>
						<select id="<?php 
            echo esc_attr(sanitize_title($name) . '_' . $bundled_item_id);
            ?>
" name="attribute_<?php 
            echo sanitize_title($name);
            ?>
">
							<option value=""><?php 
            echo __('Choose an option', 'woocommerce');
            ?>