Hi
I am using ZC V 1.3.7
I have inherited a zen cart installation and I have encountered a small issue. We sell computers and parts. The company was abandoned a while back but it is being resurrected.
a d a p t a b l e p c . c o m . a u
Above my list of products I have a menu entry "Custom PC Quote" which points to
http://www.mydomain.com.au/index.php?main_page=page_2
This is a page that allows clients to build a custom PC from our range of products.
When clicked it gives the error in the subject line of this post, 5 times.
Snippet of custom_config.php
Line 33 is the 3rd line
Below the error it loads up the drop downs of the various components. If a component is selected and Place Order is clicked, the same error appears.Code://Get products for each category foreach($categories as $category){ foreach($category['sub'] as $sub){ $query = "SELECT * FROM ".DB_PREFIX."products JOIN ".DB_PREFIX."products_description ON ".DB_PREFIX."products.products_id = ".DB_PREFIX."products_description.products_id WHERE master_categories_id = ".$sub['id']; $result = mysql_query($query) or die('Query failed: ' . mysql_error()); if(mysql_num_rows($result) > 0){ while($row = mysql_fetch_array($result,MYSQL_ASSOC)){ $products[$row['master_categories_id']][$row['products_id']]['id'] = $row['products_id']; $products[$row['master_categories_id']][$row['products_id']]['name'] = $row['products_name']; $products[$row['master_categories_id']][$row['products_id']]['price'] = $row['products_price']*1.1; }//while }//if }//foreach }//foreach ?>
Assistance in fixing this is appreciated.


Reply With Quote


