New Zenner
- Join Date:
- Sep 2008
- Posts:
- 22
- Plugin Contributions:
- 0
Return Authorization Module (RMA)
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="prevOrders"> <caption><h2><?php echo OVERVIEW_PREVIOUS_ORDERS; ?></h2></caption> <tr class="tableHeading"> <th scope="col"><?php echo TABLE_HEADING_DATE; ?></th> <th scope="col"><?php echo TABLE_HEADING_ORDER_NUMBER; ?></th> <th scope="col"><?php echo TABLE_HEADING_SHIPPED_TO; ?></th> <th scope="col"><?php echo TABLE_HEADING_STATUS; ?></th> <th scope="col"><?php echo TABLE_HEADING_TOTAL; ?></th> <th scope="col"><?php echo TABLE_HEADING_VIEW; ?></th> <th scope="col"><?php echo TABLE_HEADING_RMA; ?></th> </tr> <?php foreach($ordersArray as $orders) { ?> <tr> <td width="80px"><?php echo zen_date_short($orders['date_purchased']); ?></td> <td width="40px"><?php echo TEXT_NUMBER_SYMBOL . $orders['orders_id']; ?></td> <td align="center"><address><?php echo zen_output_string_protected($orders['order_name']) . '<br />' . $orders['order_country']; ?></address></td> <td width="80px"><?php echo $orders['orders_status_name']; ?></td> <td width="80px" align="right"><?php echo $orders['order_total']; ?></td> <td align="center"><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '"> ' . zen_image_button(BUTTON_IMAGE_VIEW_SMALL, BUTTON_VIEW_SMALL_ALT) . '</a>'; ?></td> <td width="120px"><?php echo '<a href="' . zen_href_link(FILENAME_RETURNS, 'order_id=' . $orders['orders_id'], 'SSL') . '"> ' . zen_image_button(BUTTON_IMAGE_RMA_SMALL, BUTTON_RMA_SMALL_ALT) . '</a>'; ?></td> </tr> <?php } ?> </table> ```steveyork136:
Hi clydejones
I add a link from the customers account page, so on page tpl_account_default.php where a customer can view their orders, next to the view button there is a "return request button", clicking this button sends the customer (with the order_id in the url) to the return request page.
This is the code for the tpl_account_default.php page
The extra code is <th scope="col"><?php echo TABLE_HEADING_RMA; ?></th> which adds the column header
and
<td width="120px"><?php echo '<a href="' . zen_href_link(FILENAME_RETURNS, 'order_id=' . $orders['orders_id'], 'SSL') . '"> ' . zen_image_button(BUTTON_IMAGE_RMA_SMALL, BUTTON_RMA_SMALL_ALT) . '</a>'; ?></td>which builds the link using the zen button scheme
Hello
Can anyone tell me why this code does NOT return the Order ID to the RMA form?