Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

using checkboxes in admin


Guest

Recommended Posts

Posted

has anybody figured out how to use checkboxes for options in the admin section instead of the "edit" button for orders and categories?

 

putting checkboxes in selection columns could drastically speed up the time spent in the admin section

Posted
has anybody figured out how to use checkboxes for options in the admin section instead of the "edit" button for orders and categories?

 

putting checkboxes in selection columns could drastically speed up the time spent in the admin section

 

 

Checkboxes for what exactly??

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

I was just installing a contribution today that used this feature. A code like this was added to catalog/admin/categories.php and button images were added. Obviously this isnt complete and you'd need to modify it, and disclaimer I'm not a programmer. Dont make it - Just use it... I'd take a look at the admin install instructions for the contrib "Make an Offer"

 

Search For:
<td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products['products_id'] . '&action=new_product_preview&read=only') . '">' . tep_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a> ' . $products['products_name']; ?></td>
<td class="dataTableContent" align="center">


And Add Underneath:
<!-- Activate or deactivate the Make an Offer button -->
<?php
	  if ($products['products_make_an_offer'] == '1') {
	echo tep_image(DIR_WS_IMAGES . 'icon_status_green_mao.gif', IMAGE_ICON_STATUS_OFFER_DEACTIVATE, 10, 10) . '  <a href="' . tep_href_link(FILENAME_CATEGORIES, 'action=setflagoffer&flag=0&pID=' . $products['products_id'] . '&cPath=' . $cPath) . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light_mao.gif', IMAGE_ICON_STATUS_RED_LIGHT, 10, 10) . '</a>';
	  } else {
	echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'action=setflagoffer&flag=1&pID=' . $products['products_id'] . '&cPath=' . $cPath) . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light_mao.gif', IMAGE_ICON_STATUS_OFFER_ACTIVATE, 10, 10) . '</a>  ' . tep_image(DIR_WS_IMAGES . 'icon_status_red_mao.gif', IMAGE_ICON_STATUS_RED, 10, 10);
	  }
?></td>
<td class="dataTableContent" align="center">

Posted

Naegle, i don't follow? it just looks like it's adding images for make an offer there.

 

what i want to do is this:

http://img477.imageshack.us/my.php?image=status14fm.jpg

 

move the "edit" button to where the arrow is pointing, so i don't have to click twice to get into an order.

 

use checkboxes for all selections and put a "go" button that will be activated for any order/category i have checked.

Posted
Naegle, i don't follow? it just looks like it's adding images for make an offer there.

 

what i want to do is this:

http://img477.imageshack.us/my.php?image=status14fm.jpg

 

move the "edit" button to where the arrow is pointing, so i don't have to click twice to get into an order.

 

use checkboxes for all selections and put a "go" button that will be activated for any order/category i have checked.

 

Ok, I follow now. The contibution I was installing added a button next to the "active" button to make a change to the product info. I assumed you wanted to do something similar.

 

I think you've got a great idea, but its out of my league. I'm a more of the "copy-paste-and-modify" type. You might want to ask someone else on this one. Good Luck :thumbsup:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...