Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default Re: Moving Shopping Cart text to define pages

    Okay, complete instructions plus I am posting a mod in the contributions section.

    In order to add information with the define pages function to any page:

    (instructions are for the shopping cart - I'm using v1.3.8)

    create your html includes file - it is a blank file named define_shopping_cart.php
    upload that to your includes/language/english/html_includes and to includes/language/english/html_includes/your folder.

    Edit includes/modules/pages/shopping_cart/header.php.php. Add this line
    // include template specific file name defines
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_SHOPPING_CART, 'false');
    before
    // This should be last line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_END_SHOPPING_CART');

    Edit includes/filenames.php - add
    define('FILENAME_DEFINE_SHOPPING_CART', 'define_shopping_cart');
    be nice to yourself and put it in alphabetically- line 68

    Edit includes/templates/your folder/templates/tpl_shopping_cart_default.php.
    line 33
    Replace <?php echo TEXT_INFORMATION ?> with <?php echo define_page ?>
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  2. #2
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default Re: Moving Shopping Cart text to define pages

    Sorry - just was reminded of something that my subconscious was trying to tell me - instead of altering filenames.php, add a file instead.

    includes/extra_datafiles/define_shopping_cart_filenames.php

    with at least this in it
    <?php
    define('FILENAME_DEFINE_SHOPPING_CART', 'define_shopping_cart');
    ?>
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  3. #3
    Join Date
    Nov 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Moving Shopping Cart text to define pages

    Hi - I was just looking to do the exact same thing and figured I'd ask if you'd ever gotten a mod together?
    Thanks!

    Cait

  4. #4
    Join Date
    Nov 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Moving Shopping Cart text to define pages

    Just in case anyone was wondering how to do this, the instructions above worked well right up until the end where the text wouldn't display properly on the page. I finally got it to work, and the process went like this:


    1. create your html includes file - it is a blank file named define_shopping_cart.php
    2. upload that to your includes/language/english/html_includes
    3. and to includes/language/english/html_includes/YOUR_TEMPLATE/

    4. Edit includes/modules/pages/shopping_cart/header.php.php. Add this line

    // include template specific file name defines
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_SHOPPING_CART, 'false');
    before
    // This should be last line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_END_SHOPPING_CART');


    5. Add file:
    includes/extra_datafiles/define_shopping_cart_filenames.php

    with at least this in it
    <?php
    define('FILENAME_DEFINE_SHOPPING_CART', 'define_shopping_cart');
    ?>

    6. Edit includes/templates/your folder/templates/tpl_shopping_cart_default.php.
    line 33

    Replace


    <div id="cartInstructionsDisplay" class="content"><?php echo define_page ?>

    </div>


    with :

    <div id="cartInstructionsDisplay" class="content">
    <?php
    /**
    * require the html_defined text for checkout success
    */
    require($define_page);
    ?>
    </div>


  5. #5
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    347
    Plugin Contributions
    0

    Default Re: Moving Shopping Cart text to define pages

    Quote Originally Posted by chcholman View Post
    6. Edit includes/templates/your folder/templates/tpl_shopping_cart_default.php.
    line 33

    Replace


    <div id="cartInstructionsDisplay" class="content"><?php echo define_page ?>

    </div>


    with :

    <div id="cartInstructionsDisplay" class="content">
    <?php
    /**
    * require the html_defined text for checkout success
    */
    require($define_page);
    ?>
    </div>

    That last step made it so that when I go to the shopping cart after adding products nothing displays in the cart, just the page title and side boxes and all other stuff but no shopping cart text or items added.

    I am using 1.3.8 ac version. Not sure if that has something to do with it.

  6. #6
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Moving Shopping Cart text to define pages

    I have submitted an updated version of the mod Define Pages - Shopping Cart - available here

    The version number is 1.4 and should be approved and ready for download in a few days from now.

    It is tested on ZC 1.3.9h but may work with earlier versions (proceed with caution).

    ===========
    Change Log:
    ===========

    01/01/2011, added German language files, fixed bug relating to
    require($define_page);
    as per last post and made instructions clearer
    30/04/2010, added version for 1.3.9a

  7. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Moving Shopping Cart text to define pages

    The updated v1.4 has been approved and is now available for download here

 

 

Similar Threads

  1. v150 moving header text on individual item pages (works fine on their parent pages)
    By irish_1985 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 21 Sep 2012, 07:44 PM
  2. v150 text not showing on define pages
    By satijn in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Apr 2012, 12:44 AM
  3. Define Pages - Shopping Cart Problem
    By divaboutiques in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Feb 2012, 10:50 AM
  4. Changing text colour in centrebox & Define Pages Editor problem with text
    By annav in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Oct 2010, 10:55 AM
  5. Q: How to add/modify text on various shopping cart pages...
    By mrmikal in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Mar 2009, 01:32 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