function _uc_coupon_paypal_check in Ubercart Discount Coupons 7.3
Same name and namespace in other branches
- 5 uc_coupon.module \_uc_coupon_paypal_check()
- 7.2 uc_coupon.module \_uc_coupon_paypal_check()
Show a message if PayPal is enabled and "itemized order" is selected.
2 calls to _uc_coupon_paypal_check()
- uc_coupon_add_form in ./
uc_coupon.admin.inc - Coupon add/edit form.
- uc_coupon_display in ./
uc_coupon.admin.inc - Display a brief overview of system coupons
File
- ./
uc_coupon.module, line 1789 - Provides discount codes and gift certificates for Ubercart.
Code
function _uc_coupon_paypal_check() {
if (variable_get('uc_payment_method_paypal_wps_checkout', 0) && variable_get('uc_paypal_wps_submit_method', 'single') == 'itemized') {
drupal_set_message(t('To use coupons with PayPal you must select "Submit the whole order as a single line item". <a href="!url">Click here to change this setting</a>.', array(
'!url' => url('admin/store/settings/payment/edit/methods'),
)));
}
}