MCRCoupon::copyCoupons Method
Copies to a new coupon information from an existing coupon.
Syntax
server public static void copyCoupons(
MCRCoupon _mcrCouponNew,
MCRCouponId _origCouponId,
boolean _copyItems,
boolean _copyOffers,
boolean _copyCustomer,
boolean _copyAttributes)
Run On
Server
Parameters
- _mcrCouponNew
Type: MCRCoupon Table
The new coupons object that will be used to set the parameters on the copied coupon.
- _origCouponId
Type: MCRCouponId Extended Data Type
The original coupon ID.
- _copyItems
Type: boolean
A boolean if true identifies that the item information needs to be copied; otherwise false.
- _copyOffers
Type: boolean
A boolean if true identifies that the offer information needs to be copied; otherwise false.
- _copyCustomer
Type: boolean
A boolean if true identifies that the customer information needs to be copied; otherwise false.
- _copyAttributes
Type: boolean
A boolean if true identifies that the attributes information needs to be copied; otherwise false.