Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove shipping details from example feed
Krzysztof Wolski85b0c4964583
diff --git a/saleor/integrations/feeds.py b/saleor/integrations/feeds.pyindex 13c450ae71..a20ad2f733 100644--- a/saleor/integrations/feeds.py+++ b/saleor/integrations/feeds.py@@ -5,7 +5,6 @@ from os import pathfrom django.conf import settingsfrom django.contrib.sites.models import Sitefrom django.contrib.syndication.views import add_domain-from prices import Pricefrom saleor.discount.models import Salefrom ..product.models import ProductVariant, Category@@ -199,14 +198,11 @@ class SaleorFeed(GoogleProductFeed):file_path = path.join(settings.INTEGRATIONS_DIR, 'saleor-feed.csv.gz')file_url = settings.MEDIA_URL + file_path- def item_shipping(self, item):- """Flat shipping price"""- price = Price(5, currency=settings.DEFAULT_CURRENCY)- return 'US:::%s %s' % (price.gross, price.currency)-def item_tax(self, item):"""No taxes on products"""- return 'US::0:y'+ price = item.get_price_per_item(discounts=self.discounts)+ tax = price.gross - price.gross+ return 'US::%s:y' % taxdef item_brand(self, item):return 'Saleor'