function _uc_coupon_paypal_check in Ubercart Discount Coupons 5
Same name and namespace in other branches
- 7.3 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.module - Form builder for product attributes.
- uc_coupon_display in ./
uc_coupon.module - Display a brief over view of system coupons
File
- ./
uc_coupon.module, line 1237 - Provides discount coupons 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'),
)));
}
}