• Resolved guidomgs

    (@guidomgs)


    This plugin has the option to configure the installment tag for xml, but has no way to configure the installment calculation, is possible to set the amount of installments, but no the total price divided by the months.
    Is any way to workaround this?

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

Viewing 1 replies (of 1 total)
  • Plugin Author Ohidul Islam

    (@wahid0003)

    @guidomgs Sorry for the late response. You can follow the code below to calculate the installment amount.

    function woo_feed_get_attribute_installment_callback($output, $product, $feed_config,$merchant_attribute){
    	if('google' === $feed_config['provider'] && 'installment_amount'===$merchant_attribute){
    		return $output/12;
    	}
    	return $output;
    }
    add_action('woo_feed_get_attribute','woo_feed_get_attribute_installment_callback',10,4);
Viewing 1 replies (of 1 total)
  • The topic ‘Installment configuration for google merchant’ is closed to new replies.