CMS MADE SIMPLE FORGE

Cart

 

[#6337] Product fields smarty access

avatar
Created By: Mathieu Muths (airelibre) (airelibre)
Date Submitted: Wed Mar 30 13:16:06 -0400 2011

Assigned To:
Version: 1.7.5
CMSMS Version: None
Severity: Major
Resolution: Fixed
State: Open
Summary:
Product fields smarty access
Detailed Description:
Hi,

I think there is a problem with when trying to access to Products custom fields
in the "View cart" view.

One "action.viewcart.php", line 125, there is :
$obj->flds[$flds[$i]->name] = $obj;

What gives some "Recursion" infos when trying to print_r the "oneitem" object.
(defined with : {foreach from=$cartitems item='oneitem'} )

I replace it with :
$obj->flds[$flds[$i]->name] = $flds[$i];

Don't know if it was the right thing to do, but now it works..

Thanks


History

Comments
avatar
Date: 2011-03-30 13:55
Posted By: Robert Campbell (calguy1000)

This code is deprecated, I will be removing it in the next version.   I need to
remove all the stuff that refers to the Products module directly.
      
avatar
Date: 2011-03-30 14:54
Posted By: Mathieu Muths (airelibre) (airelibre)

Ok, but what is now the right syntax to access to the Product custom fields ?

Thanks
      
avatar
Date: 2012-03-17 19:05
Posted By: Robert Campbell (calguy1000)

Fixed it anyways.
      
Updates

Updated: 2012-03-17 19:05
resolution_id: 8 => 7
cmsms_version_id: => -1

Updated: 2011-03-30 13:55
resolution_id: => 8