Zen Cart Logo
Forums / Basic Configuration / Batch Status Update list as checkmark boxes, not dropdown

Batch Status Update list as checkmark boxes, not dropdown

Views: 1,568

Results 1 to 7 of 7
24 Jan 2012, 1:23 AM
#1
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Batch Status Update list as checkmark boxes, not dropdown

Batch Status Update...

Is there a way to call up say 4 Bins to display after search instead of the one option drop down menu?

We have orders come in 4 ways, then have to (one at a time) batch update to Processing.

Can I have the Statuses show as check boxes, not a drop down easy enough?

24 Jan 2012, 1:26 AM
#2
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Re: Batch Status Update list as checkmark boxes, not dropdown

<td class="smallText"><?php echo zen_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), $_GET['status'], ''); ?></td>

Here's the code that creates the drop down.

24 Jan 2012, 3:43 PM
#3
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Re: Batch Status Update list as checkmark boxes, not dropdown

Replacing with this only generates one checkbox.

zen_draw_checkbox_field

How do I list ALL statuses with checkboxes?

24 Jan 2012, 9:42 PM
#4
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Re: Batch Status Update list as checkmark boxes, not dropdown

Here is a screen shot of what I'm after...

Keep the center dropdown
IF any check boxes are checked THEN disregard the dropdown and use the checkbox options selected

there may be an easier way.

25 Jan 2012, 5:10 PM
#5
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Re: Batch Status Update list as checkmark boxes, not dropdown

If it's any easier to replace the dropdown all together, that would be fine too to avoid both.

With this code I am still missing something (array?) but at least it generates one checkbox and one status bin # (the last id # of our bins 22)

				<td class="smallText" align="center"><?php
                  echo zen_draw_checkbox_field('order_status[' . $orders_statuses->fields['orders_status_id'] . ']', 'yes', $checked);
                  echo $orders_status->fields['orders_status_id']; ?></td>
7 Feb 2012, 10:10 PM
#6
raymondblink avatar

raymondblink

New Zenner

Join Date:
Feb 2012
Posts:
1
Plugin Contributions:
0

Re: Batch Status Update list as checkmark boxes, not dropdown

sbbemn:

Is there a way to call up say 4 Bins to display after search instead of the one option drop down menu?

I've actually been looking for a way to do this for a while...There's actually a member of my development team working on a solution to this at the moment (or, he's meant to be...) - i'll see if he's got any further with it in the morning and post back here with his results!

8 Feb 2012, 12:57 AM
#7
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Re: Batch Status Update list as checkmark boxes, not dropdown

Sounds GREAT!

I hope this works out for you! Here's where I'm at if this direction makes sense....

I am keeping the dropdown intact while calling 3 additional (optional) Bins. Pick from the dropdown like normal and choose the extra bins to include if wanted.

<tr>
                <td class="smallText" align="center"><?php echo HEADING_SEARCH_STATUS; ?></td>
                <td class="smallText" align="center"><?php echo zen_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), $_GET['status'], ''); ?></td>
				<td class="smallText" align="left">
				  <?php echo zen_draw_checkbox_field('status', '1', $orders_status_checked);?> OSR<br />
				  <?php echo zen_draw_checkbox_field('status', '1', $orders_status_checked);?> SO<br />
				  <?php echo zen_draw_checkbox_field('status', '1', $orders_status_checked);?> ORWP
                </td>
              </tr>

I'm stuck as to how to link the certain Bin IDs to the check boxes for form submission along with the dropdown selection.