I need 2 small features for an osCommerce based site:
1. Automatic order:
We sell (as products) prepaid credits to our clients. We have a small process that check the clients' accounts balances and if a threshold is reached, we either ask the clients to buy more credits or generate a direct debit command to our automated direct debit module to make the direct debit from their accounts, if they chose this payment option. The problems with the 2nd scenario is that they will actually pay for something that they didn't really order, so what I need is to create an "Automatic Order", meaning that a product will be chosen (by its ID/number) automatically (based on the recharge level that the client chose) and all the data that would have been selected, such as shipping mode (predefined), payment mode (also predefined) will all be entered to the proper locations in the $this or wherever they should be placed and then all this information would be passed directly to the last page of the order, instead of having the user go through all the process himself. With all the data gathered, a new order will be generated in the system, and this will launch the direct debit command to the client's bank account.
2. Extended Breadcrumbs:
In the latest version of "Info Pages Unlimited" contribution, there is the option to have parents to info pages. This is all nice and well, but in the breadcrumbs (Top >> Catalog >> Info Page), a child page will not have also its parent listed in the breadcrumbs. For example, if I have "Jobs" as a child of "About Us", I'll get "Top >> Catalog >> Jobs" instead of "Top >> Catalog >> About Us >> Jobs".
I changed the [url removed, login to view] page to include the parent_id in the SQL query and created a variable $parent for it, but I need to complete the task, by checking the parent's name (if one indeed exists) and building the breadcrumb to include it (name and URL).
That's the SQL query line:
$information_query = tep_db_query("SELECT info_title, description, parent_id FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . $info_id . "'");
That's the $parent assignment:
$parent = stripslashes($information['parent_id']);
That's the original breadcrumb assignment (without the parent):
$breadcrumb->add($title, tep_href_link(FILENAME_INFORMATION, 'info_id=' . $HTTP_GET_VARS['info_id'], 'NONSSL'));
To resume, I need the following added:
1. If the $parent is not NULL (or zero?), we should get its name.
2. Add the parent to the breadcrumb before adding the child.
I will need these features to be demonstrated to me upon completion on a test osc site prior to accepting the project.
PS: I kindly urge only osc knowledgeable developers to bid. I saw on many projects that many people place bids, although it's quite obvious that they wouldn't have a clue on how to do it. It's a very specific project. Thanks again.