Wednesday 15 January 2003 1:35:22 am
> Ok guys.. here goes.. I have just installed the version 3 of
> the EzPublish. I also installed the demo stuff. Now if you
> notice on the demo sites, when you go to the shop part, you
> can view the description of the files, you can also add to
> wish list, but you can not add to basket (Shopping Cart), or
> at least I can't figure out a way how to do it. I tried
> adding a product, but I could not find a way how to make it
> possible for users to ADD item to the basket. Any help would > be greatly appreciated. That's a bug which was introduced just before the RC1 release. If you replace the contentActionList() function in kernel/classes/ezcontentobject.php with the code below it should work fine.
/*!
Returns an array of the content actions which can be performed on
the current object.
*/
function &contentActionList()
{
$version = $this->attribute( 'current_version' );
$language = $this->defaultLanguage();
if ( !isset( $this->ContentObjectAttributeArray[$version][$language] ) )
{
$this->ContentObjectAttributeArray[$version][$language] =& $this->contentObjectAttributes(); }
// Fetch content actions if not already fetched
if ( $this->ContentActionList === false )
{
$contentActionList = array();
foreach ( $this->ContentObjectAttributeArray[$version][$language] as $attribute )
{
$contentActions =& $attribute->contentActionList();
if ( count( $contentActions ) > 0 )
{ $contentActionList =& $attribute->contentActionList();
foreach ( $contentActionList as $action )
{
if ( !$this->hasContentAction( $action['action'] ) )
{
$this->ContentActionList[] = $action;
}
}
}
}
}
return $this->ContentActionList; } --bård
Documentation: http://ez.no/doc
|