Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

orders and customers sorting contrib


Guest

Recommended Posts

Hi Community,

I have installed a couple of years ago a contribution that enables sorting of customers and orders by columns.

 

This contrib worked pretty well until I changed the provider.

Then th URL's called by the buttons (using a SLL proxy) where malformed.

 

In my opinion, this is very probably due to the usage of the function "$PHP_SELF" instead of "tep_href_link(", which might not be supported by every SSL proxy correctly.

 

The first problem is that I cannot find the original contribution anymore to inform the community and eventually to post the correction.

This contribution contains around the line 730 of "customers.php" following code:

 

<td class="dataTableHeadingContent"><a href="<?php echo "$PHP_SELF?listing=lastname"; ?>"><?php echo tep_image_button('ic_up.gif', ' Sort ' . TABLE_HEADING_LASTNAME . ' --> A-B-C From Top '); ?></a> <a href="<?php echo "$PHP_SELF?listing=lastname-desc"; ?>"><?php echo tep_image_button('ic_down.gif', ' Sort ' . TABLE_HEADING_LASTNAME . ' --> Z-X-Y From Top '); ?></a><br><?php echo TABLE_HEADING_LASTNAME; ?></td>

 

has anyone got a clue , which contribution it is?

 

I would like to replace instruction

<a href="<?php echo "$PHP_SELF?listing=lastname-desc"; ?>">

by something like:

 

<a href="' . tep_href_link(FILENAME_ORDERS, 'cID=' . $cInfo->customers_id) . '">'

 

What could have been the correct syntax for placing for example "listing=lastname-asc" between FILENAME_ORDERS and cID=.... ?

 

Thank you very much if you could help me.

 

Regards

Michel Firholz

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...