CCK/Contemplate & $name

I've got CCK and Contemplate running beautifully to create a very simple node on my site where users can list songs they're listening to.

In the sidebar (generated with the CCK theme wizard only), everything displays as I'd like: song title is a link to the node, and the author's name is a link to their profile.

Customizing E-commerce Invoices

I am having a little trouble solving a problem and would like to pick the brains of the e-commerce experts ;-)

First off I using Drupal 4.7

Ecommerce version is 2.1

As my clients do not process credit cards online, they use the COD payment type to complete the transaction and then contact the purchaser to finalize payment. They also have a Onfile payment type which I created which is just a clone of the COD Module so purchasers can indicate that they want to use a credit card that the site has on file.

I have had two requests from my clients... display the phone number on the invoice that is created in the store, as well as display the payment method.

I have solved the phone number problem but am having issues with displaying the payment method.

As far as I can tell the invoice is generated in the store.module in the function theme_store_invoice . Adding the output of the payment method would logically occur after the following line on or about line 337

$payment_info .= t('

Transaction ID: %txnid

', array('%txnid' => $trial ? t('Trial Invoice - Not Yet Posted') : $txn->txnid));

I have been spending the last couple of days familiarizing myself with the ecommerce modules' code but cant seem to see how to pull in the data contained in the field payment_method in the table ec_transaction

Columbus Ohio, Website redesign using Drupal

This is a summer project to relaunch a local college website. Interested parties should live in the central Ohio area.

Please use my contact form for inquires.

Autocomplete problem

I tried to make an autocompleted text field following this tutorial.

I did the following:

In my form:
$items['juego'] = array('#type' => 'textfield', '#title'=>t('Game').$req,'#autocomplete_path' => 'juego/autocomplete/','#size'=>'20','#maxlength'=>'100'/*,"#required"=>True*/,'#default_value' =>variable_get('juego', ""),'#description' => t('Name of the game to compete in'));

In the menu hook:

$items[] = array('path' => 'juego/autocomplete', 'title' => t('game autocomplete'),
      'callback' => 'juego_autocomplete', 'access' => user_access('access content'), 'type' => MENU_CALLBACK);

...And the handler function:

function juego_autocomplete($string) {
  $matches = array();
  $result = db_query_range("SELECT nombre FROM t_juegos WHERE LOWER(nombre) LIKE LOWER('%s%%')", $string, 0, 10);
  while ($juego = db_fetch_object($result)) {
    $matches[$juego->nombre] = check_plain($juego->nombre);
  }
  print drupal_to_js($matches);
  exit();
}

The problem is that when I type something into the text field, the handler is called but no string is passed to it, so the autocomplete returns all the possible options and not just the ones that match what I've typed.

Tinymce editor inserts tag <br type="_moz"/> if using mozilla browser

I faced some serious issue.while editing content using tinymce editor in the mozilla browser,tinymce editor inserts
in the content unnecessarily. So when i save the content after editing is done,the page gets disturbed. I tried to find the place where it is created by the tinymce editor.But all gone in vain.Please help me to solve this issue.

how to use javascript functions

How do i use javascript functions in events like onclick, onchange, etc..

How do i use Ajax here...??

can anyone help me ??

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x