Thread: Preview Email

Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    8,951
    Plugin Contributions
    309

    Default Re: Preview Email

    The Back in Stock email functionality has been extended to support Ceon's implementation of Back in Stock. (Originally, only Larry Bislew's version was supported.)
    That Software Guy. My Store: Zen Cart Modifications
    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.

  2. #12
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,426
    Plugin Contributions
    11

    Default Re: Preview Email

    build_gv_email() has a lot of undefined notices.

    $css_lang_folder is undefined.

    it really would be nice if this plugin did NOT generate error logs out of the box with a vanilla 157 install.

    best.
    mxWorks now has premium plugins
    are you using square? have you shown any appreciation with cake on venmo or on paypal?
    called the savior by the chief bottle washer...

  3. #13
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    8,951
    Plugin Contributions
    309

    Default Re: Preview Email

    Updated to fix notices. If you find any more please submit a PR.
    That Software Guy. My Store: Zen Cart Modifications
    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.

  4. #14
    Join Date
    Apr 2011
    Posts
    293
    Plugin Contributions
    0

    Default Re: Preview Email

    ZC 1.5.7
    Bootstrap template with OPC

    I am getting the following error when trying to preview "checkout email":
    [25-Oct-2022 02:22:23 UTC] PHP Fatal error: Call to undefined function opc_load_legacy_language_definitions() in /includes/languages/english/checkout_process_guest.php on line 12

    [25-Oct-2022 02:22:23 UTC] Request URI: /sweety/index.php?cmd=preview_email, IP address: 76.103.115.109
    --> PHP Fatal error: Call to undefined function opc_load_legacy_language_definitions() in /includes/languages/english/checkout_process_guest.php on line 12.
    i am also getting this error when trying to preview "welcome email"

    [25-Oct-2022 02:26:21 UTC] PHP Fatal error: Call to undefined function opc_load_legacy_language_definitions() in /includes/languages/english/create_account_register.php on line 12

    [25-Oct-2022 02:26:21 UTC] Request URI: /sweety/index.php?cmd=preview_email, IP address: 76.103.115.109
    --> PHP Fatal error: Call to undefined function opc_load_legacy_language_definitions() in /includes/languages/english/create_account_register.php on line 12.
    Any assist on resolving these2 erros wouldbe more than appreciated.

    All the other options work great.

    Thank you

  5. #15
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    8,951
    Plugin Contributions
    309

    Default Re: Preview Email

    Yep, there are known issues with OPC interoperability that I haven't fixed yet. Will address ASAP.
    That Software Guy. My Store: Zen Cart Modifications
    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. #16
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    8,951
    Plugin Contributions
    309

    Default Re: Preview Email

    OK here's what you have to do for newer versions of OPC that have the 1.5.8 style language files (the ones whose names start with lang.*)
    Note that this is for Zen Cart 1.5.7 only - the 1.5.8 plugin will require significant rework.

    at the top of admin/includes/functions/extra_functions/preview_email.php add:

    Code:
    $opc_funcs = DIR_FS_CATALOG . DIR_WS_FUNCTIONS .  '/extra_functions/one_page_checkout_functions.php';
    if (file_exists($opc_funcs)) {
       require $opc_funcs;
    }
    in includes/functions/extra_functions/one_page_checkout_functions.php line 128 change

    Code:
        $base_language_dir = DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;
    to

    Code:
    if (!defined('IS_ADMIN_FLAG') || IS_ADMIN_FLAG !== true) { 
           $base_language_dir = DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;
    } else {
        $base_language_dir = DIR_FS_CATALOG_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;
    }
    That Software Guy. My Store: Zen Cart Modifications
    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.

  7. #17
    Join Date
    Apr 2011
    Posts
    293
    Plugin Contributions
    0

    Default Re: Preview Email

    Quote Originally Posted by swguy View Post
    OK here's what you have to do for newer versions of OPC that have the 1.5.8 style language files (the ones whose names start with lang.*)

    at the top of admin/includes/functions/extra_functions/preview_email.php add:

    Code:
    $opc_funcs = DIR_FS_CATALOG . DIR_WS_FUNCTIONS .  '/extra_functions/one_page_checkout_functions.php';
    if (file_exists($opc_funcs)) {
       require $opc_funcs;
    }
    in includes/functions/extra_functions/one_page_checkout_functions.php line 128 change

    Code:
        $base_language_dir = DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;
    to

    Code:
    if (!defined('IS_ADMIN_FLAG') || IS_ADMIN_FLAG !== true) { 
           $base_language_dir = DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;
    } else {
        $base_language_dir = DIR_FS_CATALOG_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;
    }
    Worked like a charm.

    Thank you very much for the fast replies and fix.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. preview?
    By musicstuff in forum General Questions
    Replies: 2
    Last Post: 9 Mar 2013, 06:00 PM
  2. v151 Preview welcome email and order confirmation email
    By tips007 in forum General Questions
    Replies: 1
    Last Post: 18 Jan 2013, 10:52 PM
  3. Preview of Welcome email in admin showing EMAIL_SUBJECT EMAIL_GREET_NONE etc
    By belaze in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 May 2011, 09:55 AM
  4. "Re: Preview Only ... Current Price Status ... Preview Only"
    By ebidei in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 10
    Last Post: 28 Apr 2009, 07:29 PM
  5. Admin preview of welcome email shows red x for an image I added
    By pixelpadre in forum General Questions
    Replies: 6
    Last Post: 15 Jan 2009, 01:36 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