Thread: Code Page Peel

Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2009
    Posts
    5
    Plugin Contributions
    0

    Default Code Page Peel

    Sorry guys, you can tell me how to put this code to run the page peel? Thanks All

    The Code:
    <script src="http://link" type="text/javascript"></script>

    In the:
    Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    // $Id: jscript_main.php  2009-01-12 20:06:21Z ultimate_zc $
    //
    ?>
    <script language="javascript" type="text/javascript"><!--
    function popupWindow(url) {
      window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
    }
    function popupWindowPrice(url) {
      window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400,screenX=150,screenY=150,top=150,left=150')
    }
    //--></script>
    
    <script type="text/javascript">
    /***********************************************
    * Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
    * This notice must stay intact for legal use
    ***********************************************/
    ddaccordion.init({
    	headerclass: "display-box",
    	contentclass: "expand",
    	revealtype: "click",
    	collapseprev: false,
    	defaultexpanded: [],
    	onemustopen: false,
    	animatedefault: false,
    	persiststate: false,
    	toggleclass: ["closedlanguage", "openlanguage"],
    	<?php echo 'togglehtml: ["prefix", "' . FORM_CLOSED_IMAGE . ' ", "' . FORM_OPEN_IMAGE . '"],' ?>
    	animatespeed: "normal",
    	oninit:function(expandedindices){
    	},
    	onopenclose:function(header, index, state, isuseractivated){
    	}
    })
    </script>

  2. #2
    Join Date
    Feb 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Code Page Peel

    nobody helps me? Please!!!

  3. #3
    Join Date
    Feb 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Code Page Peel

    I solved by putting the string in the file includes/templates/template_default/common/html_header.php

    Thanks All

  4. #4
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Code Page Peel

    for future reference on how to load javascript in zencart , you may refer to this wiki page .

    http://www.zen-cart.com/wiki/index.p...s_-_Javascript

  5. #5
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Code Page Peel

    Just a note: You will want to copy that (template_default) file to your override directory or your changes will be wiped out during an upgrade.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. Code on page
    By brad073 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Feb 2011, 11:23 PM
  2. Print Packing Slip with "Peel Out" shipping label?
    By trippy1976 in forum General Questions
    Replies: 5
    Last Post: 27 Sep 2009, 07:00 PM
  3. how can I code in a default coupon code into checkout page redeem, then auto-refresh?
    By lankeeyankee in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 29 Nov 2008, 04:56 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