Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter asteptoofar

    (@asteptoofar)

    EDIT: Appear to have figured it out with the following code adapted from your answer regarding excluding categories:

    add_filter( 'me_exclude_post', 'me_exclude_product', 10, 3 );
    function me_exclude_product( $exclude, $post, $product ) {
    	$has_weight = $product->has_weight();
    
    	if ( $has_weight !== true ) {
    		$exclude = true;
    	}
    
    	return $exclude;
    }

    Not sure what wasn’t working before but that does the trick. If it’s not the best way, please do let me know.

    Thread Starter asteptoofar

    (@asteptoofar)

    Cannot thank you enough! Works like a charm. You are right, there is a hidden field entitled “_qa_cog_cost” so I was able to add a new column to display that information and can now edit it inline. This has made managing the site immeasurably easier, thank you very much!

    Thread Starter asteptoofar

    (@asteptoofar)

    I have no idea why but all of a sudden it has worked. Apologies for the false alarm, but thank you nonetheless for your help (and for doing so in English which is very much appreciated!) I wish I could tell you what I did to yield the desired result, but I don’t know. In any case, it’s safe to assume it was something I was doing wrong, and not a problem with your wonderful plugin ??

    Thread Starter asteptoofar

    (@asteptoofar)

    Excellent, thank you!

    That half-describes my problem, yes. As I understand, there are several different places that weight can be associated with a product (for example as an Attribute, in which case it would be exported as a <param> in the .yml file). On my site, weight and dimensions information is specified in the “Delivery” tab (look at this screenshot: https://prnt.sc/1181bz7)

    I don’t know what this means in practice, but I suspect that wherever this information is stored is not where get_weight looks for it. I switched on the size element and no such information appeared in the newly generated .yml file, which suggests to me that the information I under the “delivery” tab is not somewhere that either Woocommerce or Market Exporter looks for this information.

    Hope I explained it ok. I think I probably made less sense in English than in Russian! And perhaps this is not a Market Exporter question at all and I should direct my question to Woocommerce support.

    Thread Starter asteptoofar

    (@asteptoofar)

    Amazing, works wonderfully. Cannot thank you enough!

Viewing 5 replies - 1 through 5 (of 5 total)