Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
商品コレクションにクーポン コードを適用する必要がありますが、条件を満たす商品にのみ適用します。これは可能ですか?
現在のコード:
<?php $_productCollection = clone $this->getLoadedProductCollection(); $_productCollection->clear()->addStoreFilter()->load(); ?>
前もって感謝します!
クーポンは商品には適用できません。クーポンは、ショッピング カートのアイテム - 見積アイテムに適用できます。選択した商品がカートに入っている場合にのみ、一部のクーポンを機能させたい場合がありますか?
bash では、標準 (1) およびエラー (2) の出力を次のように再ルーティングして破棄できます。
>/dev/null 2>&1
しかし、次の例では何かが異なります。
nohup myscript.sh >myscript.log 2>&1 </dev/null &
<