If we have a coupon code that say gives a 5% discount....how can I grab the discounted value into a variable? For example $100 subtotal with a 5% discount. The value of the discount would be 5. I need to get the "5" into a variable.
Get the value for discount in cart
153 Views Asked by callmedpit At
1
There are 1 best solutions below
Related Questions in SHOPPING-CART
- minicart js - add to cart opening on new tab
- Magento show discount in cart page even without applying a coupon
- MOBILE checkout page for PayPal Add to Cart button and variable dollar amount Buy Now button?
- Meteor JS: Shopping Cart Without Login - session id, etc
- new object created every time
- Subtracting value from the result of a function
- Add percentage discount for individual product in magento
- Cannot add item to cart when viewing item, but can from directory page
- Magento : Can't rewrite Widget Grid for optimize filtering
- Zend Framework 2 - Sessions containing multidimensional arrays
- Duplicate items appearing in shopping cart
- change the subtotal dynamically when the quantity changes in shopping cart
- Woo-commerce plug-in that allows continue shopping
- How to create Add to Cart
- Formatting an array like a shopping list
Related Questions in CART
- Magento adding configurable product to cart programmatically
- Retrieve data from cart and send using mail
- Disable "Add to Cart" button if the user already purchased that item from the Database
- minicart js - applying discount when buying multiple items
- cart->insert(); not working in CI
- Limit php cart items to 1 seller ID at a time?
- If product has variation Disable the Quantity in Woocommerce mini cart
- Big Cartel cart
- cart session to save products by size
- php update quantity on cart page
- Cannot add item to cart when viewing item, but can from directory page
- change the subtotal dynamically when the quantity changes in shopping cart
- Create a scheduled task that unreserves stock items based on how long ago they were reserved
- Woocommerce style product in cart
- Add a fixed discount value to an order
Related Questions in DISCOUNT
- Magento show discount in cart page even without applying a coupon
- javascript calculate 10% discount on sub total
- I'm using Express Checkout in Paypal and trying to pass discount of cart total
- Magento Special-Price And discount
- Progressive percent discount based on cart amount
- Send function to Complete order e-mail in woocommerce
- how to show individual discount applied while chackout?
- Paypal Express Checkout provide full items discount
- Get the value for discount in cart
- Magento shopping cart rule, Can I create discount base on category and quantity?
- Tax and discount setting in Magento
- Progressive discount based on cart total in WooCommerce
- Add a custom bundle cart discount for non discounted items by a coupon
- Magento 2 apply discount on tax issue + FPT
- WooCommerce discount: buy one get one 50% off
Related Questions in COUPON
- Magento 1.9.1.1 Coupon Code is Not Valid
- Magento show discount in cart page even without applying a coupon
- Coupon Code method Ajax jquery
- FloatingRateBond cashflow retrieval and printing
- WooCommerce Smart Coupon generated from which Item?
- Miva Merchant - Emporium Plus Coupon Redemption BOGO feature NOT working
- Magento Tax Calculation with Coupon Code
- We want to have a customized subscription form, that includes a coupon code input
- Get the value for discount in cart
- Woocommerce Single Use Coupon not updated on use
- Sell products at purchase price (Magento)
- Adding a PayPal coupon code to final price
- Magento Shopping cart price rule / coupon on product variations within a category
- How can i display the total usage count for a specific coupon in woocommerce cart page?
- Magento 2 apply discount on tax issue + FPT
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Based on this answer Magento Checkout : Get Subtotal Value without iterating
I was able to add another variable for discount: