English 中文(简体)
Magento和谷歌产品——我如何根据地点获得正确的货币?
原标题:Magento and Google Products - How do I get the right currency based on location?
  • 时间:2012-01-12 17:30:11
  •  标签:
  • magento

我有一幅把产品数据从Magento拉开的文字,并为谷歌产品制造一个统一的文档。

问题是,该站点的基本货币是欧元,但我需要给谷歌注入价格。 如果我向设在联合王国的IP地址寄送该书状,则该书记本可予以罚款。 然而,当谷歌自动使用文字时,它总是从文字上获得欧洲价格。

我认为,根据IP所在地,Magento将支付不同的价格。 但是,我想迫使这一文字总是 pull取价格。 使用Im的功能是:

$products = Mage::getModel( catalog/product )
                    ->getCollection()
                    ->addAttributeToSelect( * );
$product->getPrice();

Is there a way of setting a locale or specifying a currency?

问题回答

你们的价格如何界定? 是否将这些货币换算成不同的货币或按每个网站输入?

另外,Magento公司根据IP地址(即某些习俗守则)服务不同的货币,并非标准。

不管怎样,你都可以把储存、网站和储存观点放在你的文字中。 Try:

$products = Mage::getModel( catalog/product )
                ->setStoreId($store) 
                ->getCollection()
                ->addAttributeToSelect( * );
$product->getPrice();




相关问题
Magento addFieldToFilter allow NULLs

When using the Magento collection method addFieldToFilter is it possible to allow filtering by NULL values? I want to select all the products in a collection that have a custom attribute even if no ...

Get product link from Magento API

I am new to Magento and using their API. I need to be able to get the product url from the API call. I see that I can access the url_key and url_path, but unfortunately that s not necessarily what ...

magento extension installation

I want to install a Magento extension in WAMP, but not from the Magento connect system. How can I do this? I have the module (extension) code and I already installed the sample data in the Magento ...

Link to a specific step in onepage checkout

Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...

How do I filter a collection by a YesNo type attribute?

I have a ‘featured’ attribute, which has a Yes/No select-list as the admin input. I presume that the values for Yes and No are 1 and 0, as they are for every other Yes/No list. However, if I try and ...

热门标签