bluevisiontec / GoogleShoppingApi

Magento Module GoogleShoppingApi v2
Open Software License 3.0
69 stars 45 forks source link

google shopping price shows wrong #38

Closed punitgadhiya closed 9 years ago

punitgadhiya commented 9 years ago

I have Install and configure extension. It is working fine. In Magento store price shows like this way Excl. BTW: € 180,99 and Incl. BTW: € 219,00. and when product synchronize with google shopping. In google shopping store it shows price exclusive tax. while i want to display Inclusive tax price. It mean it should show 219 instead of 180.99 how is it possible? (Note: I have tried mapping attribute with "Display Actual Price" and "Price" but in both case it shows Exclusive Tax Price 180.99).

schnere commented 9 years ago

Are you listing your products inside or outside US?

punitgadhiya commented 9 years ago

It is for Netherland.

punitgadhiya commented 9 years ago

I am using google shopping for country Netherland. Can you please tell me what can i do for this price issue?

schnere commented 9 years ago

Okay, you have your price display settings on "Inclunding and excluding tax"? Please try the following patch and let me know if it works:

--- app/code/community/BlueVisionTec/GoogleShoppingApi/Model/Attribute/Price.php.orig   2015-06-11 14:44:48.690510854 +0200
+++ app/code/community/BlueVisionTec/GoogleShoppingApi/Model/Attribute/Price.php        2015-06-11 14:44:54.674507118 +0200
@@ -38,7 +38,10 @@
         // get tax settings
         $taxHelp = Mage::helper('tax');
         $priceDisplayType = $taxHelp->getPriceDisplayType($product->getStoreId());
-        $inclTax = ($priceDisplayType == Mage_Tax_Model_Config::DISPLAY_TYPE_INCLUDING_TAX);
+        $inclTax = (
+            $priceDisplayType == Mage_Tax_Model_Config::DISPLAY_TYPE_INCLUDING_TAX
+            || $priceDisplayType == Mage_Tax_Model_Config::DISPLAY_TYPE_BOTH
+        );

         // calculate sale_price attribute value
punitgadhiya commented 9 years ago

@schnere Thank you So much brother. its working fine now. Thanks