• Without the plugin, when a customer chooses a variation from the <select> field, it appears in the cart under the title of the product. Since installing this plugin to use the radio buttons, the variations not longer appear in the cart page.

    The theme is Aurum, and the variable.php foreach (the only part that is different) is:

    		<table class="variations" cellspacing="0">
    			<tbody>
    				<?php foreach ( $attributes as $attribute_name => $options ) : ?>
    					<tr>
    						<td class="value">
    							<label for="<?php echo sanitize_title( $attribute_name ); ?>"><?php echo wc_attribute_label( $attribute_name ); ?></label>
    							<?php
    								$selected = isset( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ? wc_clean( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) : $product->get_variation_default_attribute( $attribute_name );
    								wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'selected' => $selected, 'class' => 'form-control' ) );
    								echo end( $attribute_keys ) === $attribute_name ? apply_filters( 'woocommerce_reset_variations_link', '<a class="reset_variations" href="#">' . __( 'Clear', 'aurum' ) . '</a>' ) : '';
    							?>
    						</td>
    					</tr>
    		        <?php endforeach;?>
    			</tbody>
    		</table>

    Any help is highly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Variations not showing up in cart since changing to radio buttons’ is closed to new replies.