Title: price
Last modified: March 22, 2020

---

# price

 *  Resolved [yehuda123456789](https://wordpress.org/support/users/yehuda123456789/)
 * (@yehuda123456789)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/price-31/)
 * hi when i choose price i only have a choice between regular price and sale price.
   however if i choose regular price if i have something on sale then the cheaper
   price doesnt display on zap and when i choose sale price a product that is not
   on sale doesnt appear with a price. how can i make the plugin take the cheaper
   of the two between the regular price and sale [rice
    thanks
    -  This topic was modified 6 years, 4 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fprice-31%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/topic/price-31/page/2/?output_format=md) [→](https://wordpress.org/support/topic/price-31/page/2/?output_format=md)

 *  Plugin Author [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/price-31/#post-12537376)
 * 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);
       ```
   
 *  Thread Starter [yehuda123456789](https://wordpress.org/support/users/yehuda123456789/)
 * (@yehuda123456789)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/price-31/#post-12537408)
 * Thanks will try it. which should i have for price now. the regular price or special
   price?
 *  Plugin Author [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/price-31/#post-12537433)
 * It doesn’t matter, this action-hook will override the global setting.
 *  Thread Starter [yehuda123456789](https://wordpress.org/support/users/yehuda123456789/)
 * (@yehuda123456789)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/price-31/#post-12569733)
 * 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
 *  Plugin Author [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/price-31/#post-12569738)
 * Please share your mirror site address.
 *  Moderator [Yui](https://wordpress.org/support/users/fierevere/)
 * (@fierevere)
 * 永子
 * [6 years, 4 months ago](https://wordpress.org/support/topic/price-31/#post-12569763)
 * > Please share your mirror site address.
 * added to 1st message of this topic
 *  Thread Starter [yehuda123456789](https://wordpress.org/support/users/yehuda123456789/)
 * (@yehuda123456789)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/price-31/#post-12569939)
 * hi did you manage to look at it?
    thanks for you time Yehuda
 *  Plugin Author [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/price-31/#post-12570345)
 * 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.
 *  Thread Starter [yehuda123456789](https://wordpress.org/support/users/yehuda123456789/)
 * (@yehuda123456789)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/price-31/#post-12687681)
 * 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
 *  Plugin Author [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/price-31/#post-12687749)
 * 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.
 *  Thread Starter [yehuda123456789](https://wordpress.org/support/users/yehuda123456789/)
 * (@yehuda123456789)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/price-31/#post-12687882)
 * 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
 *  Plugin Author [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/price-31/#post-12687902)
 * 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.
 *  Thread Starter [yehuda123456789](https://wordpress.org/support/users/yehuda123456789/)
 * (@yehuda123456789)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/price-31/#post-12687915)
 * 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
 *  Thread Starter [yehuda123456789](https://wordpress.org/support/users/yehuda123456789/)
 * (@yehuda123456789)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/price-31/#post-12687928)
 * 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
 *  Thread Starter [yehuda123456789](https://wordpress.org/support/users/yehuda123456789/)
 * (@yehuda123456789)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/price-31/page/2/#post-12689092)
 * 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

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/topic/price-31/page/2/?output_format=md) [→](https://wordpress.org/support/topic/price-31/page/2/?output_format=md)

The topic ‘price’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-zap-mirror.svg)
 * [Mirror Zap for WooCommerce](https://wordpress.org/plugins/woo-zap-mirror/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-zap-mirror/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-zap-mirror/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-zap-mirror/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-zap-mirror/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-zap-mirror/reviews/)

## Tags

 * [price](https://wordpress.org/support/topic-tag/price/)

 * 26 replies
 * 4 participants
 * Last reply from: [yehuda123456789](https://wordpress.org/support/users/yehuda123456789/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/price-31/page/2/#post-12698302)
 * Status: resolved