CMS MADE SIMPLE FORGE

promotions

 

[#9460] promo_get_prod_discount returns false

avatar
Created By: noosphere (noosphere)
Date Submitted: Thu Aug 08 06:04:32 -0400 2013

Assigned To: Robert Campbell (calguy1000)
Version: 1.1.10
CMSMS Version: 1.11.7
Severity: Major
Resolution: Fixed
State: Open
Summary:
promo_get_prod_discount returns false
Detailed Description:
Hello!
I set a promotion for product ids:1,2,3
and with $entry->id=3

{promo_get_prod_discount product_id=$entry->id assign='foo'}

$foo returns false !


History

Comments
avatar
Date: 2013-09-04 03:31
Posted By: noosphere (noosphere)

Any news ?
      
avatar
Date: 2013-09-04 11:30
Posted By: Robert Campbell (calguy1000)

Fixed in last release.
      
avatar
Date: 2013-09-05 11:54
Posted By: noosphere (noosphere)

You mean the new one, right ? Since Promotions 1.1.10 still has it !

When is it going to be released ? Thank you !
      
avatar
Date: 2015-07-01 06:30
Posted By: Albert Cansado (albertcansado)

to solve:

Edit file: Promotions/lib/class.promo_ops.php on Line 140

OLD:

if( !is_array($product) ) return FALSE;

NEW:

if( !is_object($product) ) return FALSE;

::_get_product() return object not array.
      
Updates

Updated: 2013-09-04 11:30
resolution_id: 5 => 7

Updated: 2013-08-08 06:05
version_id: 29630 => 30187
resolution_id: => 5