Looking in my admin at the orders page, I've noticed that I now have doubles of some search boxes. Maybe a merge mistake. Can somebody tell me in what files these boxes are? Need to have another look, but otherwise it's working fine now.
Looking in my admin at the orders page, I've noticed that I now have doubles of some search boxes. Maybe a merge mistake. Can somebody tell me in what files these boxes are? Need to have another look, but otherwise it's working fine now.
Live and learn... the Zen way.
Here is a picture of what my orders page looks like with the extra search boxes.
![]()
Live and learn... the Zen way.
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
just uploaded the orders.php from your github mod and it is still showing as in the pictures. Can you have a look at it?
I think this section is forming all the search fields, but which one creates the double?
PHP Code:
<!-- search -->
<div id="searchOrders">
<?php echo zen_draw_form('search', FILENAME_ORDERS, '', 'get', '', true); ?>
<?php
// show reset search
if ((isset($_GET['search']) && zen_not_null($_GET['search'])) or $_GET['cID'] !='') {
echo '<a href="' . zen_href_link(FILENAME_ORDERS, '', 'NONSSL') . '">' . zen_image_button('button_reset.gif', IMAGE_RESET) . '</a><br />';
}
?>
<?php
echo HEADING_TITLE_SEARCH_DETAIL . ' ' . zen_draw_input_field('search') . zen_hide_session_id();
if (isset($_GET['search']) && zen_not_null($_GET['search'])) {
$keywords = zen_db_input(zen_db_prepare_input($_GET['search']));
echo '<br/ >' . TEXT_INFO_SEARCH_DETAIL_FILTER . $keywords;
}
?>
</form>
</div>
<div id="searchOrdersProducts">
<?php echo zen_draw_form('search_orders_products', FILENAME_ORDERS, '', 'get', '', true); ?>
<?php
// show reset search orders products
if ((isset($_GET['search_orders_products']) && zen_not_null($_GET['search_orders_products'])) or $_GET['cID'] !='') {
echo '<a href="' . zen_href_link(FILENAME_ORDERS, '', 'NONSSL') . '">' . zen_image_button('button_reset.gif', IMAGE_RESET) . '</a><br />';
}
?>
<?php
echo HEADING_TITLE_SEARCH_DETAIL_ORDERS_PRODUCTS . ' ' . zen_draw_input_field('search_orders_products') . zen_hide_session_id();
if (isset($_GET['search_orders_products']) && zen_not_null($_GET['search_orders_products'])) {
$keywords_orders_products = zen_db_input(zen_db_prepare_input($_GET['search_orders_products']));
echo '<br/ >' . TEXT_INFO_SEARCH_DETAIL_FILTER_ORDERS_PRODUCTS . zen_db_prepare_input($keywords_orders_products);
}
?>
</form>
</div>
<div id="searchStatus">
<?php echo zen_draw_form('status', FILENAME_ORDERS, '', 'get', '', true); ?>
<?php
// show reset search status
if ((isset($_GET['status']) && zen_not_null($_GET['status'])) or $_GET['cID'] !='') {
echo '<a href="' . zen_href_link(FILENAME_ORDERS, '', 'NONSSL') . '">' . zen_image_button('button_reset.gif', IMAGE_RESET) . '</a><br />';
}
?>
<?php
echo HEADING_TITLE_STATUS . ' ' . zen_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), $_GET['status'], 'onChange="this.form.submit();"');
echo zen_hide_session_id();
?>
</form>
</div>
<div id="searchOrderID">
<?php echo zen_draw_form('ordersID', FILENAME_ORDERS, '', 'get', '', true); ?>
<?php echo HEADING_TITLE_SEARCH . ' ' . zen_draw_input_field('oID', '', 'size="12"') . zen_draw_hidden_field('action', 'edit') . zen_hide_session_id(); ?>
</form>
</div>
<!-- search -->
Live and learn... the Zen way.
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
No.. That's NOT what I am saying at all.. You need to merge the orders.php file from the mod with your orders.php.. You appear to have added only the part of the changes made.. The double search fields are because you merged in my changes (which modifies the search fields by simply removing the search fields from tables), but DID NOT remove the ORIGINAL parts of the file with the search fields which is why they appear TWICE in your store.. I'm not sure I can explain this any better..
Last edited by DivaVocals; 5 May 2015 at 09:29 AM.
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
I do get what you are saying but please try and hear me too. Please have a look at YOUR order.php in the zen_COWOA-master on github. The doubles that cause my issue are there. I am testing YOUR un-merged version from the zen_COWOA-master set.
I took the time to try and find the original search code and think this section is it:
again, this is present in your mod. Just thought you might want to fix it on your end as well.PHP Code:
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?></td>
<td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><?php echo zen_draw_form('orders', FILENAME_ORDERS, '', 'get', '', true); ?>
<td class="smallText" align="right"><?php echo HEADING_TITLE_SEARCH . ' ' . zen_draw_input_field('oID', '', 'size="12"') . zen_draw_hidden_field('action', 'edit') . zen_hide_session_id(); ?></td>
</form></tr>
<tr><?php echo zen_draw_form('status', FILENAME_ORDERS, '', 'get', '', true); ?>
<td class="smallText" align="right">
<?php
echo HEADING_TITLE_STATUS . ' ' . zen_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), $_GET['status'], 'onChange="this.form.submit();"');
echo zen_hide_session_id();
?>
</td>
</form></tr>
</table></td>
</tr>
Live and learn... the Zen way.
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
If I'm not mistaken, you removed the option to use the split-login page or is it still possible to get that back? I prefer to give the customer the split-login page first so they can decide what way they want to check out. I found the combined page does not render in a logical order when in mobile mode with a responsive template. Anyway, can I get that back somehow?
Live and learn... the Zen way.
Bookmarks