hubcat Posted June 15, 2009 Share Posted June 15, 2009 Hi Folks, Thanks for monitoring and helping others out. :-) On my product_info page, I have the review button, which takes you to the review page. (Straight forward so far.) <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td> Normally, product links look like this: http://www.mystore.com/product_info.php?products_id=91 However, when someone adds something to their cart using QTPro, and then follows the link back, they got an odd looking link like this: http://www.mystore.com/product_info.php?pr...{2}75{1}48{3}69 So now if I'm at this funky QTPro link and I try to hit the review button, the code can't properly interpret the added part and I wind up with a 404. Does anyone know of an "if" wrapper or something similar that I can use with the line of code above to strip out everything from the first { onwards? Thanks! Adrienne PS - I did try searching the QTPro topic, but it's 93 pages long! Link to comment Share on other sites More sharing options...
Pektsekye Posted June 15, 2009 Share Posted June 15, 2009 product_info.php?products_id=91{2}75{1}48{3}69 This: 'products_id=' . $HTTP_GET_VARS['products_id'] should be replaced few times with: 'products_id=' . (int) $HTTP_GET_VARS['products_id'] in the includes/boxes/reviews.php Stanislav Link to comment Share on other sites More sharing options...
Pektsekye Posted June 15, 2009 Share Posted June 15, 2009 This: 'products_id=' . $HTTP_GET_VARS['products_id'] should be replaced few times with: 'products_id=' . (int) $HTTP_GET_VARS['products_id'] in the includes/boxes/reviews.php Stanislav I have just found that includes/boxes/reviews.php already has : and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] so you don't need to change the reviews.php if you have it unmodified. can you show the site? Stanislav Link to comment Share on other sites More sharing options...
hubcat Posted June 15, 2009 Author Share Posted June 15, 2009 Thanks so much! I'm out of time so I'll have it test it after racquetball. :-) Link to comment Share on other sites More sharing options...
hubcat Posted June 16, 2009 Author Share Posted June 16, 2009 Ah... I see the problem, now. QTPro is not conflicting with reviews, it's actually conflicting with Ultimate SEO URLs. So my file name with the attributes: http://www.mystore.com/product_info.php?pr...{2}72{1}46{3}69 is trying to turn into: http://www.mystore.com/pocket-pant-pr-91%7...6%7B3%7D69.html when it should be just: http://www.mystore.com/pocket-pant-pr-91.html Hmmm, that's a different problem. I'll have to look at Ultimate SEO URLs tomorrow, but if someone knows a quick solution, please help. By the way, Stanislav, my site is live so I work on a password protected duplicate development site. Then I roll updates into production once they are fixed and tested. So, I can't really show the problem in an easy way. Thanks, Adrienne Link to comment Share on other sites More sharing options...
Pektsekye Posted June 16, 2009 Share Posted June 16, 2009 is trying to turn into: http://www.mystore.com/pocket-pant-pr-91%7...6%7B3%7D69.html when it should be just: http://www.mystore.com/pocket-pant-pr-91.html Can you show the code that generates this product review link or button? Stanislav Link to comment Share on other sites More sharing options...
hubcat Posted June 16, 2009 Author Share Posted June 16, 2009 Can you show the code that generates this product review link or button? Stanislav Given that I really don't understand what the code is doing, that wasn't as easy as it sounded. :blush: However, once I realized that the problem was being caused by SEO URLs, I was able to change my search parameters and I found a fix! :rolleyes: Now the only problem I have left is that the fix requires me to change something in catalog/.htaccess and I can't actually find that find when I ftp. Does anyone know how to get Dreamweaver or any generic ftp program to show hidden files? Thanks! Adrienne Link to comment Share on other sites More sharing options...
Pektsekye Posted June 17, 2009 Share Posted June 17, 2009 Given that I really don't understand what the code is doing, that wasn't as easy as it sounded. :blush: However, once I realized that the problem was being caused by SEO URLs, I was able to change my search parameters and I found a fix! :rolleyes: Now the only problem I have left is that the fix requires me to change something in catalog/.htaccess and I can't actually find that find when I ftp. Does anyone know how to get Dreamweaver or any generic ftp program to show hidden files? Thanks! Adrienne Make sure that your fix will not affect other contributions or the site functions. if you have seo.class.php v 2.7 from any autoinstaler package uploaded after 1 May 2009 OR v2.1d It means that the problem is with your site code because these two versions are stable and tested many times with different contributions. Stanislav Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.