• Resolved yehuda123456789

    (@yehuda123456789)


    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 4 years, 11 months ago by Yui.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 26 total)
  • Plugin Author Ido Friedlander

    (@idofri)

    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

    (@yehuda123456789)

    Thanks will try it. which should i have for price now. the regular price or special price?

    Plugin Author Ido Friedlander

    (@idofri)

    It doesn’t matter, this action-hook will override the global setting.

    Thread Starter yehuda123456789

    (@yehuda123456789)

    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

    (@idofri)

    Please share your mirror site address.

    Moderator Yui

    (@fierevere)

    永子

    Please share your mirror site address.

    added to 1st message of this topic

    Thread Starter yehuda123456789

    (@yehuda123456789)

    hi did you manage to look at it?
    thanks for you time
    Yehuda

    Plugin Author Ido Friedlander

    (@idofri)

    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

    (@yehuda123456789)

    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

    (@idofri)

    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

    (@yehuda123456789)

    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

    (@idofri)

    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

    (@yehuda123456789)

    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

    (@yehuda123456789)

    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

    (@yehuda123456789)

    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)
  • The topic ‘price’ is closed to new replies.