Back to PhocacartWishlist class

Method correctItems

public
correctItems
()

Method correctItems - Source code

// Correct $this->items array for finding the right category
public function correctItems()
{
    $tempItems = array();
    if (!empty($this->items)) {
        foreach ($this->items as $k => $v) {
            $tempItems[$k]['id'] = $v['product_id'];
            $tempItems[$k]['catid'] = $v['category_id'];
        }
    }
    return $tempItems;
}