Post by sud0074 » Wed Feb 11, 2015 2:08 pm

Notice: Undefined index: recurring_id in /home/xyz.com/public_html/abc/admin/model/catalog/product.php on line 272.

Code-
if (isset($data['product_recurrings'])) {
foreach ($data['product_recurrings'] as $recurring) {
$this->db->query("INSERT INTO `" . DB_PREFIX . "product_recurring` SET `product_id` = " . (int)$product_id . ", customer_group_id = " . (int)$recurring['customer_group_id'] . ", `recurring_id` = " . (int)$recurring['recurring_id']);
}
}

how do i solve this problem plz help me

Thnaks in advance

Newbie

Posts

Joined
Sun Jan 25, 2015 9:41 pm

Post by nhantam » Wed Apr 01, 2015 3:38 pm

I have same problem.
Could you help me fix it ?
Thanks

http://panpic.com.vn


Newbie

Posts

Joined
Wed Apr 01, 2015 3:32 pm
Location - Vietnam

Post by nhantam » Wed Apr 01, 2015 3:45 pm

Code: Select all

foreach ($data['product_recurring'] as $product_recurring) {
				
				if(isset($product_recurring['recurring_id'])) {
					$this->db->query("INSERT INTO `" . DB_PREFIX . "product_recurring` SET `product_id` = " . (int)$product_id . ", customer_group_id = " . (int)$product_recurring['customer_group_id'] . ", `recurring_id` = " . (int)$product_recurring['recurring_id']);	
				}				
			}
Add code check variable recurring_id
//if(isset($product_recurring['recurring_id']))

It's working

http://panpic.com.vn


Newbie

Posts

Joined
Wed Apr 01, 2015 3:32 pm
Location - Vietnam
Who is online

Users browsing this forum: No registered users and 5 guests