Questions tagged [discount]
405 questions
1
vote
0 answers
configurable products in magento not working with shopping cart rules
I am trying to create rules based on attributes and quantities and am not able to use quantities and attributes in the same rule unless they are both referencing the parent product.
Well this causes a problem since I want to do a quantity of 5 5ml…

jcmeghan
- 73
- 2
- 13
1
vote
0 answers
3 free samples pricing rule in magento
I am trying to set up a pricing rule where customers can order up to three different sample products for free (100% discount).
All these sample products are belonging to the same category (category = samples). If a customer orders 4 or more…

Mimi
- 11
- 1
1
vote
2 answers
Want to add discounted price field to Cross sell tab in magento
I want to implement following requirement in magento admin panel-
When I add 'A' product to shopping cart then system suggest me 'B','C'.. products with discount price which I already configured through admin panel.i.e want to make a provision to…

Pravin
- 95
- 18
1
vote
1 answer
Discount for Twitter or Facebook post
Create a pricing discount for users who post a pre designed message to facebook or twitter.
Is there a third party solution?
Any help with the any of the steps generally outlined below would be gratefully received.
from payment page:
open…

SuperCat
- 33
- 1
- 7
1
vote
1 answer
Prestashop: How to display product discount on invoice
I want product and group discounts to show on my invoice. I have modified my invoice to look like below:
reference | Description | Quantity | Unit Price | Discount | Total |
So I need to show product related dicount in the same line as the…

Anila
- 1,136
- 2
- 18
- 42
1
vote
1 answer
How to compile Discount C-library?
I want to use the Discount C-library to convert Markdown text into HTML. I have already successfully compiled and installed the library (version 2.1.3).
I tried to compile this code
#include
int main(void)
{
FILE *in, *out;
MMIOT *doc;
…

Jens L.
- 118
- 6
0
votes
1 answer
Magento coupon getDiscountAmount() ?
$coupon = Mage::getModel('salesrule/coupon');
$couponCollection = $coupon->getCollection();
foreach($couponCollection as $c){
echo 'Code:'.$c->getCode().'--->Discount Amount:'.$c->getDiscountAmount().'
'; } Found this piece somewhere here on…
'; } Found this piece somewhere here on…

Kurdt94
- 95
- 2
- 12
0
votes
3 answers
Script for dated discount
I'm a little new at PHP, so my script writing is still progressing. I have a page that users register for a seminar they have to pay for. If they register prior to 5 days before the seminar takes place, they get a discounted price, if they register…

Jamie Fritz
- 67
- 1
- 1
- 8
0
votes
2 answers
Paypal add to cart multiple items form with discount
I'm trying to offer a discount based on the purchase amount of the buyer using a paypal Add to Cart form. Basically I'm giving out for discount codes Disc1, Disc2, Disc3, Disc4, which will discount $5, $10, $20, $50. But each can work only if the…

user1005792
- 38
- 1
- 6
0
votes
2 answers
Woocommerce discount: add negative fees without taxes
I am adding a WooCommerce cart fee like so :
add_action('woocommerce_cart_calculate_fees', function($cart) {
$cart->add_fee(__('Popust za vjernost'), -10, 0);
});
I thought adding a 0 as the third argument would set the tax to 0 but…

franka
- 33
- 6
0
votes
1 answer
WooCommerce after cart validation apply a voucher code as coupon discount
I'm building some functionality in WooCommerce that allows users to input an externally generated voucher code when adding a product to the cart. This voucher code is then checked to see if it's been previously used and if not I want to apply a…

Paddy Winsley
- 67
- 7
0
votes
0 answers
WooCommerce dynamic pricing plugin: Avoid user role and brand discounts combination
Using the commercial WooCommerce dynamic pricing plugin and need to modify the way it applies discounts. This is somewhat related to Exclude product categories from custom dynamic pricing in Woocommerce answer code.
Role Pricing. I have this set to…

skinnerjoe
- 19
- 4
0
votes
0 answers
Overlapping discount issue ReactJS
getLoanType(type) {
return Util.convertToEmptyString(type) !== '' && (type.toLowerCase() === 'intro' || type.toLowerCase() === 'fixed') ? 'Fixed' : 'Variable'
}
getDiscount(amount, type) {
const loanType = this.getLoanType(type)
…

Tara
- 1
- 1
0
votes
1 answer
How to apply discount on variable and single products, based on cart quantity and product attribute in WooCommerce?
I am trying to apply a percentage discount based on quantity of products with a specific product attribute, in cart.
More precisely my goal is to apply 15% discount on orders of minimum 6 products with the attribute flaske.
I have managed to achieve…

Richard
- 61
- 7
0
votes
0 answers
Add tow discount in sales in odoo
I want to add two discounts،first discount and second discount in the customer class, so that when I select a specific person in the sales module, the two types of discounts that I added to him will appear to me previously.
I'm trying to do that,…