Page 1 of 2 12 LastLast
Results 1 to 10 of 3052

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    Trial version of 1.5.8, with OPC installed.
    Defines for CHECK ORDER STATUS are not being recognised on the Order Status page
    Lines 38 and 44 in the following file...

    one_page_checkout-2.4.3\includes\languages\english\order_status.php
    TEXT_LOOKUP_INSTRUCTIONS
    ENTRY_ORDER_NUMBER

    I copied these defines over to the CORE ZC-1.5.8 file (lang.order_status.php)

    Code:
    <?php
    $define = [
        'NAVBAR_TITLE' => 'Order Status',
        'NAVBAR_TITLE_1' => 'My Account',
        'HEADING_TITLE' => 'Check Order History',
        'TEXT_LOOKUP_INSTRUCTIONS' =>'Select your order number below',
        'ENTRY_ORDER_NUMBER' =>'Order Number',
    ];
    
    return $define;
    ... and this now returns the desired text variable.
    Last edited by schoolboy; 26 Oct 2022 at 10:05 AM.
    20 years a Zencart User

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,925
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by schoolboy View Post
    Trial version of 1.5.8, with OPC installed.
    Defines for CHECK ORDER STATUS are not being recognised on the Order Status page
    Lines 38 and 44 in the following file...

    one_page_checkout-2.4.3\includes\languages\english\order_status.php
    TEXT_LOOKUP_INSTRUCTIONS
    ENTRY_ORDER_NUMBER

    I copied these defines over to the CORE ZC-1.5.8 file (lang.order_status.php)

    Code:
    <?php
    $define = [
        'NAVBAR_TITLE' => 'Order Status',
        'NAVBAR_TITLE_1' => 'My Account',
        'HEADING_TITLE' => 'Check Order History',
        'TEXT_LOOKUP_INSTRUCTIONS' =>'Select your order number below',
        'ENTRY_ORDER_NUMBER' =>'Order Number',
    ];
    
    return $define;
    ... and this now returns the desired text variable.
    Thanks for the report, I'd (obviously) missed testing this page. GitHub issue: https://github.com/lat9/one_page_checkout/issues/357

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by schoolboy View Post
    Trial version of 1.5.8, with OPC installed.
    Defines for CHECK ORDER STATUS are not being recognised on the Order Status page
    Lines 38 and 44 in the following file...

    one_page_checkout-2.4.3\includes\languages\english\order_status.php
    TEXT_LOOKUP_INSTRUCTIONS
    ENTRY_ORDER_NUMBER

    I copied these defines over to the CORE ZC-1.5.8 file (lang.order_status.php)

    Code:
    <?php
    $define = [
        'NAVBAR_TITLE' => 'Order Status',
        'NAVBAR_TITLE_1' => 'My Account',
        'HEADING_TITLE' => 'Check Order History',
        'TEXT_LOOKUP_INSTRUCTIONS' =>'Select your order number below',
        'ENTRY_ORDER_NUMBER' =>'Order Number',
    ];
    
    return $define;
    ... and this now returns the desired text variable.
    HOWEVER... on 1.5.8 the visitor is provided with a drop-down, not a text-input. Surely, the CHECK ORDER STATUS should therefore be behind a LOGIN?
    20 years a Zencart User

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,925
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by schoolboy View Post
    HOWEVER... on 1.5.8 the visitor is provided with a drop-down, not a text-input. Surely, the CHECK ORDER STATUS should therefore be behind a LOGIN?
    That field is never a dropdown ... but it is rendered as a numeric field. Perhaps that's what you're seeing?

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,524
    Plugin Contributions
    127

    Default Re: One-Page Checkout [Support Thread]

    --> PHP Warning: Undefined array key "order_id" in /store/includes/modules/pages/order_status/header_php.php on line 58.

    Happens when someone removes the order_id from $_POST data. Could do something like

    $orderID = (!empty($_POST['order_id']) ? (int)$_POST['order_id'] : -1);
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,925
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    See this GitHub issue for resolution: https://github.com/lat9/one_page_checkout/issues/363

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,925
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    v2.4.4 of One-Page Checkout is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2095

    This release contains changes associated with the following GitHub issues:

    #351: Update documentation to indicate that information sidebox changes are already included in the ZCA Bootstrap 4 template.
    #354: Additional checks needed when shipping is unavailable.
    #355: Correct warnings issued by zen_address_label when changing the delivery address.
    #357: Correct missing language constants on the order_status page when running on zc158.
    #359: When changing a country dropdown, the associated states/provinces aren't sorted alphabetically.
    #360: Add a notification just prior to the confirmation page's completion.
    #362: Update zen_cfg_read_only to use the version supplied in zc158.
    #363: Correct PHP warnings issued on the order_status page when variables are maliciously removed.

  8. #8
    Join Date
    Apr 2019
    Posts
    345
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by schoolboy View Post
    Trial version of 1.5.8, with OPC installed.
    Defines for CHECK ORDER STATUS are not being recognised on the Order Status page
    Lines 38 and 44 in the following file...

    one_page_checkout-2.4.3\includes\languages\english\order_status.php
    TEXT_LOOKUP_INSTRUCTIONS
    ENTRY_ORDER_NUMBER

    I copied these defines over to the CORE ZC-1.5.8 file (lang.order_status.php)

    Code:
    <?php
    $define = [
        'NAVBAR_TITLE' => 'Order Status',
        'NAVBAR_TITLE_1' => 'My Account',
        'HEADING_TITLE' => 'Check Order History',
        'TEXT_LOOKUP_INSTRUCTIONS' =>'Select your order number below',
        'ENTRY_ORDER_NUMBER' =>'Order Number',
    ];
    
    return $define;
    ... and this now returns the desired text variable.
    I want to add a little bit more information regarding this issue.

    zc1.58 includes order_status.php by default, which has the same name as the order_status.php by opc.

    So there will be two language definition files for lang.order_status.php. One from OPC (order_status.php), one from zc1.58 (lang.order_status.php). So obviously there is a conflict.

    I re-wrote the order_status.php from OPC into zc1.58 format and name it as "lang.order_status.php", to replace the lang.order_status.php from zc1.58. And it worked fine.

  9. #9
    Join Date
    Apr 2019
    Posts
    345
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    My previous post could be confusing...Anyway, there are two similar language files. One from opc and one from the zc. So there might be some conflict for their functions.

    Here is the language file I modified for opc and zc1.58 (lang.order_status.php). Please remove the original order_status.php from OPC in your directory.

    Let's see if @lat9 has a better way to improve it.

    PHP Code:
    <?php
    $define 
    = [

    // -----
    // Part of the One-Page Checkout plugin => provided under GPL 2.0 license by lat9 ([email protected]).
    // Copyright (C) 2018 => Vinos de Frutas Tropicales.  All rights reserved.
    //
    // Adapted from the like-named page handling with the following history:
    // - Integrated COWAA v1.0

    'NAVBAR_TITLE' => 'Order Status',
    'NAVBAR_TITLE_1' => 'My Account',

    'HEADING_TITLE' => 'Check Order Status'//Lookup Order Information

    'SUB_HEADING_TITLE' => 'Order Information',

    'HEADING_ORDER_NUMBER' => 'Order #%s',
    'HEADING_ORDER_DATE' => 'Order Date:',
    'HEADING_ORDER_TOTAL' => 'Order Total:',

    'HEADING_PRODUCTS' => 'Products',
    'HEADING_TAX' => 'Tax',
    'HEADING_TOTAL' => 'Total',
    'HEADING_QUANTITY' => 'Qty.',

    'HEADING_SHIPPING_METHOD' => 'Shipping Method',
    'HEADING_PAYMENT_METHOD' => 'Payment Method',

    'HEADING_ORDER_HISTORY' => 'Status History &amp; Comments',
    'TEXT_NO_COMMENTS_AVAILABLE' => 'No comments available.',
    'TABLE_HEADING_STATUS_DATE' => 'Date',
    'TABLE_HEADING_STATUS_ORDER_STATUS' => 'Order Status',
    'TABLE_HEADING_STATUS_COMMENTS' => 'Comments',
    'QUANTITY_SUFFIX' => '&nbsp;ea.  ',
    'ORDER_HEADING_DIVIDER' => '&nbsp;-&nbsp;',
    'TEXT_OPTION_DIVIDER' => '&nbsp;-&nbsp;',

    'ENTRY_EMAIL' => 'E-Mail Address:',
    'ENTRY_ORDER_NUMBER' => 'Order Number:',

    'ERROR_INVALID_EMAIL' => 'You have entered an invalid e-mail address.',
    'ERROR_INVALID_ORDER' => 'You have entered an invalid order number.',
    'ERROR_NO_MATCH' => 'No match found for your entry.',

    'TEXT_LOOKUP_INSTRUCTIONS' => 'To lookup the status of an order, please enter the order number and the e-mail address with which it was placed.'

    'FOOTER_DOWNLOAD' => 'You can also download your products at a later time at \'%s\'',
    'FOOTER_DOWNLOAD_COWOA' => 'You can download your products using the Order Status page until you reach max downloads or run out of time!',

    ];

    return 
    $define;
    Last edited by njcyx; 31 Oct 2022 at 05:42 PM.

  10. #10
    Join Date
    Aug 2004
    Posts
    823
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Cindy - Is there any way to somehow still enable GUEST CHECKOUT, but NOT have the one-page checkout?

    One of the MAIN reasons why I love OPC is not for the single page, but rather, for the ability to have Guest Checkout.

    As it stands, if the configuration for "Enable One-Page Checkout?" is set to false, it turns off the entire module. But since you also have an "Enable Guest Checkout?" value, is there any possibility in future releases where one can not be dependent on the other?

    For example, can have the default 3 page checkout (by setting Enable OPC to false), but also have the Guest checkout option by setting that to true?
    - Jeff

 

 
Page 1 of 2 12 LastLast

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

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