Product Title Sent to NetPay
-
I’m working on a client’s site and they’ve highlighted that rather than the product name being sent to NetPay, and subsequently appearing on email communication, the slug / URL is sent instead.
They passed me an email from NetPay highlighting that the product name could be sent with the item_name variable.
In this plugin however, in the index.php file, line 651 shows:
$item_name = $cartItem['data']->post->post_name;
$item_name is subsequently used for the item_name variable, and post_name is the posts’ slug, hence why this issue occurs.
Should be a simple update to change this line to:
$item_name = $cartItem['data']->post->post_title;
Or perhaps:
$item_name = apply_filters( 'netpay_item_name' , $cartItem['data']->post->post_name; , $cartItem['data']->post );
So that we could change it from elsewhere.
- The topic ‘Product Title Sent to NetPay’ is closed to new replies.