Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    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
    66,443
    Plugin Contributions
    279

    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!
    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.

 

 

Similar Threads

  1. Replies: 6
    Last Post: 25 Mar 2016, 10:51 PM
  2. Replies: 1
    Last Post: 2 Feb 2014, 04:45 PM
  3. [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
  4. 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

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