fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Change Position of Archive Variation Attribute

SAINT G

Hello Team,

I want to change the position of the Archive Page Variation Attribute.

In the below link – on archive page the size variation is coming below the product at last – but i want to move it between Product title and price or any other position.

  • https://mmlprojects.in/saintgshoes/product-category/footwear/ankle-boots/

I have tried to find the settings but unable to get through – I have tried to add the wrapper class also in settings but unable to achieve the same.

Please let me know how to do this – of if there is any snippet or code that can help in achieving the same.

Sharing you the details of our staging/testing website – once its done on testing please let us know the steps we will implement it on live website

 

Tanvirul Haque

Hi SAINT,

It depends on your theme code. Could you send us the latest version of the theme that you are using on your site? We’ll try to investigate your issue by installing your theme on our local setup.

You can upload the theme file in Dropbox or Google Drive and send the download link here directly.

Looking forward to hearing from you soon.

Thank you

SAINT G

Hello Team,

Please update on this as soon as possible – we need to implement this on the website

SAINT G

Hello please update on this – its urgent

Tanvirul Haque

Hello SAINT G,

Could you please put the following PHP code below your child theme functions.php file and let me know is the result ok for you or not?

if ( ! function_exists( 'wvs_flatsome_swatches_reposition' ) ) {
function wvs_flatsome_swatches_reposition() {
if ( class_exists( 'Flatsome_Default' ) ) {
remove_action( 'flatsome_product_box_after', 'wvs_pro_archive_variation_template', 100 );
add_action( 'woocommerce_shop_loop_item_title', 'wvs_pro_archive_variation_template', 20 );
}
}
}
add_action( 'init', 'wvs_flatsome_swatches_reposition', 20 );

Thanks

SAINT G

Hi Team,

Thanks for the reply – but this is been delayed – would request you too give a faster response.

I applied your code its duplicating the variation – see the attached screenshot – but yes the duplicated one is positioned correctly above the price – you just need to tweak the code so that the below title one is removed.

https://mmlprojects.in/saintgshoes/product-category/footwear/ankle-boots/

 

Tanvirul Haque

Hello SAINT G,

Sorry for that delay. Could you please recheck and confirm with me?

Thanks

SAINT G

Yes its proper now thank you so much – if i face any issues will contact