protected virtual void ConvertGiftCard(ProductVariantQuery query, string key, string value)
        {
            var elements = key.Replace("giftcard", "").SplitSafe("-");

            if (elements.Length > 2)
            {
                var giftCard = new GiftCardQueryItem(elements[2], value);
                giftCard.ProductId    = elements[0].ToInt();
                giftCard.BundleItemId = elements[1].ToInt();

                query.AddGiftCard(giftCard);
            }
        }
Ejemplo n.º 2
0
 public void AddGiftCard(GiftCardQueryItem item)
 {
     _giftCards.Add(item);
 }