How to limit quantities of discount coupon usage times in laravel - laravel

e.g .. i create a new coupon that can be use 50 times. After used 50 times, it will be expired or cannot use anymore.
coupon quantities will decrease with each use .

Related

Magento coupon code for multiple time use until offer value zero

I need a coupon code in magento. But the condition is one user can use the code more then one time. But cant't get more discount then code discount amount.
Like admin create a coupon code of $100 fixed amount. But my first order total $70. So if I use this code I will get $70 discount. For next when I use same code, I want $30 discount. That process will go until I get full amount($100) of discount.
Is that possible in magento?

Discount cart in codeigniter

I am using codeigniter cart for online commerce, and i still confuse how to make coupon which automatically update the total cart when coupon code found for an items.
Thanks
Each and every coupon is stored in Database. So in database table there are some important fields.
Coupon Code #ex 007AbC0098
Value of coupon #ex 3%
If its for product then product ID #ex 25
First user add items to cart and the at show cart option you will allow to add the coupon. So when user add the coupon, check if coupon is valid. If its valid
Get the value of the coupn
Get the session cart total value $this->cart->format_number($this->cart->total());
And make the calculation in local
Add that to privet session and before check pay, check the session has some of values.
If yes deduct it from total, else proceed to Payment.
If its only for and product. Get the product id from coupon table, and do calculation and proceed.
References
CodeIgniter Shopping Cart Sample - FormGet.com
You can do a for each loop through each item in the basket.
change the price of each item manually (percentage off), this percentage can be taken from the DB.
Once the price has been changed, you can:
$this->cart->update($data); where $data is the name of the array that was iterated over.

Magento Quantity Discount by Percentage

Are there percentage based quantity discounts?
I’m using Magento 1.8 and I want quantity discounts expressed as percentages.
I don’t see that in Magento. I know setting new Tier Prices but I want a Tier Price by a giving percentage.
For example, if someone buys 5 or more of Product X, I want to give them a 5% discount, If s/he buys 10 or more I want to give 10% discount....
I'm using Magento 1.6.2.0- and I can do this by creating a shopping cart rule for each tier of quantities. see this page http://www.magentocommerce.com/knowledge-base/entry/what-are-shopping-cart-price-rules-and-how-do-i-use-them
What I would do is create one rule for a percentage off of 5 or more, then an additional rule for an additional 5 percent off of 10 or more....and keep creating a rule for each tier

CS cart shipping condition

I am using CS cart and I have problem with my shipping method. Basically I provide free shipping on specific products when their total exceeds 500 and other products have shipping even those that exceed 500 or not.
The problem is that when our free shipping products exceed $500 and if we choose some other products so it calculates as a free shipping. How can I modify its calculation?
to use different shipping charges for products within one order, you can set different suppliers for different products: the products from the “free shipping for products over $500” category will be assigned to one supplier with the free shipping method, while the rest of your products will be assigned to the other supplier with another shipping method. As a result, shipping cost will be calculated separately for several products in one order.
Here is the instruction on how to set up the suppliers’ functionality:
http://kb.cs-cart.com/suppliers-functionality
CS-Cart Team
http://www.cs-cart.com

Magento Shopping Cart Rules Buy X get 10% off everything

I'm having some problems getting my Magento Cart Rules to apply.
What I am trying to do is encourage users to purchase gift cards, so if you purchase a gift card you get 10% off the entire transaction assuming you purchase 2 or more items (including the gift card).
This is what I am using at the moment:
In Conditions
If ALL of these conditions are TRUE :
Total Items Quantity equals or greater than 2
If an item is FOUND in the cart with ANY of these conditions true:
SKU is 7667 (Gift Card)
In Actions
Apply Fixed amount discount for whole cart
Discount Amount 10
All the rest are as default.
Any help would be greatly appreciated
Your conditions seem to be correct. But in actions you have defined a fixed amount discount instead of a percent discount.
In Actions:
Apply Percent of product price discount
Discount Amount 10
Also you have to keep in mind that this way someone could simply put 2 giftcards in his cart to get the discount. You should add another rule check for an item where SKU IS NOT 7667.

Resources