Magento discount price round up issue - magento-1.9

Facing very annoying Magento pricing issue, I have a product with price $634 and promotion rule set to 35% discount. After discount price should show $612.10 but Magento skipping 0.10 it round up to $612 (it skips only 0.10, it works fine in other cases i.e $612.25, $612.95 etc) any help?

Related

Update one SQL value in a table after changing a value from another table

So I have a table categories with the following columns:
Id, Category, Vat, Tax
And a products tables with the following columns:
Id, idCategory, Code, Product, Stock, buyingPrice, sellingPrice, Sales
When creating a new product the value of a product is entered and the buyingPrice is calculated by adding the Vat and Tax from the categories table to the value.
The sellingPrice is then calculated by a percentage markup of the buying price.
I now want to be able to automatically update the buyingPrice of all products if the Vat or Tax is changed.
I have tried creating a trigger but I am currently unable to work it out. I'm not sure if it's because the original value is not saved or if I am doing it all wrong. I have never created a trigger before so any push in the right direction would be appreciated.
I think Strawberry has a great comment here; you should store the VAT and tax separately and apply them to the base price that you store, rather than storing it as a final selling price that includes VAT or tax.
In your scenario, what happens if the VAT is reduced by 0.5%? Your trigger can be modified to properly account for newly inserted items, but how will you go back and correct existing ones? In the US, an item can be exempt from sales tax (if the purchaser is a certain type of non-profit organization or other exempt business, or in certain states during a sales-tax holiday). Again, in the US, sales tax calculations regarding putting an item on sale can be complicated. I'm not making the assumption that your situation will require dealing with those situations, but it seems like it would benefit you to not need to recalculate every item in your database if any of these were to apply.
If you really insist on this, I'd personally rather use a view to calculate the price on the fly rather than using a trigger to calculate it on insertion, but that's just me. Again, I'd ultimately prefer to handle this in the application logic.

How to obtain the discounted price for Listing?

I'm trying to obtain the Listing price via the Etsy API. But I stuck in a problem with discounted prices.
There is a listing that I'm trying to obtain: https://www.etsy.com/listing/679432133/turkish-kilim-geometric-kilim-handmade. It's original price is $590 and discounted price is $236.
The problem is that I get only the original price via open API: https://openapi.etsy.com/v2/listings/679432133/?api_key=MY_KEY&fields=price, but I need to obtain the discounted one.
I'm reading the documentation already for the past three years but it looks like it's impossible via API.
Any help?
Unfortunately, getting the discounted price is not available when getting listings via the API. Mainly because the discounted price is not an attribute of the Listing itself. Rather, the discounted price is usually derived from applying any number of coupons/sales/promotions from within your shop.
For example, if you have listing A at $100. Then run a 50% off sale for any quantity purchased... then the discount price is $50. Then if you edit the sale to require a purchase quantity of 2 or more... then the price is back to $100. And if you offer a coupon for a specific item for 10% off, now the price is $90.
All of this is just to illustrate how the discounted price for a listing is not really a direct attribute of the listing alone... but rather is a "derived" price.
If you want to know the discounted price, then the closest thing that I can think of is that you would have to use the API to add the listing to a cart. That will return the contents of the Cart that does have a field named "discount_amount" that will let you detect any line item discounts applied to the cart. From there you could subtract the "discount_amount" from the "total" to try and calculate the discount price.
At best, however, this would be an approximation of the discount price you are looking for.

Access query: Average multiple cells in One column

What Im trying to do is create a shipping estimator if you will. At this point ups and fedex have volume based prices and unfortunately my vendor doesnt supply dimensions for each product. However they do offer weights.
In table one I have Part#, weight, and price of shipping of past shipments.
In table Two I have Part#, weight of never been shipped items.
What I would like it to do:
set up a query that will take products from table 2 and find like weighted items from table 1, average there shipping prices and us this new number as the estimated shipping for the new product. The part im having a hard time wrapping my head around is searching for a range of weights. Lets say my product is 5lbs and I want to get shipping prices of all products ranging form 4.75 to 5.25.
My knowledge of access is somewhat limited. I would really appreciate some guidance here.
SELECT PartsUnshipped.PartNr, PartsUnshipped.Weight,
(SELECT AVG([ShipPrice]) FROM [PartsShipped]
WHERE [PartsShipped].[Weight] >=[PartsUnshipped].[Weight]-0.25
And [PartsShipped].[Weight] <=[PartsUnshipped].[Weight]+0.25) AS Estimated
FROM PartsUnshipped
This is one way to do it. Another way would be to simply join the two tables and run an Avg on the Shipped price but then you would only return non-nulls.

How to put maximum discount restriction in magento?

I have a requirement, suppose 50% is the discount given but the maximum discount that can be availed on cart is Rs/100 only.
How to implement this thing in magento?

PayPal - How to refuse payments below a certain threshold?

I am selling a high volume product that costs a minimal amount per piece. ($0.001 USD each to be exact).
I allow my customers to purchase a one time amount of product or a recurring payment amount of product at their desired choice of USD per payment.
How can I limit my customers to only spending $10 USD or more per payment through PayPal? They limit it at $10,000 USD, can I limit it at $10 USD?
Right now, I am not processing payments of less than $10 USD, and recommending that customers do not, but it is still possible to make them.
The problem arises when a customer purchases $1 worth of product and paypal takes 40 odd percent of that payment due to per-payment fees.
I do not believe PayPal offers a setting for minimum allowed payment. This is something you would need to handle on the server side. It would be easy enough to do. Just don't display the "Pay with PayPal" button unless the order total is $10 or more.