Stackoverflow.com

How to create a coupon code in magento that will apply a

I want to implement a coupon code which will give the user 20% Off on their shopping cart if the value of the discount is less than 500. e.g. Total Cart Value is 10000 20% coupon code applied would give a discount of 2000 However the maximum discount that should be given is only 500.

Actived: 4 days ago

URL: https://stackoverflow.com/questions/33349214/how-to-create-a-coupon-code-in-magento-that-will-apply-a-percentage-discount-or

php

Let's say I have 10% off coupon code. This coupon is applicable only to Product B A customer have in its cart : Product P1 Product B Product P2 I don't want my 10% off

Category:  coupon codes Go Coupon

schema.org

We are in the process of implementing schema in pages of our coupon website. What is the correct code for "Discount" and "Discountcode". Example 1: 30% Off on using coupon code "OFFER1" Example 2:

Category:  coupon codes Go Coupon

Mangento

This code is giving me the amount discounted with coupon code of the first item in the cart for the current session. Magento : how to get the coupon code percent-off amount in the sidebar cart? 2. How to display cart details along with sub totals discount coupon code in magento checkout page? 1.

Category:  coupon codes Go Coupon

How to create a coupon on specific product or category in

I am using Magento ver. 1.7.0.2. Let's say I have 20% off coupon code. This coupon is applicable only to Product B A customer have in its cart : Product A Product B Product C I don't want my 20

Category:  coupon codes Go Coupon

cart

1 Answer1. Add a PromoCode model with two fields: code and discount. You can then add a couple of promo codes in the admin. In the form, just add a promo code field and upon submit, check if the code matches any of your PromoCode objects and apply the discount.

Category:  Promo codes Go Coupon

c#

Salesman 14 calls in about client 773 and wants to give them $500 off their order. 14, 773 and 500 must be in the coupon code and able to be extracted in the client app after the salesman keys in the code. c# language-agnostic encoding cryptography. Share. Follow …

Category:  coupon codes Go Coupon

if statement

What this does is check if the cost of the product lies between 20 and 60 and if it does it sets the discount to 0.9. This is 0.9 because when you multiply this by the total cost, it will take 10% off. Use this as a guideline and try and figure out the other things yourself, you …

Category:  coupon codes Go Coupon

HTML\CSS Coupon Script

Does anyone know how to create a coupon (printable is even better) with HTML & CSS? Forgive the horribly simple question, I don't do much of any web development :) Thanks in advance. EDIT: ED

Category:  coupon codes Go Coupon

java

A software company sells a package that retails for $99. Quantity discounts are applied if the number of packages ordered is: Quantity Discount 10 - 19 20% 20 - 49 30% 50 - …

Category:  coupon codes Go Coupon

asp.net

In bundle, the user should not be able to apply the coupon code and remove an item. The user may frequently use the back button in the browser and so the coupon code must be valdated and stored in the database only when payment is complete successfully. Hope the above helps.

Category:  coupon codes Go Coupon

Magento: Fixed Amount Discount For Whole Cart For

So, I want to be able to provide people with a coupon code for 15% off the total cart price, after all other discounts have been applied. For instance, there is currently an offer for 3 items for £22. I want to then reduce the total cart price by 15%, to £18.70. Any help would be a godsend! Thanks in advance!

Category:  coupon codes Go Coupon

Magento Coupon code with 100% free in entire whole cart

Rule information tab: Enter rule name, status active, coupon > specific coupon and enter the code you want to use. That's it. If everything is 100% off then that's all you need. Leave everything else blank. If the user needs to do something to qualify then put in details in conditions tab to qualify. If it's for specific products only then

Category:  coupon codes Go Coupon

Adding "Promo Code" functionality to my ASP.NET C# website

Adding “Promo Code” functionality to my ASP.NET C# website. The idea is I'll have a page that will accept a user's promotion code. When the user clicks "Submit", the code will make a call to the database to ensure that the promo code is indeed valid. I plan on having a "PromoCode" table in my database which contains a list of available

Category:  Promotion code Go Coupon

xcode

Teams. Q&A for work. Connect and share knowledge within a single location that is structured and easy to search. Learn more

Category:  coupon codes Go Coupon

php

I'm creating a coupon in my laravel project. I need to allow a discount on applying coupon click. but when I enter my code and click on an apply button it gives this message Trying to get proper

Category:  coupon codes Go Coupon

python

The implication for QuantLib is that simple floating-rate coupons can be (and are) set a default pricer that just reads the rate off the forecast curve, but coupons with caps or floors need the user to specify what pricer to use and to provide it with any additional needed data; in your case, this means at least a volatility term structure

Category:  coupon codes Go Coupon

php

Hey I want to disable coupons for sale products in Opencart. I found coupon code and here is list of "if-s" when the coupon is not working I have to …

Category:  coupon codes Go Coupon

magento

I encountered the following bug Add a product to cart Apply a coupon code Remove coupon code Coupon code is not shown anymore / remove successful Go in checkout Continue billing and shipping step Go

Category:  coupon codes Go Coupon

javascript

The coupons are generated by Amazon and then stored in an array in my database. The problem is simply in making sure that I am grabbing a coupon from the global.coupons object only once. It should work so a code is not consumed at the time of the request but placed in a queue as a callable, waiting to kick off. You can read the length of

Category:  coupon codes Go Coupon

php

d8h7bb0778719945-> d8h7bb is the coupon type (same for all other coupons of this type) and 0778719945 is the unique number (different for all coupons, regardless of type). Check if the coupon type is valid for the item being purchased first. If it is, check 0778719945 against your coupon database to see if it has been claimed or not.

Category:  coupon codes Go Coupon

magento

i have 2 discount codes in my magento store, one gives the customers 10% off discount and the other gives the customers 20% discounts. how can i …

Category:  Discount codes Go Coupon

php

I have a coupon code (XYZ25) in woocommerce which include 25% off and maximum discount is Rs.250. How can i restrict user's to not get more than Rs.250 Discount if they apply coupon code XYZ25 for 25% discount.

Category:  coupon codes Go Coupon

php

There is many ways to do add a custom discount of 50% on the 2nd item for a specific variable product ID. Below I am using add_fee () method with a negative value (so it adds a discount). Code goes in function.php file of your active child theme (or theme) or also in any plugin file. This code is tested on Woocommerce 3+ and works.

Category:  coupon codes Go Coupon

javascript

This function is recursive, so we want the first call to call the actual implementation, then mock the recursive calls. In sinon, it was done like this. const stub = sandbox.stub (instance, 'function'); stub .onFirstCall () .callsFake (stub.wrappedMethod) .callsFake ( (args) => args); I would like to do something like this, but cannot find the

Category:  coupon codes Go Coupon

php

This is indeed a nightmare. I really need the help of your collective minds on this one: In Canada, taxes are calculated differently from province to province: Alberta - 5% British Columbia - 5%

Category:  coupon codes Go Coupon

Magento Multiple coupon codes for one order without

For adding 2 coupon codes, what i did was like this: 1) Add column coupon_code2 in the sales_flat_quote table. ALTER TABLE sales_flat_quote ADD ( coupon_code2 varchar(255) )"; 2) To add your new coupon code 2, just save it in quote:

Category:  Coupon codes Go Coupon

Stripe

2. A coupon applied to a customer will apply to all future invoices and/or subscriptions, even if the coupon has expired, dependent upon how you set the duration attributes for the coupon. A coupon applied to a subscription will only apply to that specific subscription. The duration attribute will determine how long this discount will apply

Category:  coupon codes Go Coupon

ruby on rails

You have discount coupons already set in the Stripe. When your customer submits coupon for one-time charges, you get the amount or %age to wave off. and reduce the amount from the price and call Stripe API to charge the discounted amount. You will need to keep track of discounted amount and coupon for such charges your self.

Category:  Discount coupons Go Coupon

asp.net mvc

Fundamentally, yes, when the user inputs a coupon code, you can fire-off an AJAX request which will return the relevant price discount and update the field appropriately. That's about as specific an answer can be given based on your question without any other relevant code. – ghayes Aug 9 …

Category:  coupon codes Go Coupon

php

get_used_coupons() returns an array of coupon codes it's not an object as the above snippet is treating it as. – Andrew Schultz Oct 17 '18 at 0:46 @AndrewSchultz It was Woocommerce 2.5 in this time, So it has changed since Woocommerce 3…

Category:  Coupon codes Go Coupon

wordpress

I've got clients, who need to get a shipping discount. But others shouldn't get it. So, the ideal variant is to create coupons for that. Unlikely, the standard coupons provide free shipping only. How can I provide a shipping discount for users, if they use coupon. Thank you in advance for any advice!

Category:  Free shipping Go Coupon

php

I'd still probably double check that a code has not already been used when you create one on the very slight off chance that you do get a repetitive number. And most likely the chances of a repetition are slightly more than 1 in 36^8 or roughly 1:2,821,109,907,456.

Category:  coupon codes Go Coupon

php

3 Answers3. You can use a custom function hooked in woocommerce_before_checkout_form action hook that will remove the notice coupon form without disabling coupon functionality in checkout page: Code goes in function.php file of the active child theme (or active theme). Tested and works.

Category:  coupon codes Go Coupon

magento

I have created Shopping Cart Price Rule in Magneto admin and also created a coupon code now i want set the discount amount to 50% for the coupon code of …

Category:  coupon codes Go Coupon

wordpress

You will have to set in WooCommerce coupon settings a coupon with the desire behavior (10% off) and you will report this coupon slug in this function. Copy code in the functions.php file located in your active theme or better your active child theme.

Category:  coupon codes Go Coupon

Preview stripe subscription price change with coupon

If coupons are taken out of the equation, I can simply combine the first two line items to get the difference between the time on their current plan and the time remaining on the new plan. If there is already a coupon applied to this subscription, those amounts are correct but if I attempt to add a new coupon, those amounts are incorrect.

Category:  coupon codes Go Coupon

How to create coupon using chargify API

Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.Provide details and share your research! But avoid …. Asking for help, clarification, or responding to other answers.

Category:  coupon codes Go Coupon

iphone

So that users will be able to buy a product (audio content) from the app store, or to enter a coupon code and get the product for free. Coupon codes will be given outside of the application - user can get a coupon with purchasing of a flight ticket / insurence / hotel accomodation / etc.

Category:  Coupon codes,  Hotel Go Coupon

random

Optionally, if you have different types of coupons, you could prefix the codes with something, e.g.: CX00019 QZ0001C CX0001A QZ0001D CX0001B QZ0001E Alternately, you could even use dictionary words in the coupon, as such coupon codes are easier to remember and faster for users to type.

Category:  Coupon codes Go Coupon

php

I need to get the customer ID associated to a coupon code. For example the coupon code "xyz" has been used and now I would like the get the ID or name from the customer who used that coupon code. In Magento Coupon Code report you can only see that this coupon has been used but you can't see who used that specific coupon.

Category:  coupon codes Go Coupon

php

I was trying to create a preg_match to find "coupon code" and "coupon code:" and extract the phrase or word immediately after. Not having much luck myself or finding the reg expression. Not having much luck myself or finding the reg expression.

Category:  coupon codes Go Coupon

ruby on rails

My Rails app needs to generate electronic coupons for users. Each coupon given should have a unique coupon code that can be redeemed on our system. For example a coupon for a free burrito. User A receives a coupon for a free burrito and then User B receives a coupon for a free burrito. The 2 coupons should have unique coupon codes.

Category:  Coupon codes Go Coupon

python

So far I'm able to generate random codes in the database. But for stripe I have no idea what value should I give to the id field in stripe create coupon. views.py def create_coupon (request,pk): code=Code.objects.get (id=pk) form = Coupon_Code (request.POST or None, request.FILES or None) if request.method == 'POST': if form.is_valid (): form

Category:  coupon codes Go Coupon

php

This could be accomplished with a for each loop if someone is still looking for an answer. I dont know the exact functions off the top of my head but the steps are pretty simple and google will help you. You start by importing your CSV into an array. Very similar to the way you would with a MySQL query. Then you do a PHP foreach loop.

Category:  coupon codes Go Coupon

php

When I try to submit the form without a coupon code, it charges the full amount and passes through Stripe correctly. However if I enter either a valid OR invalid coupon code, it does not pass a coupon object with the customer object when creating a new customer object and charges the full amount when passing through Stripe.

Category:  coupon codes Go Coupon

php

We have "individual use" ticked for all our coupons to stop multiple coupons being used. There is an exception where we need these "individual use" coupons to be usable for another specific coupon. 3 coupons in total: Welcome 10 - Individual use - 10% off Welcome 20 - Individual use - 20% off Welcome 30 - 30% off.

Category:  coupon codes Go Coupon

php

How can I calculate the line total for creating order in woo commerce if i am using coupon code of 20 rs off and and having tax of 6%. Woocommerce coupon code for cart items with custom price. 2. Coupon with 2 different percentage discounts based on product category in Woocommerce. 2.

Category:  coupon codes Go Coupon

Trending Now