Fakturamodul (Invoice) - Zen Cart

Invoice module, with invoice fee for Zen-Cart

Updated from money order (osCommerce, Zen-Cart).

Updated from fakturamodul by RonnyB

Updated by Wils, see change log below.

Disclaimer. Use at your own risk. Files overridden are based on Oscommerce and Zen-Cart code. The author of the mod claims no credit for the original work. If you modify the mod, it is appreciated if you share this with me at m a i l AT w i l s . s e. 

Original code:

Copyright (c) 2003 The zen-cart developers

Portions Copyright (c) 2003 osCommerce

Tested with 1.3.0.2 and 1.3.7. Support thread.

Description

This is a contrib to Zen-Cart to give customers the option to select to pay by invoice. An invoice fee can be added in order total. The language file provided is in Swedish.

If tpl_checkout_payment_default.php is used (also included) then also the text in red below is shown.

The image below shows what it looks like when customers see the list of payment options if used with “Payment info and image contribution”.


On the payment confirmation page, the text defined in TEXT_INFO_INVOICE_FEES is displayed if defined, typically “Invoice is sent with the package”.

Changelog

v1.20 March 19 2007

Made “Wholesale customers only” False by default at installation.

Minor cleanup of language file.

Added MODULE_PAYMENT_INVOICE_TEXT_WHOLESALE to contain text “Invoice only to whole sale customers” (but still not not used).

Added configuration instruction for domestic invoice only.

v1.10 March 8 2007

Now based on 1.3.7 files.

Now also includes /includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php so that the INVOICE FEE is shown by default in payment selection list using TEXT_INFO_INVOICE_FEES in the ot_invoice_fee.php language define file.

v1.00 2007-Feb-22

Fixed so invoice fee is displayed with tax if set (in payment and order total).

v0.80

Language file for Sweden

Made SE the default country

Prepared for image and extra text defines (if used with Payment info and image contribution)

MODULE_PAYMENT_INVOICE_COMPLETE_DESCRIPTION

MODULE_PAYMENT_INVOICE_IMAGE

MODULE_PAYMENT_INVOICE_CONFIRMATION_DESCRIPTION

Installation

Mandatory:

1. Place the new files in

/includes/templates/modules/payment/invoice.php

/includes/templates/modules/order_total/ot_invoice_fee.php

/includes/languages/YOUR_LANGUAGE/modules/order_total/ot_invoice_fee.php

/includes/languages/YOUR_LANGUAGE/modules/payment/invoice.php

2. On line 49 in /includes/templates/modules/payment/invoice.php set country where you want INVOICE to work (here set to SE)

if ($order->delivery[’country’][’iso_code_2′] != ‘SE‘) // Enable INVOICE in this country

3. Install the payment module in admin. NOTE: Do not put “Wholesale customers only” = True (this is not supported). Pay attention to sort order, it must be unique.

4. Set invoice fee in order total. Pay attention to sort order, it must be unique.

Voluntary

5. Place override in /includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php

6. Place invoice image in /includes/templates/YOUR_TEMPLATE/templates/images/payment/

7. Add css in /includes/templates/YOUR_TEMPLATE/templates/css/

8. Install the full Payment info and image contribution (not included).

Download

Latest version documentation

———–

v 1.00 Correction done in /includes/modules/order_total/ot_invoice_fee.php

after

$order->info[’total’] += zen_calculate_tax($invoice_fee_cost, $tax);

added

        

        // FROM THREAD 46248  updated for displaying tax

            if (DISPLAY_PRICE_WITH_TAX == ‘true’) {

              $invoice_fee_cost += zen_calculate_tax($invoice_fee_cost, $tax);

            }

        //


       

———–

Bloggtoppen.se
[Valid RSS]