Hi-

I have built an eCommerce website using Drupal Commerce and I have implemented Drupal Commerce Coupon with Commerce coupon fixed amount and Commerce coupon percentage and Coupon by product reference.

My challenge is I need to limit the coupon to hundreds of skus (My site sells digital downloads and has about 120,000 skus and I want to limit coupons to a couple hundred skus). Fortunately the skus fit a pattern. They all have a certain series of characters in their sku.

1. Is there a way for me to modify the rule to limit the coupon to hundreds of skus without adding each of them one by one like in the current Coupon by product reference?

If not would like to request this as a feature.

Thanks,

luckydad

Comments

AndyF’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Status: Active » Closed (won't fix)

This module isn't particularly well suited for that purpose. It's basically built around the reference field, which stores multiple references to specific products. I wouldn't be surprised if you could do everything through Rules: add a text field to the coupon, store a regular expression or substring in it, use text comparison to see if it matches an SKU.

Thanks