Page 106 of 279 FirstFirst ... 65696104105106107108116156206 ... LastLast
Results 1,051 to 1,060 of 2784
  1. #1051
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by adb34 View Post
    At the moment I am having to use v1.5.5f

    In the instructions it says 'css_js_loader' has to be loaded first. However in those instruction it says 'Composer' has to be download and installed before 'css_js_loader' is. What does 'Composer' do?
    Are you, perhaps, confusing One-Page Checkout with Fast and Easy Checkout? OPC has never had a requirement for the css_js_loader.

  2. #1052
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    304
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by mprough View Post
    I got it working, I'm just passing it in the session because it really doesn't need stored =)
    Thank you
    What was your solution?
    Can you share the code your used?

    the reason I ask is I'm having trouble adding the "Company" And extra fields to the Admin email sent when a new customer signs up. (functions_email.php) Couldn't find detailed instructions anyplace.
    Otherwise the Additional Customer Fields at Sign Up plugin is working fine.

    (Using ZC 1.5.6a "Green Classic template" & running on PHP 7.2)

    I did not have this problem with 1.5.1.
    Here is the code I used in 1.5.1 but it does not work in 1.5.6a.
    Only testing with "Company" right now will add 2 of the Extra fields after I get this resolved.


    functions_email.php
    Code:
    Around Line 600
    //  function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $moreinfo = array()) {
    (Changed to)
      function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $company='', $extrafield='', $extrafield2='', $street_address='', $suburb='', $city='', $state='', $postcode='', $extrafield4='', $moreinfo = array()) {
    
    Around line 630
     ($login_phone !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_PHONE . '</td><td>' . $login_phone . '</td></tr>' : '') .
    	  /////////////// Added Company Field  //////////////////
    	  ($company !='' ? '<tr><td class="extra-info-bold">' . OFFICE_COMPANY . '</td><td>' . $company . '</td></tr>' : '') .
     ($login_fax !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_FAX . '</td><td>' . $login_fax . '</td></tr>' : '') .

  3. #1053
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    304
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by linuxguy2 View Post
    What was your solution?
    Can you share the code your used?

    the reason I ask is I'm having trouble adding the "Company" And extra fields to the Admin email sent when a new customer signs up. (functions_email.php) Couldn't find detailed instructions anyplace.
    Otherwise the Additional Customer Fields at Sign Up plugin is working fine.

    (Using ZC 1.5.6a "Green Classic template" & running on PHP 7.2)

    I did not have this problem with 1.5.1.
    Here is the code I used in 1.5.1 but it does not work in 1.5.6a.
    Only testing with "Company" right now will add 2 of the Extra fields after I get this resolved.


    functions_email.php
    Code:
    Around Line 600
    //  function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $moreinfo = array()) {
    (Changed to)
      function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $company='', $extrafield='', $extrafield2='', $street_address='', $suburb='', $city='', $state='', $postcode='', $extrafield4='', $moreinfo = array()) {
    
    Around line 590
     ($login_phone !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_PHONE . '</td><td>' . $login_phone . '</td></tr>' : '') .
    	  /////////////// Added Company Field  //////////////////
    	  ($company !='' ? '<tr><td class="extra-info-bold">' . OFFICE_COMPANY . '</td><td>' . $company . '</td></tr>' : '') .
     ($login_fax !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_FAX . '</td><td>' . $login_fax . '</td></tr>' : '') .
    Problem SOLVED
    After many hours of toiling over a smoking keyboard the only logical conclusion was the "extra_info" array wasn't being created.
    Hope this helps some other non-coder like myself in the future.

    In includes/modules/your_template/create_account.php I hadn't added the necessary code to generate the "extra_info" array

    Around line 440
    ORIGINAL :
    Code:
     $extra_info=email_collect_extra_info($name,$email_address, $account->fields['customers_firstname'] . ' ' . $account->fields['customers_lastname'], $account->fields['customers_email_address'], $account->fields['customers_telephone'], $account->fields['customers_fax']);
    MODIFIED:
    Code:
     $extra_info=email_collect_extra_info($name,$email_address, $account->fields['customers_firstname'] . ' ' . $account->fields['customers_lastname'], $account->fields['customers_email_address'], $account->fields['customers_telephone'], $account->fields['customers_fax'], $company, $extrafield, $extrafield2, $street_address, $suburb, $city, $state, $postcode, $extrafield4);
    Then of course this mod in /includes/functions/email_functions.php around line 590
    ORIGINAL
    Code:
    function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $moreinfo = array()) {
    MODIFIED
    Code:
     function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $company='', $extrafield='', $extrafield2='', $street_address='', $suburb='', $city='', $state='', $postcode='', $extrafield4='', $moreinfo = array()) {
    AND modify/add: around line 610
    Code:
    $extra_info['HTML'] = '<table width="100%" class="extra-info">' .
          '<tr><td class="extra-info-bold" colspan="2">' . OFFICE_USE . '</td></tr>' .
          '<tr><td  width="20%" class="extra-info-bold">' . OFFICE_FROM . '</td><td>' . $from . '</td></tr>' .
    	  //'<tr><td class="extra-info-bold">' . OFFICE_EMAIL. '</td><td>' . $email_from . '</td></tr>' .	  
          ($login_email !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_EMAIL . '</td><td>' . $login_email . '</td></tr>' : '') .	  
          ($login !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_NAME . '</td><td>' . $login . '</td></tr>' : '') .
    	  ($company != '' ? '<tr><td class="extra-info-bold">' . OFFICE_COMPANY . '</td><td>' . $company . '</td></tr>' : '') .
    	  ($extrafield != '' ? '<tr><td class="extra-info-bold">' . OFFICE_EXTRAFIELD . '</td><td>' . $extrafield . '</td></tr>' : '') .
    	  ($street_address != '' ? '<tr><td class="extra-info-bold">' . OFFICE_STREET_ADDRESS . '</td><td>' . $street_address . '</td></tr>' : '') .
    	  ($suburb != '' ? '<tr><td class="extra-info-bold">' . OFFICE_STREET_ADDRESS_LINE2 . '</td><td>' . $suburb . '</td></tr>' : '') .
    	  ($city != '' ?'<tr><td class="extra-info-bold">' . OFFICE_CITY . '</td><td>' . $city . '</td></tr>' : '') .
    	  ($state != '' ? '<tr><td class="extra-info-bold">' . OFFICE_STATE . '</td><td>' . $state . '</td></tr>' : '') .
    	  ($postcode != '' ? '<tr><td class="extra-info-bold">' . OFFICE_POSTCODE . '</td><td>' . $postcode . '</td></tr>' : '') .	  
    	  ($login_phone !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_PHONE . '</td><td>' . $login_phone . '</td></tr>' : '') .
          ($login_fax !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_FAX . '</td><td>' . $login_fax . '</td></tr>' : '') .
    	   ($extrafield2 != '' ? '<tr><td  width="20%" class="extra-info-bold">' . OFFICE_EXTRAFIELD2 . '</td><td>' . $extrafield2 . '</td></tr>' : '') .	
    	  ($extrafield4 != '' ? '<tr><td class="extra-info-bold">' . OFFICE_EXTRAFIELD4 . '</td><td>' . $extrafield4 . '</td></tr>' : '') .
    	  '<tr><td class="extra-info-bold">' . "&nbsp;" . '</td><td>' . "&nbsp;" . '</td></tr>' .		
    	  '<tr><td class="extra-info-bold">' . OFFICE_IP_ADDRESS . '</td><td>' . $_SESSION['customers_ip_address'] . ' - ' . $_SERVER['REMOTE_ADDR'] . '</td></tr>' .	  
          '<tr><td class="extra-info-bold">' . OFFICE_HOST_ADDRESS . '</td><td>' . $email_host_address . '</td></tr>' .
          '<tr><td class="extra-info-bold">' . OFFICE_DATE_TIME . '</td><td>' . date('D M j Y G:i:s T') . '</td></tr>';

  4. #1054
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    Are you, perhaps, confusing One-Page Checkout with Fast and Easy Checkout? OPC has never had a requirement for the css_js_loader.
    Oh??????? I will have to get back on that one. Sorry if I have got it wrong. My bad

  5. #1055
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    304
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    The order.php has issues, when you click "Checkout" from the Shopping Cart page or refresh the checkout page it throws errors.
    I have tested under several different conditions but my latest testing was a out-of-the-box install of 1.5.6a on PHP 7.2 with the default green classic template.
    Added a couple products.
    Payment module was Money Order
    location was the default Florida state.
    OPC debug set to FULL

    Note: OPC order.php needs updating for 1.5.6a or more explanation as there are major differences from OPC order.php.
    As far as I can tell all the files except order.php are very much the same as 1.5.6a

    I tested with the following:
    OPC order.php
    Original order.php
    MERGED order.php
    All three tests post very similar PHP warnings.
    Also note even though I've selected the green classic template in a couple cases it's looking in the responsive_classic template

    myDEBUG-20190226-180718-210765-log
    Code:
    [26-Feb-2019 18:07:18 UTC] Request URI: /156a/index.php?main_page=checkout_one, IP address: 76.182.229.147
    #1  require(/home/pc/public_html/156a/includes/modules/pages/checkout_one/header_php.php) called at [/home/pc/public_html/156a/index.php:36]
    --> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/pc/public_html/156a/includes/modules/pages/checkout_one/header_php.php on line 321.
    
    [26-Feb-2019 18:07:18 UTC] Request URI: /156a/index.php?main_page=checkout_one, IP address: 76.182.229.147
    #1  require(/home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php) called at [/home/pc/public_html/156a/includes/templates/template_default/templates/tpl_checkout_one_default.php:67]
    #2  require(/home/pc/public_html/156a/includes/templates/template_default/templates/tpl_checkout_one_default.php) called at [/home/pc/public_html/156a/includes/templates/responsive_classic/common/tpl_main_page.php:171]
    #3  require(/home/pc/public_html/156a/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home/pc/public_html/156a/index.php:97]
    --> PHP Warning: Invalid argument supplied for foreach() in /home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php on line 44.

    pc_com.php.error-log
    Code:
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index:  in /home/pc/public_html/156a/includes/classes/order.php on line 354
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Trying to get property 'title' of non-object in /home/pc/public_html/156a/includes/classes/order.php on line 354
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index:  in /home/pc/public_html/156a/includes/classes/order.php on line 355
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Trying to get property 'code' of non-object in /home/pc/public_html/156a/includes/classes/order.php on line 355
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined variable: coupon_code in /home/pc/public_html/156a/includes/classes/order.php on line 356
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Trying to get property 'fields' of non-object in /home/pc/public_html/156a/includes/classes/order.php on line 356
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index: shipping in /home/pc/public_html/156a/includes/classes/order.php on line 363
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Constant FREE_SHIPPING_TITLE already defined in /home/pc/public_html/156a/includes/languages/english/modules/order_total/ot_shipping.php on line 26
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Constant FREE_SHIPPING_DESCRIPTION already defined in /home/pc/public_html/156a/includes/languages/english/modules/order_total/ot_shipping.php on line 27
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Constant MODULE_ORDER_TOTAL_COUPON_HEADER already defined in /home/pc/public_html/156a/includes/languages/english/modules/order_total/ot_coupon.php on line 14
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Constant SHIPPING_NOT_INCLUDED already defined in /home/pc/public_html/156a/includes/languages/english/modules/order_total/ot_gv.php on line 13
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Constant TAX_NOT_INCLUDED already defined in /home/pc/public_html/156a/includes/languages/english/modules/order_total/ot_gv.php on line 14
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index: coupon_is_valid_for_sales in /home/pc/public_html/156a/includes/functions/functions_gvcoupons.php on line 113
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index: id in /home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php on line 20
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index: id in /home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php on line 43
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index: fields in /home/pc/public_html/156a/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php on line 44
    [26-Feb-2019 18:07:18 UTC] PHP Notice:  Undefined index: coupon_is_valid_for_sales in /home/pc/public_html/156a/includes/functions/functions_gvcoupons.php on line 113
    Thank You for you time

  6. #1056
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: One-Page Checkout [Support Thread]

    The single change in the as-distributed /includes/classes/order.php is already included in zc156+. Just restore that file to its Zen Cart "base" version.

    Is "Money Order" one of the payment methods allowed for guest-checkout?
    Last edited by lat9; 26 Feb 2019 at 09:12 PM. Reason: Money-order question.

  7. #1057
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    304
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    The single change in the as-distributed /includes/classes/order.php is already included in zc156+. Just restore that file to its Zen Cart "base" version.


    Is "Money Order" one of the payment methods allowed for guest-checkout?
    Guest checkout is disabled.
    On the "Confirm Order" page "Check/Money Order" and Free Order are listed under the Payment section. Those are the default in the admin modules payment selection page.
    I am not using any CC processing selections.

    On the Order Total Modules page everything is enabled except the ot_cod_fee

    Let me add that on my production build I will be using the PO_Number plugin.
    I will never be using the guest-checkout function.
    NOTE: I get these same errors on my production build where I am using the PO_Number mod and it's my only selection.

  8. #1058
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    304
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by linuxguy2 View Post
    Guest checkout is disabled.
    On the "Confirm Order" page "Check/Money Order" and Free Order are listed under the Payment section. Those are the default in the admin modules payment selection page.
    I am not using any CC processing selections.

    On the Order Total Modules page everything is enabled except the ot_cod_fee

    Let me add that on my production build I will be using the PO_Number plugin.
    I will never be using the guest-checkout function.
    NOTE: I get these same errors on my production build where I am using the PO_Number mod and it's my only selection.
    If I add a cc I get the same error

  9. #1059
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: One-Page Checkout [Support Thread]

    Did you revert to the as-shipped zc156 /includes/classes/order.php?

  10. #1060
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: One-Page Checkout [Support Thread]

    Just did a test install of OPC 2.0.5 on zc156a.

    I'll note that the majority of the core-file overwrites required for zc155 are no longer required as the notifications are now "baked into" the base Zen Cart code. The two exceptions (on cursory inspection) are the changes required to /includes/modules/pages/login/header_php.php and to /includes/modules/order_total/ot_coupon.php; the remaining core files from the OPC distribution should not be copied for a zc156 install.

    I've corrected (for v2.0.6) the issues identified by @linuxguy2 in post #1055 on OPC's GitHub repository and will be reworking the distribution layout and/or installation instructions for Zen Cart 1.5.6.

 

 

Similar Threads

  1. Set number of products displayed per page (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 146
    Last Post: 2 Nov 2023, 12:50 AM
  2. v151 Banners In Main Page - Support Thread
    By stevesh in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Sep 2021, 03:36 PM
  3. v151 Site Map/Page Not Found: Combined [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 4 Jan 2016, 02:19 PM
  4. v151 PayPal Express Checkout Using NVP 84.0 [Support Thread]
    By lat9 in forum Addon Payment Modules
    Replies: 32
    Last Post: 28 Dec 2015, 04:54 PM
  5. Checkout Amazon Style -- Support Thread
    By CJPinder in forum All Other Contributions/Addons
    Replies: 72
    Last Post: 13 Apr 2011, 08:18 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