snubbr.com

Does anybody know any Verisign SSL based CGI Proxies?

Get a Verisign SSL certificate for 30 days FREE. Click here to use coupon...

Get a free trial of Verisign SSL certificates. Click here for this special deal...
Got a question... Does anybody know any Verisign SSL based CGI Proxies? Hoping for any response. Another question I got... Hi,.

Back again! I've finally managed to resolve most of my issues now after a server move. I have an error that displays though & I don't really understand why this comes up or how to remove it. When you click on a product in the shop, this comes up:.

Parse error: syntax error, unexpected $end, expecting ')' in E:\domains\j\just-keyrings.co.uk\user\htdocs\includes\modules\also_purchased_products.php on line 31.

I'm guessing it means/should say.... customers who bought this item also bought blah blah..

I've looked at line 31 & it's just blank, there's nothing there. However, I'd rather not have this come up at all if it is supposed to say what I assume it's supposed to say.. Any ideas?..

Comments (58)

You betcha! however you might wanna make sure and wait for another member here to confirm this as I am on the fence. Better yet, why don't you email the Verisign guys because they can answer your Verisign question better...

Comment #1

<?php.

/*.

$Id: also_purchased_products.php 1739 2007-12-20 00:52:16Z hpdl $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

If (isset($HTTP_GET_VARS['products_id'])) {.

$orders_query = tep_db_query("select p.products_id, p.products_image from "TABLE_ORDERS_PRODUCTS" opa, "TABLE_ORDERS_PRODUCTS" opb, "TABLE_ORDERS" o, "TABLE_PRODUCTS" p where opa.products_id = '"(int)$HTTP_GET_VARS['products_id']"' and opa.orders_id = opb.orders_id and opb.products_id != '"(int)$HTTP_GET_VARS['products_id']"' and opb.products_id = p.products_id and opb.orders_id = o.orders_id and p.products_status = '1' group by p.products_id order by o.date_purchased desc limit "MAX_DISPLAY_ALSO_PURCHASED);.

$num_products_ordered = tep_db_num_rows($orders_query);.

If ($num_products_ordered >= MIN_DISPLAY_ALSO_PURCHASED) {.

?>.

<! also_purchased_products //>.

<?php.

$info_box_contents = array();.

$info_box_contents[] = array('text' => TEXT_ALSO_PURCHASED_PRODUCTS);.

New contentBoxHeading($info_box_contents);.

$row = 0;.

$col = 0;.

$info_box_contents = array();.

While ($orders = tep_db_fetch_array($orders_query)) {.

$orders['products_name'] = tep_get_products_name($orders['products_id']);.

$info_box_contents[$row][$col] = array('align' => 'center',..

Comment #2

(that was the whole file - is something missing?)..

Comment #3

Here is the file you need All of it !.

<?php.

/*.

$Id: also_purchased_products.php 1739 2007-12-20 00:52:16Z hpdl $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2003 osCommerce.

Released under the GNU General Public License.

*/.

If (isset($HTTP_GET_VARS['products_id'])) {.

$orders_query = tep_db_query("select p.products_id, p.products_image from "TABLE_ORDERS_PRODUCTS" opa, "TABLE_ORDERS_PRODUCTS" opb, "TABLE_ORDERS" o, "TABLE_PRODUCTS" p where opa.products_id = '"(int)$HTTP_GET_VARS['products_id']"' and opa.orders_id = opb.orders_id and opb.products_id != '"(int)$HTTP_GET_VARS['products_id']"' and opb.products_id = p.products_id and opb.orders_id = o.orders_id and p.products_status = '1' group by p.products_id order by o.date_purchased desc limit "MAX_DISPLAY_ALSO_PURCHASED);.

$num_products_ordered = tep_db_num_rows($orders_query);.

If ($num_products_ordered >= MIN_DISPLAY_ALSO_PURCHASED) {.

?>.

<! also_purchased_products //>.

<?php.

$info_box_contents = array();.

$info_box_contents[] = array('text' => TEXT_ALSO_PURCHASED_PRODUCTS);.

New contentBoxHeading($info_box_contents);.

$row = 0;.

$col = 0;.

$info_box_contents = array();.

While ($orders = tep_db_fetch_array($orders_query)) {.

$orders['products_name'] = tep_get_products_name($orders['products_id']);.

$info_box_contents[$row][$col] = array('align' => 'center',.

'params' => 'class="smallText" width="33%" valign="top"',.

'text' => '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$orders['products_id'])'">'tep_image(DIR_WS_IMAGES$orders['products_image'], $orders['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)'</a><br><a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$orders['products_id'])'">'$orders['products_name']'</a>');.

$col ++;.

If ($col > 2) {.

$col = 0;.

$row ++;.

}.

}.

New contentBox($info_box_contents);.

?>.

<! also_purchased_products_eof //>.

<?php.

}.

}.

?>..

Comment #4

RESOLVED!.

I just realised there must've been something missing off that file so I've just taken the original one that comes with oscommerce & overwritten the one I had, error has now gone....

Sorry 'bout that but I suppose it is good to try to learn for yourself too!!!.

I don't know why some of my files are like this, I certainly hadn't changed this one myself, I'm guessing it must have been the person I ashamedly paid to make a hash of my Verisign site that did this!.

This post has been edited by.

Charmed-imsure.

: 15 December 2008, 14:40..

Comment #5

Hi,.

Back again! I've finally managed to resolve most of my issues now after a server move. I have an error that displays though & I don't really understand why this comes up or how to remove it. When you click on a product in the shop, this comes up:.

Parse error: syntax error, unexpected $end, expecting ')' in E:\domains\j\just-keyrings.co.uk\user\htdocs\includes\modules\also_purchased_products.php on line 31.

I'm guessing it means/should say.... customers who bought this item also bought blah blah..

I've looked at line 31 & it's just blank, there's nothing there. However, I'd rather not have this come up at all if it is supposed to say what I assume it's supposed to say.. Any ideas?..

Comment #6

Just to expand on that, post lines 25 through to line 35 of also_purchased_products.php..

A blank line would be of no use :-)..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.

 

Categories: Home | Diet & Weight Management | Vitamins & Supplements | Herbs & Cleansing |

Sexual Health | Medifast Support | Nutrisystem Support | Medifast Questions |

Web Hosting | Web Hosts | Website Hosting | Hosting |

Web Hosting | GoDaddy | Digital Cameras | Best WebHosts |

Web Hosting FAQ | Web Hosts FAQ | Hosting FAQ | Hosting Group |

Hosting Questions | Camera Tips | Best Cameras To Buy | Best Cameras This Year |

Camera Q-A | Digital Cameras Q-A | Camera Forum | Nov 2010 - Cameras |

Oct 2010 - Cameras | Oct 2010 - DSLRs | Oct 2010 - Camera Tips | Sep 2010 - Cameras |

Sep 2010 - DSLRS | Sep 2010 - Camera Tips | Aug 2010 - Cameras | Aug 2010 - DSLR Tips |

Aug 2010 - Camera Tips | July 2010 - Cameras | July 2010 - Nikon Cameras | July 2010 - Canon Cameras |

July 2010 - Pentax Cameras | Medifast Recipes | Medifast Recipes Tips | Medifast Recipes Strategies |

Medifast Recipes Experiences | Medifast Recipes Group | Medifast Recipes Forum | Medifast Support Strategies |

Medifast Support Experiences |

 

(C) Copyright 2010 All rights reserved.