Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to manage "take away orders"


dahui

Recommended Posts

Posted

I did not place this in contrib support, although I know that there is the contrib from david cliquot 'aemporter', but I) there is no support track II) maybe you solve it differently ;)

 

so the question is howto deal with orders that are placed to be picked up at our location. I would like them to proceed like normal orders but have the option 'pickup' in payment and shipping.

 

How do you out there handle this?

 

dahui

Posted

hehe it's always the same, I have difficulties in finding the right search strings.

 

ok I have found min 3 contribs that seem todo all the same, but all of them say

 

'simply turn on in admin' but all of them provide just a cattalog module and language file, so in my admin no option is showing up.

 

did I do anything wrong?

 

dahui

Posted

sometimes instead of providing an sql file they include instructions to run the script through phpmyadmin for dbase updates. It could be hidden somewhere in a readme or something.

Posted

Hi Mark

 

no sql included and not needed, I installed now Store Pickup Shipping Modulev 1.3 and it's working fine, the only problem I have is ...

 

as I do have only cod and moneyorder as payment options for the moment, the SPU wokz as long as there is an amount below 50 EUR over 50 EUR I offer free shipping for both cod and moneyorder. the affect is when you choose items over 50 EUR it says non shippinh charged and thats it. so where can the customer specify that he wants to pick it up?

 

dahui

Posted

... and vice versa, if the products to purchase are below 50 EUR and I choose SPU then on shippinhpage I am asked If I want cod or moneyorder ?

 

now that I am about to launch I seem to run into more and more problems :(

 

dahui

Posted

ok I see, yea that wont work but here is something else (dont try it since its just and idea and unless you cannot find a contrib to do what you need)

 

each payment module (class) has this function declared in it: (see how the moneyorder.php has it)

 

    function confirmation() {
     return array('title' => MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION);
   }

 

the catalog\checkout_confirmation.php calls this function for each payment module if you see in that file:

  if (is_array($payment_modules->modules)) {
   if ($confirmation = $payment_modules->confirmation()) {
?>

 

so you could add some extra html in the desciption like an input box (for the pickupdetails ) If you see the current moneyorder definition:

  define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', 'Make Payable To: ' . MODULE_PAYMENT_MONEYORDER_PAYTO . '<br><br>Send To:<br>' . nl2br(STORE_NAME_ADDRESS) . '<br><br>' . 'Your order will not ship until we receive payment.');

 

So its easy to add an input box there. Then you can store its value in the dbase with the order because on the confirmation page there is the tep_draw_form and so somewhere before the </form> you could post the pick-up option and get the pcikup value on the next page (checkout_process.php) and even list it for the client. (use tep_draw_hidden_field to post the option)

Posted

hey mark

 

I really really do appreciate your help on this, thx very much.

 

I found the http://www.oscommerce.com/community/contributions,1633 CoD+CoP with shipping dependency that does something semi-similar, it gives me the option to choose which payment to use with which shipment.

 

still there is the issue with the over 50 EUR.

 

as said I thank you very much for yr input and I think I do have a slight Idea of the way you mentioned, the thingy is that my php skills are to flat todo that.

 

May I ask you an of couse others are invited as well for further assistance on this :huh:

 

dahui

Posted

mike thanks :D , well if you have some code available post it here I am sure someone should able to correct it. Now because you offer free shipping if you could integrate the contrib but moding the payment or confirmation pages instead of shipping files should do the trick.

Posted

as mentioned I do not have the best php-coding-skills,if any at all ;)

 

so waht makes it all difficult according to me, is the fact that I do offer free shipping

 

as the contribs mentioned would do the rest of the job (hopefully as I did not test it) I think I would have to modify the part of the osC code where the free shipment greps in.

 

my approach would be to alter the logic in code checking how much the shoppingcart total is and then it decides not to diplay any other shipment methods on checkout_shipping.php. this should never exclude SUP. Than I could disable the cod with the contrib-addon I mentioned in checkout_payment.php and all would be fine

 

dahui

Posted

ok found one more contrib that might be helpful, Ship 2 Pay http://www.oscommerce.com/community/contri...arch,cod/page,2 but there is still the issue with enabeling somehow the pickup option in checkout_shipping.php when free shipping over amount XXX is chossen in admin.

 

I think the code to be modified should be in checkout_shipping.php this part

// load all enabled shipping modules
 require(DIR_WS_CLASSES . 'shipping.php');
 $shipping_modules = new shipping;

 if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) {
   $pass = false;

   switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {
     case 'national':
       if ($order->delivery['country_id'] == STORE_COUNTRY) {
         $pass = true;
       }
       break;
     case 'international':
       if ($order->delivery['country_id'] != STORE_COUNTRY) {
         $pass = true;
       }
       break;
     case 'both':
       $pass = true;
       break;
   }

   $free_shipping = false;
   if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
     $free_shipping = true;

     include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php');
   }
 } else {
   $free_shipping = false;
 }

// process the selected shipping method
 if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') ) {
   if (!tep_session_is_registered('comments')) tep_session_register('comments');
   if (tep_not_null($HTTP_POST_VARS['comments'])) {
     $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
   }

   if (!tep_session_is_registered('shipping')) tep_session_register('shipping');

   if ( (tep_count_shipping_modules() > 0) || ($free_shipping == true) ) {
     if ( (isset($HTTP_POST_VARS['shipping'])) && (strpos($HTTP_POST_VARS['shipping'], '_')) ) {
       $shipping = $HTTP_POST_VARS['shipping'];

       list($module, $method) = explode('_', $shipping);
       if ( is_object($$module) || ($shipping == 'free_free') ) {
         if ($shipping == 'free_free') {
           $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
           $quote[0]['methods'][0]['cost'] = '0';
         } else {
           $quote = $shipping_modules->quote($method, $module);
         }
         if (isset($quote['error'])) {
           tep_session_unregister('shipping');
         } else {
           if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {
             $shipping = array('id' => $shipping,
                               'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
                               'cost' => $quote[0]['methods'][0]['cost']);

             tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
           }
         }
       } else {
         tep_session_unregister('shipping');
       }
     }
   } else {
     $shipping = false;

     tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
   }
 }

// get all available shipping quotes
 $quotes = $shipping_modules->quote();

// if no shipping method has been selected, automatically select the cheapest method.
// if the modules status was changed when none were available, to save on implementing
// a javascript force-selection method, also automatically select the cheapest shipping
// method if more than one module is now enabled
 if ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest();

 

but no idea where to start off, to always show SUP

 

dahui

Posted

you could see how it looks by setting the flag here

 

$free_shipping = false;

// process the selected shipping method

 

the problem remains however that it will show shipping always and I was thinking you should consider the payment module (unless you find a contrib) so you're not dependent on shipping but on the final payment for the "pick up" input field.

Posted
you could see how it looks by setting the flag here

 

$free_shipping = false;

// process the selected shipping method

 

the problem remains however that it will show shipping always and I was thinking you should consider the payment module (unless you find a contrib) so you're not dependent on shipping but on the final payment for the "pick up" input field.

 

as usual yr input is very valuable mark, we seem to 'tick equally'. I really appreciate to share the way others would approach problems, even if they do not have a 125% out of the box solution at hand.

 

finally I got it !!!!

 

admin is set free shipping for over 50 EUR

if cart is below 50EUR following options available ->

 

shipping : flat

payment : cod or moneyorder,no pay on pickup

 

shipping : pick up

payment : moneyorder or pay on pickup, no cod

 

if cart is over 50EUR following options available ->

 

shipping : 'on charges as over 50 EUR', nly that nothing else displayed

payment : moneyorder or pay on pickup, no cod

 

 

thatis all I needed ;) :D

 

I achived this with contribution cod, cop and modification of code to steer the dependancy between payment and shipping modules in both ways.

 

osC roxxxxxxxxxxxxx!

 

thx again for yr input, comes around goes around and I am sure you will achieve, if not from me, for sure from someone else ;)

 

yahbless

dahui

Posted

... but it does not seem to end :blush:

 

since my loast post I also added the ot_modules contrib to add fixed eytra amounts for shipment methods, with success. I thought that was it as it now seemed pefect. I even succeede to alter the code of the checkout pages to show different anouncements/descriptions for the same object e.g. on shpment or confirmation page. I think I came around the complete locig of how shipment payment modules and classes work together.

 

So far so good, laid back, looked at and thought about it. OOOPss one more thing and that is new now for me.

 

If somebody starts choosing normal shipment and enters his delivery address, than proceeds to paymnet chooses cod, enters/chooses diferent address that shipment, and then gets to the confirmation page, there will show up diferent shipment and payment addresses which is correct but makes no sense, as for cod they have to be the same.

 

so checkout_confirmation.php is the file and javascript has to be implemented to verify something like this:

if payment is COD

  check the shioment address and payment address are the same

  proceed

else

  echo the error and request for correction

 

this is like a blank page to me

 

any push in right direction as always very welcome

 

thx a lot for yr input folks

dahui

Posted

can you utilize the javascript_validation from another payment module like cc.php and change the cc fields to address fields. Then in the selection() function you setup the hidden fields with the values retrieved from the $order class

 

$order->delivery['street_address']

$order->delivery['city']

$order->delivery['postcode']

 

these are available in the cod.php by setting

global $order;

 

with the selection() function. Then your selection function could include something like:

 

 ? ? ?$selection = array('id' => $this->code,
? ? ? ? ? ? ? ? ? 'module' => $this->title,
? ? ? ? ? ? ? ? ? 'fields' => array(array('title' => MODULE_PAYMENT_COD_STREET,
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'field' => tep_draw_input_field('cod_street', $order->delivery['street_address'])),
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? array('title' => MODULE_PAYMENT_COD_DELIVERY,
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'field' => tep_draw_input_field('cod_city',$order->delivery['city'] )),
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? array('title' => MODULE_PAYMENT_COD_ZIP,
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'field' => tep_draw_pull_down_menu('cod_zip', $order->delivery['postcode']))));

 

I added just the deivery array and you should add the $order->billing array the same way this should give you 3 pairs of values to compare with the js validation

 

that should be something like this:

 ? ? ?$js = ' ?if (payment_value == "' . $this->code . '") {' . "\n" .
? ? ? ? ? ?' ? ?var cod_street_1 = document.checkout_payment.code_street.value;' . "\n" .
? ? ? ? ? ?' ? ?var cod_street_2 = document.checkout_payment.cod_street_2.value;' . "\n" .
? ? ? ? ? ?' ? ?if (cod_street != cod_street_2 || cod_city != cod_city_2 || cod_zip != cod_zip_2) {' . "\n" .
? ? ? ? ? ?' ? ? ?error_message = error_message + "' . MODULE_COD_PAYMENT_TEXT_JS_COD_OWNER . '";' . "\n" .
? ? ? ? ? ?' ? ? ?error = 1;' . "\n" .
? ? ? ? ? ?' ? ?}' . "\n" .
? ? ? ? ? ?' ?}' . "\n";

 

Needless to say I have no idea about errors this code has since I havent tried it but you get an idea how it could be done for the cod validation.

Posted

to be farelyhonest, I get only about 25% of what you mentioned after 2nd reading :blush: but this doe not necessarily mean it's badly ecplained, rather me beeing really... ;)

 

anyway I will have a very very close look at it, and sure it will take me further.

 

meanwhile I checked some code as well and thought I simplay shouldcheck wether

 

$order->billing == $order->delivery

 

see gow fa I get in same time huahuahuahua

but I started looking in create account.php and login.php to check the syntax there.

I will check cc.php and yr Ideas now

 

thx

dahui

Posted
can you utilize the javascript_validation from another payment module like cc.php and change the cc fields to address fields. Then in the selection() function you setup the hidden fields with the values retrieved from the $order class

 

$order->delivery['street_address']

$order->delivery['city']

$order->delivery['postcode']

 

these are available in the cod.php by setting

global $order;

 

with the selection() function. Then your selection function could include something like:

 

      $selection = array('id' => $this->code,
                  'module' => $this->title,
                  'fields' => array(array('title' => MODULE_PAYMENT_COD_STREET,
                                                'field' => tep_draw_input_field('cod_street', $order->delivery['street_address'])),
                                          array('title' => MODULE_PAYMENT_COD_DELIVERY,
                                                'field' => tep_draw_input_field('cod_city',$order->delivery['city'] )),
                                          array('title' => MODULE_PAYMENT_COD_ZIP,
                                                'field' => tep_draw_pull_down_menu('cod_zip', $order->delivery['postcode']))));

 

I added just the deivery array and you should add the $order->billing array the same way this should give you 3 pairs of values to compare with the js validation

 

that should be something like this:

      $js = '  if (payment_value == "' . $this->code . '") {' . "\n" .
           '    var cod_street_1 = document.checkout_payment.code_street.value;' . "\n" .
           '    var cod_street_2 = document.checkout_payment.cod_street_2.value;' . "\n" .
           '    if (cod_street != cod_street_2 || cod_city != cod_city_2 || cod_zip != cod_zip_2) {' . "\n" .
           '      error_message = error_message + "' . MODULE_COD_PAYMENT_TEXT_JS_COD_OWNER . '";' . "\n" .
           '      error = 1;' . "\n" .
           '    }' . "\n" .
           '  }' . "\n";

 

Needless to say I have no idea about errors this code has since I havent tried it but you get an idea how it could be done for the cod validation.

 

 

I've tried a couple of things follwing yr logic, but either I get errors or not the result I expected :(

 

I thought it might be possible to do s. th like

if ('pamynentmodule' == 'cod') && (  $order->billing != $order->delivery ) { don_not_submit_but_pop_the_errormessage 'Billing must match Delivery for COD'}

while I know ;) the code will not work like this,it's just my thoughts of approaching it.

 

I do need further HELP PLEASE

 

dahui

Posted

it might be implemented into checkout confirmation, even better on checkout payment,

like when I choose address A in checkout_shipment, and choose a different address B in combination (! only) with COD, than do the check like

 

huahuahuahu

if ('pamynentmodule' == 'cod') && (  $order->billing != $order->delivery ) { don_not_submit_but_pop_the_errormessage 'Billing must match Delivery for COD'}

 

that would be perfect!

 

anbody else apart from enigma1 is cordially invited to help out as well :thumbsup:

 

thx dahui

Posted

delivery and billing are arrays so here is an example from the php.net to compare them.

 

<?php
// Arrays are compared like this with standard comparison operators
function standard_array_compare($op1, $op2)
{
  if (count($op1) < count($op2)) {
      return -1; // $op1 < $op2
  } elseif (count($op1) > count($op2)) {
      return 1; // $op1 > $op2
  }
  foreach ($op1 as $key => $val) {
      if (!array_key_exists($key, $op2)) {
          return null; // uncomparable
      } elseif ($val < $op2[$key]) {
          return -1;
      } elseif ($val > $op2[$key]) {
          return 1;
      }
  }
  return 0; // $op1 == $op2
}
?>

Posted

so if I understand right something like/equal/close ;) to this

 

function address_compare($order->billing, $order->delivery)
{
 if ($order->billing == $order->delivery) {
     return = false;
 } elseif ($order->billing == $order->delivery) {
     return = true;
 }
}

 

might compare the addresses but where to call the error popup then and how?

 

will this work as well?

function address_compare($order->billing, $order->delivery)
{
 if ($order->billing == $order->delivery) {
     $adr_chck = false;
 } elseif ($order->billing == $order->delivery) {
     $adr_chck = true;
 }
}

 

then the next logic to me would be to check

 

if (($payment_modules == 'COD') &&  ($adr_chk == false) { ...

 

sorry mate I once more like to state howmcuh I appreciate yr help, but though this must be an 'easy-to-solve-issue' as all logic should be implmented somehow already and only needs to be adapted, I cannot get this to work :( :( :(

 

dahui

Posted

your address compare, compares arrays but it doesnt really you need to compare their elements.

 

Use the function I previously posted, rename it if it confuses you to something like address_compare (dont change anything else like its arguments) then call it like this:

 

if( !address_compare($order->billing, $order->delivery) )
{
 // Delivery and Billing match
} else {
 // Address mismatch
}

Posted

Mark you really bare with me, sorry :blush:

 

sorry for the long posting but could you (or again s.o. else who is following the thread) check these please?

 

I altered cop.php module and language file as follows

 

<?php
/*
 $Id: cod.php,v 1.28 2003/02/14 05:51:31 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 class cod {
   var $code, $title, $description, $enabled;

// class constructor
   function cod() {
     global $order;

     $this->code = 'cod';
     $this->title = MODULE_PAYMENT_COD_TEXT_TITLE;
     $this->description = MODULE_PAYMENT_COD_TEXT_DESCRIPTION;
     $this->sort_order = MODULE_PAYMENT_COD_SORT_ORDER;
     $this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);

     if ((int)MODULE_PAYMENT_COD_ORDER_STATUS_ID > 0) {
       $this->order_status = MODULE_PAYMENT_COD_ORDER_STATUS_ID;
     }

     if (is_object($order)) $this->update_status();

     $this->email_footer = MODULE_PAYMENT_COD_TEXT_EMAIL_FOOTER;
     $this->email_footer2 = MODULE_PAYMENT_COD_TEXT_EMAIL_FOOTER2;
   }

// class methods
   function update_status() {
   global $order, $shipping;

     if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_COD_ZONE > 0) ) {
       $check_flag = false;
       $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_COD_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
       while ($check = tep_db_fetch_array($check_query)) {
         if ($check['zone_id'] < 1) {
           $check_flag = true;
           break;
         } elseif ($check['zone_id'] == $order->delivery['zone_id']) {
           $check_flag = true;
           break;
         }
       }

       if ($check_flag == false) {
         $this->enabled = false;
       }
     }
     // Deaktivieren wenn - start
           if ($shipping['id']=="free_free") {
           $this->enabled = false;
           }

           if ($shipping['id']=="spu_spu") {
           $this->enabled = false;
           }
     // Deaktivieren wenn - ende

// disable the module if the order only contains virtual products
     if ($this->enabled == true) {
       if ($order->content_type == 'virtual') {
         $this->enabled = false;
       }
     }
   }

   function javascript_validation() {
    $js = '  if (payment_value == "' . $this->code . '") {' . "\n" .
          '    var cod_name_1 = document.checkout_payment.cod_name.value;' . "\n" .
          '    var cod_name_2 = document.checkout_payment.cod_name_2.value;' . "\n" .     
          '    var cod_street_1 = document.checkout_payment.cod_street.value;' . "\n" .
          '    var cod_street_2 = document.checkout_payment.cod_street_2.value;' . "\n" .
          '    var cod_city_1 = document.checkout_payment.cod_city.value;' . "\n" .
          '    var cod_cityt_2 = document.checkout_payment.cod_city_2.value;' . "\n" .           
          '    var cod_zip_1 = document.checkout_payment.cod_zip.value;' . "\n" .
          '    var cod_zip_2 = document.checkout_payment.cod_zip_2.value;' . "\n" .           
          '    if (cod_name_1 != cod_name_2 || cod_street_1 != cod_street_2 || cod_city1 != cod_city_2 || cod_zip1 != cod_zip_2) {' . "\n" .
          '      error_message = error_message + "' . MODULE_COD_PAYMENT_TEXT_JS_COD_ADR . '";' . "\n" .
          '      error = 1;' . "\n" .
          '    }' . "\n" .
          '  }' . "\n";

     return $js;
   }

   function selection() {
     global $order;
     $selection = array('id' => $this->code,
                 'module' => $this->title,
                 'fields' => array(array('title' => MODULE_PAYMENT_COD_NAME,
                                         'field' => tep_draw_input_field('cod_name', $order->delivery['name'])),
                                   array('title' => MODULE_PAYMENT_COD_STREET,
                                         'field' => tep_draw_input_field('cod_street', $order->delivery['street_address'])),
                                   array('title' => MODULE_PAYMENT_COD_DELIVERY,
                                         'field' => tep_draw_input_field('cod_city',$order->delivery['city'] )),
                                   array('title' => MODULE_PAYMENT_COD_ZIP,
                                         'field' => tep_draw_pull_down_menu('cod_zip', $order->delivery['postcode']))));

   function pre_confirmation_check() {
     return false;
   }

   function confirmation() {
     return false;
   }

   function process_button() {
     return false;
   }

   function before_process() {
     return false;
   }

   function after_process() {
     return false;
   }

   function get_error() {
     return false;
   }

   function check() {
     if (!isset($this->_check)) {
       $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_COD_STATUS'");
       $this->_check = tep_db_num_rows($check_query);
     }
     return $this->_check;
   }

   function install() {
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Cash On Delivery Module', 'MODULE_PAYMENT_COD_STATUS', 'True', 'Do you want to accept Cash On Delevery payments?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_COD_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_COD_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_COD_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");
  }

   function remove() {
     tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
   }

   function keys() {
     return array('MODULE_PAYMENT_COD_STATUS', 'MODULE_PAYMENT_COD_ZONE', 'MODULE_PAYMENT_COD_ORDER_STATUS_ID', 'MODULE_PAYMENT_COD_SORT_ORDER');
   }
 }
?>

 

<?php
/*
 $Id: cod.php,v 1.8 2003/07/11 09:04:23 jan0815 Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

 define('MODULE_PAYMENT_COD_TEXT_TITLE', 'Nachnahme');
 define('MODULE_PAYMENT_COD_TEXT_DESCRIPTION', 'Nachnahme');
 define('MODULE_PAYMENT_COD_TEXT_EMAIL_FOOTER', " ");
 define('MODULE_PAYMENT_COD_TEXT_EMAIL_FOOTER2', "Ihre Bestellung wird innerhalb der n?chsten 24 Std. auf den Versandweg gebracht.\nWir freuen uns, Sie recht bald wieder in unserem OnlineShop berg??en zu d?rfen.\n\nElflein Kosmetik\nOnlineShop Service\n\n\n\n". EMAIL_SEPARATOR2 . "\n\n" . STORE_NAME_ADDRESS ."\neMail:   [email protected]\n\n");
 
 define('MODULE_COD_PAYMENT_TEXT_JS_COD_ADR', "Bei Zahlung per Nachnahme m?ssen Versand- und Rechnungsadresse ?bereinstimmen.");
?>

Posted

you should have all the files now. let me know if you received them by PM.

Archived

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

×
×
  • Create New...