Jump to content


  • Content count

  • Joined

  • Last visited

Profile Information

  • Real Name
    Ben Cox
  1. BenCox

    Ultimate Seo Urls 5 Pro

    Hello Everyone, I have been working on a modification of ultimate seo urls that will allow up to three get vars to be rewritten in the url. It will work in the same way as the standard ultimate seo urls however if you configure the page module correctly you will be able to specify three get vars to be rewritten instead of the standard one. At the minute my code outputs the url from tep_hre_link in the manner i want it to however when you visit the link it redirects to a standard ultimate seo urls url (one get var) because of the validator function. Does anybody know where i can modify the output of: $new_url = htmlspecialchars_decode( tep_href_link( Usu_Main::i()->getVar( 'filename' ), Usu_Main::i()->getVar( 'request_querystring' ) ) ); Has anybody tried doing this before succesfully?
  2. BenCox


    ok, instead of mysql_insert_id() we can now use $osC_Database->nextID(); However i am still unsure how to handle the template id? Has anybody got any suggestions?
  3. BenCox


    I also have another question, for my addon i need to manual insert records in the table_templates_boxes_to_pages table, how do i go about aquiring the relevant template_ids?
  4. BenCox


    Hello everyone, I am in the process of developing a addon for oscommerce and i have come across a little problem, i need to use mysql_insert_id() and am having trouble doing so, i'm guessings its because of the new OO system and me not being 100% confident with it all yet. Anyway in my code i perform an insert into one table using the new database class then i tried to assign mysql_insert_id() to a var like this $temp_box_id = mysql_insert_id(); and get the following error Warning: mysql_insert_id() [function.mysql-insert-id]: A link to the server could not be established in Could someone point in the direction to the proper way to get the id of the newly inserted row with the new database class please? Many Thanks for reading.
  5. Hello All, I am working on a addon for oscommerce in which an admin panel operator will be able to import a quote from an xml file which the customer had attached to a email which has been previously sent to them. The addon is very near completion however I have one small problem , I need to fire the one page checkout javascript events that check the address details are all present and then display the shipping and payment methods. Could somebody please help me locate the specific function? As I said it is a one page checkout function. Thanks for reading.
  6. BenCox

    One Page Checkout Support

    I had a problem where if I made a user account through the one page checkout form, the user could not log in on there return to the website, this was because one page checkout does not set the customer status to true. The fix is below: open onepage_checkout.php in includes/classes. find on line 1122: $sql_data_array = array( 'customers_firstname' => $onepage['billing']['firstname'], 'customers_lastname' => $onepage['billing']['lastname'], 'customers_email_address' => $onepage['customer']['email_address'], 'customers_telephone' => $onepage['customer']['telephone'], 'customers_fax' => $onepage['customer']['fax'], 'customers_newsletter' => $onepage['customer']['newsletter'], 'customers_password' => tep_encrypt_password($onepage['customer']['password']) ); replace with: $sql_data_array = array( 'customers_firstname' => $onepage['billing']['firstname'], 'customers_lastname' => $onepage['billing']['lastname'], 'customers_email_address' => $onepage['customer']['email_address'], 'customers_telephone' => $onepage['customer']['telephone'], 'customers_fax' => $onepage['customer']['fax'], 'customers_newsletter' => $onepage['customer']['newsletter'], 'customers_status' => '1', 'customers_password' => tep_encrypt_password($onepage['customer']['password']) );