Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    1,937
    Plugin Contributions
    20

    Default [Fixed v1.5.1] Incorrect database constant used in tpl_account_default.php

    The file tpl_account_default.php is currently using the constant SHOW_NEWSLETTER_UNSUBSCRIBE_LINK to determine whether or not to display the newsletter unsubscribe link in the customer's account settings. That constant is described as Show "Newsletter Unsubscribe" link in the "Information" side-box?. The correct constant to use in the customer's account settings is ACCOUNT_NEWSLETTER_STATUS, which defines whether or not to display the newsletter sign-up for the customer's account.

    The current code, starting at line 65, reads:
    Code:
    <?php
      if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK !='false' or CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS !='0') {
    ?>
    <h2><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></h2>
    <ul id="myAccountNotify" class="list">
    <?php
      if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK=='true') {
    ?>
    and should be changed to
    Code:
    <?php
      if (ACCOUNT_NEWSLETTER_STATUS != '0' or CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS !='0') {
    ?>
    <h2><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></h2>
    <ul id="myAccountNotify" class="list">
    <?php
      if (ACCOUNT_NEWSLETTER_STATUS != '0') {
    ?>

  2. #2
    Join Date
    Jan 2004
    Posts
    58,261
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: [Fixed v1.5.1] Incorrect database constant used in tpl_account_default.php

    Fixed in v1.5.1
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 26 Nov 2010, 06:14 AM
  2. Tax incorrect when coupon used
    By aromazona in forum Bug Reports
    Replies: 2
    Last Post: 8 Mar 2007, 08:23 PM
  3. err: Warning: constant(): Couldn't find constant MODULE_SHIPPING_MZMT_GEOZONE_7_TEXT_
    By ginginca in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 6 Mar 2007, 07:19 PM
  4. [Done v2.0.0] tpl_account_default.php HTML Error
    By dweingart in forum Bug Reports
    Replies: 5
    Last Post: 28 Feb 2007, 09:09 PM
  5. How to override tpl_account_default.php?
    By mrtorrez in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Jan 2007, 12:05 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
  •