• Hi,

    Working with a client and we need to generate 2 separate product feeds

    One in USD, one in MYR

    Can we create 2 separate product feed links? and is there a hook to customize the currency and product prices of one of the feed links?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Antonino Scarfì

    (@antoscarface)

    Hi,

    I’m sorry, unfortunately, it’s not possible to have two feeds generated.

    About the currency hook, you can use this hook to customize the currency tag as well as the other tags:

    
    add_filter('aepc_feed_item', function($fields, $item) {
    	$product_id = $item->get_id();
    	
    	// EDIT HERE
    	$fields['g:price'] = str_replace('OLDCURR', 'NEWCURR', $fields['g:price']);
    	// END EDIT HERE
    	
    	return $fields;
    }, 10, 2);
    
    
Viewing 1 replies (of 1 total)
  • The topic ‘Hook to update the product price and currency’ is closed to new replies.