Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Invoice Payment Method V 23Dec2018, Installation issue

    ZC157, responsive classic.

    I have been successfully using this plugin for some years.
    Now my new 157b site is running commercially.

    I installed the Invoice Payment plugin but "invoice" did not show up as a payment method.

    I have the invoice customer group set up with id 2 and a 2% discount.
    I tried setting the customers_group_pricing=2 in the db as default then the "invoice" did OK show up as a payment method.
    The only problem is all payment methods are now giving 2% discounts.

    My web site is https://www.simmar.ch, they are changing the servers now so please don't look for a couple of hours

    The configuration looks like this
    Group Pricing
    ID Group Name % Discount
    2 Invoice 2.00

    Group Discount

    This module is installed
    true

    Sort Order
    290

    Include Shipping
    false

    Include Tax
    false

    Re-calculate Tax
    Standard

    Tax Class
    --none--

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,133
    Plugin Contributions
    11

    Default Re: Invoice Payment Method V 23Dec2018, Installation issue

    If you have not already done so, go to Modules >> Plugin Manager and install the Display Logs Plugin. There's bound to be a log file out there that can provide you with more information.

  3. #3
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: Invoice Payment Method V 23Dec2018, Installation issue

    Good idea, installed the Display Logs Plugin

    I reset customers_group_pricing=0 in my xampp test site.

    No error logs, some warnings.
    I got one warning that I had not set up the "recalculate tax" correctly in modules/OT/GroupPricing that I could correct; I have no sales tax.
    Fixing that did not cause "invoice" to be displayed as a payment option.

    Three other "undefined index" warnings I do not understand
    Code:
    [07-Jan-2021 23:04:45 Europe/Berlin] PHP Notice:  Undefined index: spider_flag in C:\xampp73a\htdocs\Zencart157b\catalog\includes\classes\observers\class.products_viewed_counter.php on line 37
    [07-Jan-2021 23:04:45 Europe/Berlin] PHP Notice:  Undefined index: USD in C:\xampp73a\htdocs\Zencart157b\catalog\includes\classes\currencies.php on line 142
    [07-Jan-2021 23:04:45 Europe/Berlin] PHP Notice:  Undefined index: USD in C:\xampp73a\htdocs\Zencart157b\catalog\includes\classes\currencies.php on line 151
    I only have one currency set up; Swiss Franc CHF.

    And a funny warning
    Use of undefined constant DISPLAY_LOGS_MESSAGE_LOGS_PRESENT

    Funny because the developer's tool kit does not find this constant but it must be in there somewhere.

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,133
    Plugin Contributions
    11

    Default Re: Invoice Payment Method V 23Dec2018, Installation issue

    This is why we have the posting tips. Is this an upgrade or did you rebuild your site on the 1.5.7b version? The unfound constant may be a holdover from a previous version.

    As to the USD error.. This seems to indicate that USD is still set as the default currency. Lines 142 and 151 of the currencies.php file are driven by what is set as the DEFAULT_CURRENCY.

  5. #5
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: Invoice Payment Method V 23Dec2018, Installation issue

    I made a new rebuild of the 1.5.7.

    I doubt the unfound constant is a holdover from a previous version since it only appeared after I turned on the Display Logs Plugin and it seems to be related to that plugin.

    I have the currency set here as below, do you know if there is somewhere else to set it?
    Currencies
    Currency Code Value Last Updated Action
    Swiss Franc (default) CHF 1.00000000 05/02/2013 15:38:51

    The code it is complaining about is below in bold.
    Code:
     function get_value($code)
        {
            return $this->currencies[$code]['value'];
        }
    
        /**
         * @param string $code currency code
         * @return int
         */
        function get_decimal_places($code)
        {
            return $this->currencies[$code]['decimal_places'];
        }
    Thanks for your help

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,133
    Plugin Contributions
    11

    Default Re: Invoice Payment Method V 23Dec2018, Installation issue


  7. #7
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: Invoice Payment Method V 23Dec2018, Installation issue

    Great thanks.

    My site is in two languages, English and German.

    Both languages use the Swiss Franc currency.

    If I understand the instructions correctly then I have to click both true and false ??

    It is 1 am here, I will have to review this again when I am awake.

    Thanks again and good night.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Invoice Payment Method V 23Dec2018, Installation issue

    Quote Originally Posted by marton_1 View Post
    PHP Notice: Undefined index: spider_flag in \Zencart157b\catalog\includes\classes\observers\class.products_viewed_counter.ph p on line 37
    This is entirely unrelated to the module you're posting about.

    To fix, try this version of the file mentioned: https://github.com/zencart/zencart/b...ed_counter.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,472
    Plugin Contributions
    88

    Default Re: Invoice Payment Method V 23Dec2018, Installation issue

    Quote Originally Posted by marton_1 View Post
    Good idea, installed the Display Logs Plugin

    I reset customers_group_pricing=0 in my xampp test site.

    No error logs, some warnings.
    I got one warning that I had not set up the "recalculate tax" correctly in modules/OT/GroupPricing that I could correct; I have no sales tax.
    Fixing that did not cause "invoice" to be displayed as a payment option.

    Three other "undefined index" warnings I do not understand
    Code:
    [07-Jan-2021 23:04:45 Europe/Berlin] PHP Notice:  Undefined index: spider_flag in C:\xampp73a\htdocs\Zencart157b\catalog\includes\classes\observers\class.products_viewed_counter.php on line 37
    [07-Jan-2021 23:04:45 Europe/Berlin] PHP Notice:  Undefined index: USD in C:\xampp73a\htdocs\Zencart157b\catalog\includes\classes\currencies.php on line 142
    [07-Jan-2021 23:04:45 Europe/Berlin] PHP Notice:  Undefined index: USD in C:\xampp73a\htdocs\Zencart157b\catalog\includes\classes\currencies.php on line 151
    I only have one currency set up; Swiss Franc CHF.

    And a funny warning
    Use of undefined constant DISPLAY_LOGS_MESSAGE_LOGS_PRESENT

    Funny because the developer's tool kit does not find this constant but it must be in there somewhere.
    Hmm, it sounds like the Developer's Tool Kit isn't considering the /zc_plugins sub-directory during its search. When you receive that warning, is the store running in German instead of English?

  10. #10
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    567
    Plugin Contributions
    0

    Default Re: Invoice Payment Method V 23Dec2018, Installation issue

    As mentioned, I ran the tests on my xampp test site.

    Now my provider has finished the server hardware upgrade I ran the tests on my commercial site and got no more "undefined index" warnings.

    I still have my core problems that all payment methods have a 2% discount and I have to set the table column group pricing to the invoice group index 2.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v157 Invoice Payment Method V 23Dec2018, PHP warnings on foreign language site
    By marton_1 in forum Addon Payment Modules
    Replies: 1
    Last Post: 22 Nov 2020, 05:43 PM
  2. Replies: 1
    Last Post: 5 May 2020, 05:50 PM
  3. Details missing after "payment method" in order invoice.
    By glamourdolleyes in forum Managing Customers and Orders
    Replies: 1
    Last Post: 2 Oct 2014, 02:14 PM
  4. Looking for 'Invoice' Payment Method
    By Tamuren in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 9 May 2011, 04:35 PM
  5. Payment Method area Styling Issue
    By townsend2009 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 23 Aug 2010, 04:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR