Results 1 to 10 of 62

Threaded View

  1. #23
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Updating Mod for 150 - Little Problem

    They usually go in a separate file.. Depending on the how it's being used in Zen Cart they could be in a language folder, a class folder, a functions folder, an extra datafiles folder or even an extra configures folder in Zen Cart.

    Do a search through your store using the developers toolkit (search for "define(") to look for existing examples to see how you would construct one.

    For Edit Orders there is one similar to what you are trying to do. From line 21 of admin/includes/extra_configures/edit_orders.php

    Code:
    define('FILENAME_ORDER_EDIT', 'edit_orders.php');
    Super Orders also uses a similar file to point links to the orders.php file

    Quote Originally Posted by ScriptJunkie View Post
    Ok, I found a tutorial at w3schools.com on how to write a PHP define.

    The sample they provided looks simple enough:
    Code:
    <?php
    define("GREETING","Hello you! How are you today?");
    echo constant("GREETING");
    ?>
    But here are my questions:

    1. Where do I put the define?
    2. How do I determine what the define's value should be?

    I think that in order to understand what the define's value should be, I need to understand the logic behind the output (i.e. where will it appear so I can figure out what its supposed to say? what purpose is it serving?)
    Last edited by DivaVocals; 2 Apr 2012 at 06:29 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. v150 Updating GV Admin Edit mod for 1.5?
    By ecclescake in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 9 Mar 2013, 04:25 PM
  2. Checklist for 150 mod upgrades?
    By dw08gm in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 8 Dec 2011, 03:32 AM
  3. Need expert help updating Optional Insurance Mod for 1.3.8
    By jettrue in forum Upgrading from 1.3.x to 1.3.9
    Replies: 12
    Last Post: 28 Dec 2007, 04:34 PM
  4. Need advice for updating an older shipping by product mod
    By bettysue in forum Addon Shipping Modules
    Replies: 0
    Last Post: 10 Dec 2006, 09:01 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