﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>《ECShop调用具体的自定义商品属性》的评论</title>
	<atom:link href="http://yakelie.com/html/2008-04-24/ecshop-call-custom-specific-attributes-of-goods.html/feed" rel="self" type="application/rss+xml" />
	<link>http://yakelie.com/html/2008-04-24/ecshop-call-custom-specific-attributes-of-goods.html</link>
	<description>面朝大海，春暖花开。</description>
	<pubDate>Mon, 01 Dec 2008 20:44:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>sharmy</title>
		<link>http://yakelie.com/html/2008-04-24/ecshop-call-custom-specific-attributes-of-goods.html#comment-775</link>
		<dc:creator>sharmy</dc:creator>
		<pubDate>Tue, 21 Oct 2008 01:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://yakelie.com/?p=281#comment-775</guid>
		<description>在商品列表中不能使用是不是有的函数没有加载？可以把相关的函数移植过去啊。反正源代码是可以修改的，不像supe-site和x-space,麻烦的很。</description>
		<content:encoded><![CDATA[<p>在商品列表中不能使用是不是有的函数没有加载？可以把相关的函数移植过去啊。反正源代码是可以修改的，不像supe-site和x-space,麻烦的很。</p>
]]></content:encoded>
	</item>
	<item>
		<title>sharmy</title>
		<link>http://yakelie.com/html/2008-04-24/ecshop-call-custom-specific-attributes-of-goods.html#comment-774</link>
		<dc:creator>sharmy</dc:creator>
		<pubDate>Tue, 21 Oct 2008 01:22:29 +0000</pubDate>
		<guid isPermaLink="false">http://yakelie.com/?p=281#comment-774</guid>
		<description>呵呵，受教，多谢了。</description>
		<content:encoded><![CDATA[<p>呵呵，受教，多谢了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>苍狼</title>
		<link>http://yakelie.com/html/2008-04-24/ecshop-call-custom-specific-attributes-of-goods.html#comment-773</link>
		<dc:creator>苍狼</dc:creator>
		<pubDate>Tue, 21 Oct 2008 01:17:46 +0000</pubDate>
		<guid isPermaLink="false">http://yakelie.com/?p=281#comment-773</guid>
		<description>补充下：这个代码 只能在goods.php 中使用，因为
要使用到 lib_goods.php 中的
get_goods_properties函数
而get_goods_properties函数带的参数是$goods_id

本人也想在商品列表中使用，但是怎么思考都想不出来，希望大家能帮帮忙。</description>
		<content:encoded><![CDATA[<p>补充下：这个代码 只能在goods.php 中使用，因为<br />
要使用到 lib_goods.php 中的<br />
get_goods_properties函数<br />
而get_goods_properties函数带的参数是$goods_id</p>
<p>本人也想在商品列表中使用，但是怎么思考都想不出来，希望大家能帮帮忙。</p>
]]></content:encoded>
	</item>
	<item>
		<title>苍狼</title>
		<link>http://yakelie.com/html/2008-04-24/ecshop-call-custom-specific-attributes-of-goods.html#comment-772</link>
		<dc:creator>苍狼</dc:creator>
		<pubDate>Tue, 21 Oct 2008 01:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://yakelie.com/?p=281#comment-772</guid>
		<description>经过测试你的代码有时候会出现错误代码：
Invalid argument supplied for foreach()
我稍微改进了一下

/*
调用自定义属性
by catro
*/
$pros = array();
if (isset($properties) &#38;&#38; is_array($properties))
{
foreach((array)$properties['pro'][$GLOBALS['_LANG']['goods_attr']] as $k=&#62;$pro)
{
$pros[$pro['name']]['specId'] = $k;
$pros[$pro['name']]['value'] = $pro['value'];
}
$smarty-&#62;assign('pros',				   $pros); //End 调用演示： 净重：{$pros.净重.value}
}</description>
		<content:encoded><![CDATA[<p>经过测试你的代码有时候会出现错误代码：<br />
Invalid argument supplied for foreach()<br />
我稍微改进了一下</p>
<p>/*<br />
调用自定义属性<br />
by catro<br />
*/<br />
$pros = array();<br />
if (isset($properties) &amp;&amp; is_array($properties))<br />
{<br />
foreach((array)$properties['pro'][$GLOBALS['_LANG']['goods_attr']] as $k=&gt;$pro)<br />
{<br />
$pros[$pro['name']]['specId'] = $k;<br />
$pros[$pro['name']]['value'] = $pro['value'];<br />
}<br />
$smarty-&gt;assign(&#8217;pros&#8217;,				   $pros); //End 调用演示： 净重：{$pros.净重.value}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>sharmy</title>
		<link>http://yakelie.com/html/2008-04-24/ecshop-call-custom-specific-attributes-of-goods.html#comment-120</link>
		<dc:creator>sharmy</dc:creator>
		<pubDate>Mon, 26 May 2008 01:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://yakelie.com/?p=281#comment-120</guid>
		<description>最新版本的ECshop已经把Smarty改了，要实现你的功能只有自己写函数了。</description>
		<content:encoded><![CDATA[<p>最新版本的ECshop已经把Smarty改了，要实现你的功能只有自己写函数了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>soe</title>
		<link>http://yakelie.com/html/2008-04-24/ecshop-call-custom-specific-attributes-of-goods.html#comment-119</link>
		<dc:creator>soe</dc:creator>
		<pubDate>Sun, 25 May 2008 23:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://yakelie.com/?p=281#comment-119</guid>
		<description>请问一下，ecshop 2.5是不是不能用 {$xxx&#124;replace:"":""} 这样的方法了？如果是不行，怎么实现这个功能呢？多谢了……</description>
		<content:encoded><![CDATA[<p>请问一下，ecshop 2.5是不是不能用 {$xxx|replace:&#8221;":&#8221;"} 这样的方法了？如果是不行，怎么实现这个功能呢？多谢了……</p>
]]></content:encoded>
	</item>
</channel>
</rss>
