Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I just installed it also and keep getting some error also.


Maldo

Recommended Posts

I just installed it to and I keep getting some error also. After installing it everything appears to work great. Except for whan after loging in, when I click the "Would you like to see which new products are available to purchase?" link I get this error

 

Parse error: parse error, unexpected '}' in c:program filesapache groupapachehtdocsbnscatalogincludesmodulesproducts_new.php on line 38

 

This is the code that comes with sppc v3.3 -

catalog/includes/modules/products_new.php

 

global $customer_id;

$customer_group_query = tep_db_query("select customers_group_id from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");

$customer_group = tep_db_fetch_array($customer_group_query);

$customer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_group_id = '" . $customer_group['customers_group_id'] . "'");

if ( $customer_group['customers_group_id'] != 0) {

if ($customer_group_price = tep_db_fetch_array($customer_group_price_query)) {

$products_price = $currencies->display_price($customer_group_price['customers_group_price'], tep_get_tax_rate($product_info_values['products_tax_class_id']));

} else {

$products_price = $currencies->display_price($product_info_values['products_price'], tep_get_tax_rate($product_info_values['products_tax_class_id']));

$products_price = 'Price not Available';

}

}

 

I know the code repeats the else statement at the end, it does it in two other code replacements aswell, I removed the extra else statements and still get the same error.

 

can anyone guide me to the light? :idea:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...