On my homepage for my shop I currently have a featured products area. The problem is it shows the price including the tax rate where throughout the site I've got it set up to display without the tax & then for the the tax to be added on within the cart.
I'm using the following code for my featured products pricing.
<p class="price">£<?php echo Mage::helper('tax')->getPrice($_product, $_product->getFinalPrice(), 2);?>(+VAT)</p>
is there a simple way to force the outcome excluding tax as it seems to be ignoring my general settings?
It also seems to ignore the general rule for decimal places too. If I need to post the full code please just say.
The third parameter of Mage::helper('tax')->getPrice() function indicates if price have to be shown with or without tax. So either set it to null or just drop it.
For the rounding issue please try Mage::helper('core')->currency() instead of Mage::helper('tax')->getPrice(). So your final code should look like this:
echo Mage::helper('core')->currency($_product->getFinalPrice());
Related
Hi all I will go straight to the point. I found out that when i create a shopping cart price rule in magento and added a promotion/coupon code as indicated above with all rules set correctly to have a discount works from the frontend as expected from customers checkout experience/process.
But when i try to create an order from the backend/admin and trying to apply the promocode1 coupon code to the order for a specific customer it shows it to be invalid. as indicated above.
My Version i am using currently is ver. 1.9.3.6
I hope someone can point me to the right direction or what i may be doing wrong or not doing.
snap shots below
Thanks.
This looks like a bug in magento as after several checks i realized that you have to select 'all store view' option during the creation of the price rule.
Even though you select the specific store view for the price rule, the coupon will not be applied to the order from the backend of magento without you selecting the 'all store view'.
I know this thread is old but I am also getting the same error messages and i resolve my issue by removing the fields reset_shipping: true from sales.js file in js/mage/adminhtml from function applyCoupon. In myside whenever i am applying coupon code then my shipping price is going to reset so coupon code could not apply if shipping price is 0 ( my coupon code is to offer free shipping)
I've setup a WooCommerce variable product with a 'Free Trial' and 'Single Payment' option. I want to stop repeat purchases of the trial product for obvious reasons.
The following example shows how this can be done: https://gist.github.com/bekarice/0143d1b423857b0c6885
This example works as described with a products ID (which is set with the following variables):
$non_purchasable = 356;
$no_repeats_id = 356;
Unfortunately the code seemingly doesn't work when the above variables are set to the specific products 'free trial' variation ID.
Is there a way to modify the above example to work with a products specific variation ID?
Are you sure you are setting the correct variation ID? I've included an image below for reference:
For anyone else who gets stuck, please ensure that your past order history (for the user placing the order) is deleted. Once I deleted my order hostory this code started working as planned.
You can use the wordpress-Woocommerce plugin to prevent repeated purchase. Mostly useful for downloadable products.
The following plugin is do the same thing.
https://codecanyon.net/item/woocommerce-disable-repeat-purchase/22249871
I have a Magento site which uses the webshopapps matrixrates plugin for shipping rates.
The shipping cost doesn't seem to be calculating correctly and appears to apply a discount to the product cost.
In the screenshot below, the basket contains one product that has a price of €30, the shipping option 'European Airmail' (€5.50) has been selected.
Therefore the total cost should be €35.50
However the cost comes out at €30.55.
It's almost as if the Delivery cost is subtracted from the total (ignoring euro cents)
Interestingly there are two instances of this site, the UK instance appears to work correctly but I can't find anything different in the config.
I've tried comparing a CSV export of shipping rates but can't see anything obviously different.
What do I need to do to get the cost to come out as the correct amount (€35.50)?
Any suggestions welcome!
EDIT
If I dump out the quote object, the price for the product shows up as 25
But if I just load the product and dump it's data, I get the actual price which is €30:
I've got the tax amount with:
<?php
$taxAmount = $quote->getShippingAddress()->getData('tax_amount');
?>
And that comes back as 0.000
So I'm at a bit of a loss as to what is going on here.
Got to the bottom of this, it was a catalogue price rule for free shipping upto 4.95..
I had removed all shopping cart price rules already but wasnt aware that anyone had created a catalogue price rule so didnt consider it. Thanks for the suggestions guys.
I'm working on a site in magento where all product's special prize is showing zero by default, though I didn't set any special price for products.
for example,it showing->
Regular Price: $755.00
Special Price: $0.00
how to hide those special prices and make visible only for those products where special price is applicable? otherwise the default price should be shown.
You may get solution for your question in magento forum.
Please check below link:
http://www.magentocommerce.com/boards/viewthread/76338/
You may refer SO Link also:
Hide Magento Regular Price if tiered pricing exists on product page
I have just checked on my local Magento installation if i add 0 in special prices while editing a product and do not even select a date, it start showing on the frontend as in your case.
So i bet you need to remove all special prices which must be set as 0 from admin panel by editing all products showing this behavior.
Also try to clear all cache, and index site.
I need to add custom attributes to selected products in store. To do so I'm using Model_Price_Observer. I'm using Magento 1.7.
So far I'm able to add custom attribute but calculated price is wrong - tax is missing.
My code is (part):
$quote_item->getProduct()->setIsSuperMode(true);
$quote_item->setOriginalCustomPrice( $customprice );
$quote_item->setCustomPrice( $customprice );
$quote_item->setTaxAmount($taxAmount);
$quote_item->setBaseTaxAmount($taxAmount);
Any ideas what am I doing wrong?
Am I using right trigger?
Tax cannot be added to an item as we do not yet know the customer's location in the world, and therefore cannot reasonably calculate a tax rate. I assume Magento is not saving your new tax information because of this fact. It also seems dangerous to me to add tax manually as it is always calculated on the fly via (sometimes) complex logic.
In the cart, try getting a "quick estimate" by entering in your country and postal code and see if tax is applied to the quote, and maybe try again.