Results 1 to 10 of 297

Hybrid View

  1. #1
    Join Date
    Aug 2018
    Location
    Cardiff
    Posts
    23
    Plugin Contributions
    1

    Default Re: Template Fluorspar

    Seems that when modules Gift Certificates and Discount Coupons are uninstalled definitions MODULE_ORDER_TOTAL_GV_STATUS and MODULE_ORDER_TOTAL_COUPON_STATUS no longer exist. Have tried ZC 1.5.7 and problem still persists. These values are used in the mega menu and mobile menu to decide whether to display the links or not.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Template Fluorspar

    Quote Originally Posted by peejay View Post
    Seems that when modules Gift Certificates and Discount Coupons are uninstalled definitions MODULE_ORDER_TOTAL_GV_STATUS and MODULE_ORDER_TOTAL_COUPON_STATUS no longer exist.
    This is correct. You should always check

    if (defined('MODULE_ORDER_TOTAL_GV_STATUS')) { ...

    if (defined('MODULE_ORDER_TOTAL_COUPON_STATUS')) { ...

    before using these values.

    In PHP 5.6, it was ok to skip checking them, but not with PHP 7+! You will see the core code in Zen Cart 1.5.7 always checks these values before using them.
    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.

 

 

Similar Threads

  1. theme277 from template monster and replacing with new template
    By DarkAngel in forum General Questions
    Replies: 0
    Last Post: 8 Nov 2012, 07:17 AM
  2. Can't seem to get template on the admin/tools/template selection
    By avmejias in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 19 Aug 2012, 07:39 AM
  3. Replies: 8
    Last Post: 29 Apr 2011, 07:53 PM
  4. Template selection page not viewable after uploading custom template
    By mek113 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Apr 2011, 05:16 PM
  5. open_basedir restriction in effect - trying to use tm001 template monster template
    By prantiC in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Aug 2007, 10:02 AM

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