Post by DogPatch1992 » Thu Oct 16, 2014 11:00 pm

When confirming an order this is displayed above the products, and it is displayed 4 times.

"Notice: Undefined index: option_value in /home/addoncus/public_html/catalog/controller/payment/pp_standard.php on line 32"

Line 32 is in red. I also included 10 lines before and after it, hope that helps.
if ($order_info) {
$data['business'] = $this->config->get('pp_standard_email');
$data['item_name'] = html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8');

$data['products'] = array();

foreach ($this->cart->getProducts() as $product) {
$option_data = array();

foreach ($product['option'] as $option) {
if ($option['type'] != 'file') {
$value = $option['option_value'];
} else {
$filename = $this->encryption->decrypt($option['option_value']);

$value = utf8_substr($filename, 0, utf8_strrpos($filename, '.'));
}

$option_data[] = array(
'name' => $option['name'],
'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)
);
}

$data['products'][] = array(
'name' => htmlspecialchars($product['name']),
'model' => htmlspecialchars($product['model']),
'price' => $this->currency->format($product['price'], $order_info['currency_code'], false, false),
'quantity' => $product['quantity'],
'option' => $option_data,
'weight' => $product['weight']
);
}

Any help here would be very much appreciated as this is the only thing stopping me from launching my store.

Newbie

Posts

Joined
Sun Oct 12, 2014 9:25 am

Post by uksitebuilder » Fri Oct 17, 2014 11:09 pm

Seems this has been fixed (or amended in the source)

https://github.com/opencart/opencart/bl ... rd.php#L32

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by DogPatch1992 » Sat Oct 18, 2014 5:48 pm

uksitebuilder wrote:Seems this has been fixed (or amended in the source)

https://github.com/opencart/opencart/bl ... rd.php#L32

THANK YOU!!!

Very new to this, so Thanks for replying.

Newbie

Posts

Joined
Sun Oct 12, 2014 9:25 am

Post by hsource42 » Thu Dec 04, 2014 7:41 am

Hello, I'm having this same issue and I'm new at this also. Can you elaborate on how I can fix this? I'm using version 2.0

Thanks!

Newbie

Posts

Joined
Thu Dec 04, 2014 7:38 am
Who is online

Users browsing this forum: No registered users and 1 guest