Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cssworksafe

Archived
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Real Name
    Ian Luke

cssworksafe's Achievements

  1. >_< Sorry, should be: catalog/product_return.php <td class="main"><?php echo '<center><font color=cc0000 size=3px><b>' . TEXT_YOUR_RMA_NUMBER . $HTTP_GET_VARS['rma_value'] . '</b></font></center>'; ?></td>
  2. Thank you for your help Dan! :) Deleting the two instances of 'amp' from the url does return a page with the rma number. I have added urlencode to the line, as above, but now when that page is called i get a 404 error. The url returned is as follows: /catalog/return_product.php?action=insert&oID=96&products_id=82 The curious thing for me is that if i log the returns request from the admin section (admin/return_product.php) it returns the rma value along with the correct url. On closer examination of the two files, catalog/return_product.php & catalog/admin/return_product.php, they are almost identical. The catalog/admin/return_product.php does not use the urlencode but does return the rma number correctly. The relevent parts of the two files are below: catalog/product_return.php // redirect to confirmation tep_redirect(tep_href_link(FILENAME_RETURN . '?action=sent&rma_value='. $rma_value . '&return_id=' . $ticket_id)); //tep_redirect(tep_href_link(FILENAME_RETURN . urlencode('?action=sent&rma_value='. $rma_value . '&return_id=' . $ticket_id))); } else { $HTTP_GET_VARS['action'] = 'new'; } break; case 'default': tep_redirect(tep_href_link(FILENAME_DEFAULT)); break; } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_RETURN); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_RETURN, '', 'NONSSL')); catalog/admin/product_return.php // redirect to confirmation tep_redirect(tep_href_link(FILENAME_RETURN . '?action=sent&rma_value='. $rma_value . '&return_id=' . $ticket_id)); } else { $HTTP_GET_VARS['action'] = 'new'; } break; case 'default': tep_redirect(tep_href_link(FILENAME_DEFAULT)); break; } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_RETURN); catalog/product_return.php <td class="main"><?php new infoBox(array(array('text' => nl2br($text['return_text_one'])))); ?></td> catalog/admin/product_return.php <td class="main"><?php echo '<center><font color=cc0000 size=3px><b>' . TEXT_YOUR_RMA_NUMBER . $HTTP_GET_VARS['rma_value'] . '</b></font></center>'; ?></td> I have had a good read of php manual under urlencode etc and W3C recommendation for dealing with ampersands in url attribute values but am running out of ideas. Any input is greatfully received. :'(
  3. RMA_Returns_2.5c / OSC 2.2 MS2 / PHP 4.3.11 / MySQL 4.0.25-standard I am having the same problem with the RMA number not showing in the catalog/return_product.php although it does show up in the url: /return_product.php?action=sent&rma_value=81740608295&return_id=7 I used a file comparison program to look at catalog/return_product.php against admin/return_product.php as the rma_value was passed if the return request was made from admin/return_product.php. I found the following difference: catalog/return_product.php Line 297: <td class="main"><?php new infoBox(array(array('text' => '<center><font color=cc0000 size=3px><b>' . TEXT_YOUR_RMA_NUMBER . $HTTP_GET_VARS['rma_value'] . '</b></font></center>'))); ?></td> admin/return_product.php Line 304: <td class="main"><?php echo '<center><font color=cc0000 size=3px><b>' . TEXT_YOUR_RMA_NUMBER . $HTTP_GET_VARS['rma_value'] . '</b></font></center>'; ?></td> I tried replacing the above code from catalog/return_product.php with the code from admin/return_product.php, as this did return the rma_value but am still experiencing the same problem; "Your RMA Number is:'BLANK SPACE'. If anyone who has experienced this problem has found a solution I would be very grateful for a work around. Thanks in advance! :'(
×
×
  • Create New...