我一直在尋找salesrule_coupon
表,我發現我可以將許多優惠券代碼映射到單個規則,如果規則本身是類型的'汽車。'這非常方便,因爲我的客戶需要我們定期將代碼與數據源進行同步。加載成千上萬的代碼映射到Magento中的購物車規則
因此,在加載這些成千上萬的代碼(使用自定義模塊&直接SQL調用)時,它們加載得很好,我可以測試並驗證它們中的許多代碼是否工作。
但是,在我的這些代碼列表中,他們停止工作。第一個30左右的工作會很好,但此後,Magento說這些代碼是無效的。
我仍在調試這個,如果我發現任何東西,我會發布更新......但我已經嘗試過,現在用兩個單獨的價格規則來體驗它。第31條代碼包含一條規則,第39條代碼包含第二條。
真奇怪的是,如果我改變這些代碼指向一個不同的規則(一個代碼少於30個代碼),它們就會被識別和接受。沒有別的改變,我可以確定。
關於如何在這裏進行的任何想法?有沒有人試過這個?這很有趣。
有趣!是的,一個小錯誤,如果你沒有做任何替換(在'OR extra_coupon'位上),你不需要'quoteInto'。我把它放在單引號中,它效果很好。感謝您的見解! – bahoo 2011-06-09 00:11:32