Share » Forums » General » Webshop

Webshop

Webshop

Thursday 17 April 2008 3:52:45 am - 5 replies

Author Message

Kristof Coomans

Thursday 17 April 2008 5:28:44 am

Hello Amir Faheem

You posted this topic into 5 different forums, of which I removed 4. Please post your topics only in 1 forum next time. For more information see our guidelines at http://ez.no/developer/forum/guidelines

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

eric browet

Friday 18 April 2008 5:44:35 am

i have same prolem replace the function with my code. it's seem work fine.

function currencyCode( $collection = false )
    {
        if ( is_string( $collection ) and $collection != '' )
        {
            $currencyCode = $collection;
        }
        else
        {
            if ( $collection instanceof eZProductCollection )
            {
                $collection = eZProductCollection::fetch( $this->attribute( 'productcollection_id' ) );
           		$currencyCode = $collection->attribute( 'currency_code' );
             }
            
        }

         // Backwards compability for orders done with the price datatype.
        if ( $currencyCode == '' )
        {
            $currencyCode = eZOrder::fetchLocaleCurrencyCode();
        }
        return $currencyCode;
    }

Aussi perçante que soit la vue on ne se voie jamais de dos
eZ Publish Developer Basics Certification (4.4)
http://ez.no/certification/verify/396958

Rana Faheem

Friday 18 April 2008 6:13:17 am

Hello Eric,
I tried your given code but already its the same i was using, at the end, founded in result no change.
But facing the same problem.

Amir

Rana Faheem

Monday 21 April 2008 11:17:08 pm

Hello,
I solved this problem just to comment the line code no 1590 in ezorder.php and function name is currencyCode

// $currencyCode = $collection->attribute( 'currency_code' );

and control is transferred on Paypal

With Regards
Amir Faheem

michael depetrillo

Sunday 08 June 2008 2:28:52 am

$collection is false when coming from ezpaypal. A warning should be thrown if this field is required.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu