I am selling wine bottles in my magento shop. The customer can order as 1 bottle or a pack of 6 bottles. I have created 2 simple product for each and then created a grouped product for it. So, each wine is added as grouped product with 1 bottle & 6pack bottles as simple product
Now my shipping rate is configured with table rates as
Upto 6 bottles - 5$
Upto 12 bottles - 8$
Upto 24 bottles - 10$
From 25 bottles - Free
Now when a customer would order 2times 6pack products, the shipping cost is calculated as 5$ instead of 8$
How can I get this issue fixed?
Related
I want to create a stock exchange simulation using C# programming language. But I couldn't decide on how to specify the price of an asset.
For example, the following table is an order book for an asset:
Buy Sell
----------------------------- ----------------------------
ID Time Size Price ID Price Size Time
4 8:00:04 250 100 1 101 750 8:00:01
6 8:00:10 500 100 5 101 500 8:00:05
2 8:00:01 750 97 8 101 750 8:00:30
7 8:00:10 150 96 3 102 250 8:00:02
The simplest order book matching algorithm is a price-time-priority algorithm. That means that the matching priority firstly is price and then time. The participants are rewarded for offering the best price and coming early.
Every asset has a current price in stock exchanges. But how can I calculate the price of this asset? Is there any algorithm for this?
An exchange will usually show the 'top of the book', showing best bid (the highest number someone is willing to buy at) and ask (the lowest price someone is willing to sell at).
Where you see an exchange offering a single price, it is derived in one of two ways:
if there have been recent (valid) trades, then it is the last traded price
otherwise, it is the reference price
What is a Reference Price?
Most equity and derivatives exchanges maintain a reference price for each book. This is used to prevent acceptance of orders which would be too far from the reference price - aka 'extreme trading range'.
Usually the reference price is set to the last traded price during the day, but how is it set in the first place before any trading happens?
The reference price is usually determined after each trading reset (e.g. start of day, start of week or start of a new book) as one of the following in order of precedence:
price discovered during an initial auction period (usually only in equity markets)
if no auction, then last traded (or settled, depending on the market) price
use a price from another market operator running the same book
or the market operator can use it's own 'reasonable' method to determine a reference price, e.g. for an initial listing of a new security
How to apply this?
So if you want to set a new 'current price' in BTC but you don't yet have any trades on your book, then because BTC is already widely traded you can:
use the last price traded on binance for the pair you're running
take a mean or median of last prices from multiple BTC books run by others
manually set some other price you think will attract both buyers and sellers
We are exporting Magento orders to another platform and have noticed what seems to be a major issue in the tax calculation; hoping you guys can help..
enter image description here
In the example above; we have a shipping fee £6.95 (inc tax), a discount £5.80 and a product sales price of £116 (inc tax).
Total Inc. Tax is correct:
(£116 + £6.95) - (£5.80) = £117.15.
The Tax charged however is showing as £19.53 which I just can't replicate..
I've tried:
20% of £116 = £23.2
20% of £116 - £5.80 = £22.04
No permutation seems to deliver amount of tax charged that Magento is stating: £19.53
Can anyone shed some light on this for me?
Thanks in advance..
These figures are tax inclusive:
So convert them to tax exclusive by dividing by 1.2.
96.667
5.792
-4.833
Now that adds up to 97.625. 20% of that is 19.525 which needs to be rounded up to 19.53. The government wants all the half pence amounts!
The original tax inclusive amounts added to 117.15 so subtract the tax and you get a pre-tax amount of 97.62.
I'm using the table rates (weight) to calculate the shipping costs. There are some products that have fixed shipping costs.
For example. I've a total of 7 products in my cart. 5 of these products are covered by the shipping rates. These 5 products have a total weight of 20kg. The costs of 20kg is €20.
The other 2 products have a shipping costs of €10 a piece. The weight of these 2 products must not be include into the table rates.
So the total costs of shipping is:
€20 for the first 5 products
and 2 times €10 for the last 2 products
So the total shipping costs has to be €40
Does anyone know an extension/ a way to fix this problem?
Check this extension it looks like it should have all requirements http://www.magentocommerce.com/magento-connect/WebShopApps/extension/1357/webshopapps-product-matrix-shipping
Is it possible to change the math of the tier pricing in magento. For example if you set the quantity of 3 the total would be $7.98 for all three. When I set it for 3 it multiplies the $7.98 totaling $23.94. I sell this as a wholesaler... looking for some kind of solution.
we would like to sell pre-paid gift cards which is our customers should specify the amount of cart.
So, I have created a custom option to specify card balance then I would like to multiply with card quantity.
CARD A
Balance = 50$
Quantity = 10
Total = 500$
So my question is, how can I do this approach?
Thanks,