Try using this action-hook on your theme’s functions.php file
add_action('wc_zap_mirror_xml_node', function (&$node, $product) {
$node->PRICE = $product->get_meta('_wc_zap_product_price') ?: $product->get_price();
}, 20, 2);
Thanks will try it. which should i have for price now. the regular price or special price?
It doesn’t matter, this action-hook will override the global setting.
THANKS FOR YOUR HELP
zap is now getting another error message
GetDataFromXml errorPosition:XDocument.Parse(srcXml) System.Xml Reference to undeclared entity
is it possible you could tell me why this is coming up
thanks
Yehuda
Please share your mirror site address.
Moderator
Yui
(@fierevere)
永子
Please share your mirror site address.
added to 1st message of this topic
hi did you manage to look at it?
thanks for you time
Yehuda
Yes I did.
It looks fine on my end, but then – there’s a lot of products and categories.
Can they be more specific regarding the issue described?
Also, a little bit less technical, like, with the error they attached.
hi first your plugin is great thank you very much
i wonder if you can help me with something
i have 3000 product but i dont want to advertise everything on zap. my only option is to go through each individual product, open it up and then click not to display on zap. that will take me a very long time.
i thought maybe it would be possible to create a category that doesnt get scanned by zap and that would certainly be much quicker. the issue with doing this is that the product category that is correct will still get scanned and therefor the product will appear on zap anyway. is there any other way to quickly stop products appearing on zap, obviously without checking off complete categories?
thanks
Yehuda
Try adding this filter-hook on your theme’s functions.php file:
add_filter('wc_zap_mirror_wp_query', function ($args) {
$hiddenTermId = 123;
$args['tax_query'][] = [
'taxonomy' => 'product_cat',
'field' => 'term_id',
'terms' => $hiddenTermId,
'operator' => 'NOT IN'
];
return $args;
});
Replace the hidden term id, with the id of the category you wish to hide.
That’ll hide all products that are assigned to it.
hi thanks, Even after putting it in this particular category i still see it on the zap mirror link, i assume it hasnt worked then,
anything you could check?
thanks
Yehuda
This filter-hook will hide all products that are assigned to this term/category.
It won’t hide the category from the initial category list, that you could do by yourself on the settings page.
sorry i dont understand. i copied what you sent me into function and made a category called zap.
now any product that i also add to be under the category of zap should not appear on zap. is this correct or have i missed something?
thanks
the steps are i already checked the category zap in your zap settings so that it should be hidden.
i then added a product that i have to the category zap.
i then checked in the zap mirror if that product was still displayed and it was so i am assuming that didnt hide it…
thanks for your help
Yehuda
hi
i close the store for shabbos so it wouldnt have worked anyway.
do you maybe have a watsapp number that would be easier for me?
thanks
Yehuda