• I am utilizing the Woocommerce Google Product Feed Plugin. I already have another Plugin that is dynamically increasing the price of the Woocommerce Product without changing the price in the database.

    However the Woocommerce Google Product Feed Plugin is pulling the price from the database. So I need to increase the price outputted by the Woocommerce Google Product Feed Plugin, for example 10%.

    Here is what I have so far.

    /**
    * Price Change
    */
    function return_custom_price($price, $product) {
    global $post, $blog_id;
    $price = get_post_meta($post->ID, ‘_regular_price’);
    $post_id = $post->ID;
    $price = ($price[0]*1.1);
    return $price;
    }
    add_filter(‘woocommerce_gpf_price’, ‘return_custom_price’, 11, 2);

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    Since that is a commercial plugin, we ask that you please go to their official support channel, so you can get support from the people who know it best.

    https://www.woocommerce.com/my-account/tickets/

    Forum volunteers are also not given access to commercial products, so they would not know why it is not working properly. Other community members who may have faced your issue might be able to help you but your best bet is your product’s developer. Keep in mind we encourage you to use the official support venues, as it allows the developers to be aware of issues with their code and gives back to the community in a more robust way.

Viewing 1 replies (of 1 total)
  • The topic ‘Function Needed Increase Price Output – Woocommerce Google Product Feed’ is closed to new replies.