Support for YITH WooCommerce Points and Rewards
-
Hi,
Would it be possible to add support for the YITH WooCommerce Points and Rewards plugin?
I managed to insert the following into class-wcnotifications-instance.php:
$earned_points = $this->object->get_meta('ywpar_points_from_cart'); $total_points = '[yith_ywpar_points label="Total points: " show_worth="no"]'; $this->placeholders['{yith_points}'] = 'Received points: '.$earned_points.''.$total_points;
It works, but the shortcode [yith_ywpar_points] sometimes returns unexpected results: in some cases, it did simply not print on the receipt, and in one case it even returned a completely wrong total value (e.g. customer had earned 3 points during his order, the first points he earned, and the total was showing 29 points, and when I printed the receipt again it was displaying 25 points).
Thank you in advance for your help.
Regards,
Aron
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Support for YITH WooCommerce Points and Rewards’ is closed to new replies.