Post by bahl2 » Mon Feb 05, 2018 10:28 pm

Hello Guys!
I have one site:
http://on3w.info/brir/
if see in home page , display error:
: Undefined index: stock in /home/onwinfo/public_html/brir/catalog/view/theme/fastor/template/new_elements/product.tpl
This file is send thunb product in list.

if See in categories the my code work fine, just in home module that display error.

Yours help me?

Code ins github:
https://gist.github.com/anonymous/a5cc8 ... 42bbbcc66e

i insert code in controller to this code :

Code: Select all

						$stock = $product['stock'];
						$products[] = array(
	    				    'stock'  => $result['quantity'] <= 0 ? $result['stock_status'] : ( $this->config->get('config_stock_display') ? $result['quantity'] : 'In Stock' ),
							'product_id' => $result['product_id'],
							'thumb'   	 => $image,
							'name'    	 => $result['name'],
							'price'   	 => $price,
							'special' 	 => $special,
							'rating'     => $rating,
							'reviews'    => sprintf($this->language->get('text_reviews'), (int)$result['reviews']),
							'href'    	 => $this->url->link('product/product', 'product_id=' . $result['product_id']),
						);
					}
				}
Thanks!

Newbie

Posts

Joined
Mon Feb 05, 2018 10:22 pm

Post by bahl2 » Tue Feb 06, 2018 8:39 pm

Someone? help me?
I need to know how to fix this indefinite variable in the home. Someone?

Newbie

Posts

Joined
Mon Feb 05, 2018 10:22 pm
Who is online

Users browsing this forum: No registered users and 7 guests