Quantcast
Channel: XTemos » All Posts
Viewing all articles
Browse latest Browse all 39809

Reply To: Attributes order

$
0
0

Hello,

Thank you for this report.

It seems to be small bug in our theme with swatches order. As a quick workaround try to add the code in the file basel/inc/woocommerce.php

After this line #309 $swatch_size = basel_wc_get_attribute_term( $attribute_name, 'swatch_size' );

Paste this code


if( apply_filters( 'basel_swatches_on_grid_right_order', true ) ) {
	$terms = wc_get_product_terms( $product->id, $attribute_name, array( 'fields' => 'slugs' ) );

	$swatches_to_show_tmp = $swatches_to_show;

	$swatches_to_show = array();

	foreach ($terms as $id => $slug) {
		$swatches_to_show[$slug] = $swatches_to_show_tmp[$slug];
	}
}

Viewing all articles
Browse latest Browse all 39809