Questions tagged [discount]

405 questions
-1
votes
2 answers

Jquery discount calculation from range

I have a product, its price is $ 10. The price is $ 9 if the customer buys 11 of this product, and $ 8 if he buys 21. iki tane array var whole_sell_qty ve whole_sell_price. How should I develop an algorithm, when the amount of the product is 11,…
Muhammet Ali
  • 9
  • 1
  • 5
-1
votes
1 answer

WooCommerce apply coupon depends of cart line item quantity

After long looking, I was not able to find any proper code how would be possible to apply coupon for a cart line items. Lets say customer added some product quantity of 10, my selected coupon should be applied for that product. If he adds another …
-1
votes
1 answer

PHP discount function

At first im beginner. I want to make a PHP function to calculate the discount for the pizza order. I get the data from the form. $pizzatotal = $amount * $pizzaprice; // 4500 $realage = $currentyear - $year; //65 $cashDiscount = 2; // 2% discount if…
mrmiaki
  • 21
  • 3
-1
votes
1 answer

Buy X Pay for Y Algorithm

I have to write "Buy X Pay for Y" algorithm. Request that comes to my endpoint is list of Articles public class Article { public int Quantity { get; set; } public decimal UnitPrice { get; set; } } payFor variable comes from db and is…
-1
votes
1 answer

Add off option value in JS and html

I want to add off option value in my page For example, you come in my shop page and choose a package, I want to add an option field for the Discount and when you enter a text that is available on s.txt you receive a discount offer. For example, you…
LeVi
  • 9
  • 4
-1
votes
1 answer

Apply a discount from second product with Woocommerce

I simply need to add a 10% discount to every product in the cart starting from the second one. I tried many discount plugins but none of them suits my customer's needs. I.e. I need this scenario: Variable product 1 - € 100 Variable product 2 - €…
Yuri Refolo
  • 245
  • 9
  • 17
-1
votes
1 answer

magento2 add discount to quote from custom rest api

I have used this example to create a custom api for updating quote by rest: https://www.thirdandgrove.com/creating-custom-rest-api-magento2 Also I have found this example to add discount to quote:…
-1
votes
1 answer

How can i give offer for selected random products magetno

I need to give the offer for selected random products which is distinct categories. How can i give offers without using coupons code?
Gem
  • 126
  • 1
  • 2
  • 18
-1
votes
1 answer

R: Discounting a matrix of costs

I have a matrix of costs I'd like to discount according to discount rate, x. Each column is a unique disease state and each row is a unique year. Currently I'm working off of this code: ((medexpCommercial)/((1 +…
-1
votes
2 answers

javascript calculate 10% discount on sub total

How to implement calculating 10% discount base on sub total in js?. Here is my code. function calculateGrandTotal() { var grandTotal = 0; $('table tbody tr td:nth-child(4) input').each(function (index) { …
-1
votes
1 answer

to show original price and price after discount on cart page when discount is enabled in opencart

I want to show original price and price after discount on cart page when discount is enabled in opencart .How to get this done?
-1
votes
1 answer

magento cart price issue

I am using Magento 1.8.1.0. I have defined no catalog price rule.But i am applying special price on some selected products. On product catalog page the price and special price and the discount percent as sale is shown on that product. But when i add…
-1
votes
2 answers

magento i need to apply discount 20% for the total if above 50euros but not to the discounted items

magento i need to apply discount 20% for the total if above 50euros but not to the discounted items if customers selects some already discounted items that should not include in the total can any one help Thanks in advance
user3850668
  • 11
  • 1
  • 2
-1
votes
1 answer

how to import discount coupon csv file in magento admin

I have a csv of coupon codes, i want to import it in magento. please help me to how import it. i have a script but its not working:-
Brar Kirmal
  • 139
  • 1
  • 3
  • 18
-1
votes
1 answer

Set discount for my app on Google Play

I'd like help from people that published any apps on Google Play. I want to apply a 100% discount on my app for one week, which means it would be free during that time. However, I didn't see any way on the console to set that. If I try to put it…
1 2 3
26
27