• hello,
    i have a color attribute and i have sorted it’s terms using Order Option inside : Products -> Attributes -> Configure terms as below:
    1. Blue
    2. Red
    3. Black
    4. White

    but for some specific products i need to change that order manually.
    i tried Changing the variation order inside : Edit Product Page -> Product Data -> variations, like this :
    1. Black
    2. White
    3. Red

    but in front-end product page i still see the variables terms sorted as Products -> Attributes -> Configure terms like below:
    1. Blue
    2. Red
    3. Black
    4. White

    is it possible to change the sort of wc_dropdown_variation_attribute_options inside product page based on variation list menu order inside edit product page ?

    i really appreciate it if any one can give me any solution or hint on this case.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Erfan MHDi

    (@erfanmhd)

    Something like this maybe if possible :

    
    wc_dropdown_variation_attribute_options(
    	array(
    		'options'   => $options,
    		'attribute' => $attribute_name,
    		'product'   => $product,
    		'order'         => 'ASC',
    		'orderby'       => 'menu_order',
    	)
    );
    
    Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    As alluded to by @erfanmhd – there are no default options in the core WooCommerce plugin for that and it would definitely require additional custom coding.

    If the code highlighted earlier doesn’t help, we’d recommend getting in touch with a web developer or one of the customisation experts listed at https://woocommerce.com/customizations/.

    Thread Starter Erfan MHDi

    (@erfanmhd)

    Hi @riaanknoetze,
    Thanks for your response,

    actually we are kindda running low on budget can’t afford paying for a customisation expert.

    i was hoping maybe i can get a hint on how it can be done in theory maybe i could do it myself.

    appreciate it if you can give me a hint or a walkthrough if possible … ??

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Override global Order of variation terms inside product page’ is closed to new replies.