How to apply percentage coupon to specific type of product instead of complete order in Drupal Commerce? - module

In Drupal Commerce, how do I apply a percentage coupon to specific type of product instead of complete order amount?
Can this be done using rules or do I have to create some custom module?

If you are using Commerce Coupon 7.x-2.0 and Commerce Discount, you can set your discounts to be applied to the entire order or certain products.

Related

I would like to run a query to produce a price list for each customer and product taking into consideration promotional prices and discount prices?

We have a number of different promotions (fixed prices and discount %) for each customer. I want to be able to produce an extract so that we can work out what the price the customer would pay if they were entering a Sales Order direct within Epicor. I then want to use this as part on an internal portal so I will store these prices in a seperate table.
I can extract each item individually i.e. customers & products. but I can't seem to get the logic correct for working out the correct sales price.
This is for Epicor 9.05
Thanks
It sounds like you want to use customer price lists to track pricing for your customers. This will allow you to set discounts or custom prices for some or all of your parts.
While the material is proprietary to Epicor, you can take a look at the "Customers and Accounts Receivable" chapter of the EpicorAppplication_UserGuide for your version as found on your EpicWeb customer portal for more information on using these.

How to set custom price for products on the basis of quantity in shopify?

Greetings.
I am working on a eCommerce website based on shopify. And for product I want to set a custom price. For example, The standard price of product is $500 but price will vary if user increased the quantity i.e. On 5 - 10 it will cost $450, On 11 - 15 it will cost $400 and on 20+ quantity it will cost $300.
I have searched module for this and also found a module i.e. https://apps.shopify.com/quantity-breaks. But its working on the basis of "Percent" that I don't need. Because I want to place price manually on the basis of quantity.
So please help me out from this and provide your valuable thoughts on the same.
Thanks in advance.
The way this is generally done in Shopify is to create variants where the option values are the price breaks. You have to modify your theme so that when a Qty > price break is entered the product page selects the variant that corresponds to that price level.
Other than the coding portion of this the main issue becomes inventory management since Shopify treats each variant as a separate inventory item but if you use variants to manage price breaks they are not actually separate items.
I think the easiest way to do this would be with a Shopify App. There are many that have price breaks etc. and they are usually easier to set up than using variants as the price break amounts.

Force specific price in cart

In certain conditions, I would like to force a specific price for a given product in a cart in Prestashop ?
How can I interact with the customer's cart and give him a product discount programmatically ?
Assign specific price to certain customers group
Add customer to this group
or
Generate on the fly certain cart rule (coupon code) and assign it to the cart

Bigcommerce Coupon creation redeem per customer not working

I am trying to create a coupon code with the following customer uses settings.
code can be used by unlimited number of customers. setting it to 0.
max uses per customer is set to 1.
With this settings first customer who is applying the code can redeem it fine but other customers always sees code is expired though expiry is set to one year later.
how can i make this type of coupon code working in bigcommerce?
Go to Marketing › Coupon Codes. Your existing and sample coupon codes will be displayed.
Click Create a coupon code.
Fill out the coupon code details:
Coupon code - the code entered at checkout e.g. FREESHIPPING
Coupon name - the name of the coupon (for reference) e.g. Free Shipping over $50
Discount type - choose from the options provided
Dollar amount off the order total
Dollar amount off each item in the order
Percentage off each item in the order
Dollar amount off the shipping total
Free shipping
Discount Amount - the percentage or dollar amount to take off (for all discount types except free shipping)
Minimum Purhcase optional - the minimum amount a customer must spend in one order to be able to apply the coupon
Number of uses - use this to limit how many types the coupon can be used
Limit total number of uses limits how many times a coupon can be used at all in your store
Limit number of uses per customer limits how many times a single customer (based on email address) can use the coupon
Enabled - check this for the coupon code to work in your store. Uncheck to keep the coupon settings saved but not enable it.
Expiry Date optional - after this date, the coupon will be disabled automatically
Select which categories or products to limit your coupon to. If you do not want to limit it, select All Categories from the category list.
Limit to specific categories - select This coupon code can be used with these categories
Limit to specific products - select This coupon code can be used with these products, then click Add a Product and navigate to your products
Choose any advanced settings if desired, then save your changes.

shopify api: calculate total shipping price

There is a nice helper - shipping_price - available in liquid templates (for order). Returns total order shipping price (hopefully). How do I get the same via API?
Should I go through order order.shipping_lines and sum their price? Is that the right way to do it?
EDIT
Or, perhaps, order.subtotal_price + order.total_tax?
If you just want the shipping price then summing the shipping line prices is the correct approach.
At this time, there's only ever one shipping line per order but it's built as an array to accomodate potential changes to this situation.