<?xml version="1.0" encoding="UTF-8"?><oembed><type>video</type><version>1.0</version><html>&lt;iframe src=&quot;https://www.loom.com/embed/eb892fe1087c4526951ab105981b6081&quot; frameborder=&quot;0&quot; width=&quot;1920&quot; height=&quot;1440&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</html><height>1440</height><width>1920</width><provider_name>Loom</provider_name><provider_url>https://www.loom.com</provider_url><thumbnail_height>1440</thumbnail_height><thumbnail_width>1920</thumbnail_width><thumbnail_url>https://cdn.loom.com/sessions/thumbnails/eb892fe1087c4526951ab105981b6081-343e4eadcf60bd5b.gif</thumbnail_url><duration>409.393</duration><title>Discount Engine Demo, Stackable Rules Explained</title><description>This Loom explains Dhruv Pachauri’s Optra FD discount engine and how it selects the best discount for each cart item. It loads sample discount rules and six cart items, showing that the engine picks the higher saver when multiple rules match and displays the max discount with final pricing. For the bed sheet, it demonstrates stacking where a flat brand discount is applied first and a stackable Flipkart 10 percent adds on top, including a computed intermediate price. It also applies a cart-level 10 percent offer after item discounts when the post-discount subtotal crosses a 4000 threshold, moving the total from 593 discounted to 5339. The Loom further covers an NLP rule entry using local regex with a 90 confidence score and an edge case that reports missing values and thresholds instead of crashing, plus a PDF upload option.</description></oembed>