asteptoofar
Forum Replies Created
-
Forum: Plugins
In reply to: [Market Exporter] Exclude products which don’t have a weightEDIT: 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.
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!
Forum: Plugins
In reply to: [Market Exporter] Weight и DimensionsI 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 ??
Forum: Plugins
In reply to: [Market Exporter] Weight и DimensionsExcellent, 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.
Amazing, works wonderfully. Cannot thank you enough!