-2

ここでは Xtendo Order Export ext について言及しています。これが国コードを取得するためのスニペットであることは知っています

<xsl:value-of select="shipping/country_id"/>

私の要件は、Magento である国名を取得することです

Mage::getModel('directory/country')->load($country_code)->getName();

しかし、xsl では上記の getName() メソッドを呼び出す方法

天才の皆さん、正しい方法を見つけるのを手伝ってください:

<xsl:value-of select="php:functionString('Mage_Directory_Model_Country::load', shipping/country_id)"/>

このようなもの..... ?

4

1 に答える 1

0

In recent versions of the extension (that is any version since December 2012) you would retrieve it like this:

<xsl:value-of select="shipping/country_name"/>

For older versions, this field was not available without customizations and you should upgrade the extension. Go to www.xtento.com and click on XTENTO > My Downloads.

于 2013-07-30T16:55:00.410 に答える