Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Sorry but I not so good to English

 

Hey

Remove the delivery address in e-mail and ordre when there are choosen a goods in the store.

 

Are there anybody who know how to remove the delivery address on the e-mail that is send when there are

choosen the opportunity to collect the ordred in the store. The modul who are used to choose "Get in store" are based on flat.php

 

 

I have wittout luck tryed in the file checkout_process.php

 

<?php

if ($order->content_type != 'virtual') {

$email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .

EMAIL_SEPARATOR . "\n" .

tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";

}

 

$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .

EMAIL_SEPARATOR . "\n" .

tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";

if (is_object($$payment)) {

$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .

EMAIL_SEPARATOR . "\n";

$payment_class = $$payment;

$email_order .= $payment_class->title . "\n\n";

if ($payment_class->email_footer) {

$email_order .= $payment_class->email_footer . "\n\n";

}

}

 

 

New

 

if ($order->content_type != 'virtual') {

//not deliveryaddress when goods i get in the store

if (tep_session_unregister('shipping') == ('hentbutik_hentbutik')) {

$email_order .= "\n" . MODULE_SHIPPING_HENTBUTIK_EMAIL_TEXT . "\n";

} else {

//not deliveryaddress when goods i get in the store

$email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .

EMAIL_SEPARATOR . "\n" .

tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";

}

//not deliveryaddress when goods i get in the store

}

//not deliveryaddress when goods i get in the store

$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .

EMAIL_SEPARATOR . "\n" .

tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";

if (is_object($$payment)) {

$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .

EMAIL_SEPARATOR . "\n";

$payment_class = $$payment;

$email_order .= $payment_class->title . "\n\n";

if ($payment_class->email_footer) {

$email_order .= $payment_class->email_footer . "\n\n";

}

}

 

 

That work fine when there are choose "get in store" will be delivery address replace by

MODULE_SHIPPING_HENTBUTIK_EMAIL_TEXT = Get in store

 

But not wood choose of otter delivery method, delivery address replace by MODULE_SHIPPING_HENTBUTIK_EMAIL_TEXT

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...