osCmax v2.5 User Manual
Results 1 to 3 of 3

javascript for coupon info not defined

This is a discussion on javascript for coupon info not defined within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; I'm at a loss... Using the AAbox template. When a coupon is redeemed there is a popup link defined in ...

      
  1. #1
    New Member
    Join Date
    May 2004
    Posts
    7
    Rep Power
    0


    Default javascript for coupon info not defined

    I'm at a loss...

    Using the AAbox template.
    When a coupon is redeemed there is a popup link defined in the shopping cart box)
    This link calls for javascript function couponpopupWindow. This isn't working. I this because couponpopupWindow isn't defined. (as far as I can see)

    I got it working in some screens using just popupWindow, which *is* defined, but the resulting window and formatting is bad. Also this doesn't work in the checkout screens.

    This is over my head!
    Anyone got a solution?

    Regards!
    Erwin.

  2. #2
    Member
    Join Date
    Dec 2004
    Posts
    75
    Rep Power
    8


    Default Same problem w/ "Coupon:more info"

    All I get is a Java error symbol in the bottom bar. Need help...

  3. #3
    Member
    Join Date
    Dec 2004
    Posts
    75
    Rep Power
    8


    Default Figured it out...

    The javascript definition was missing from the beginning of my catalog/includes/boxes/shopping_cart.php file. I added the following shown in bold:

    <?php
    /*
    $Id: shopping_cart.php,v 1.18 2003/02/10 22:31:06 hpdl Exp $

    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com

    Copyright (c) 2003 osCommerce

    Released under the GNU General Public License
    */
    ?>
    <!-- shopping_cart //-->
    <script language="javascript"><!--
    function couponpopupWindow(url) {
    window.open(url,'popupWindow','toolbar=no,location =no,directories=no,status=no,menubar=no,scrollbars =yes,resizable=yes,copyhistory=no,width=450,height =280,screenX=150,screenY=150,top=150,left=150')
    }
    //--></script>


    <?php
    $boxHeading = BOX_HEADING_SHOPPING_CART;
    Brian Neuman
    Webmaster
    www.honeybeadjewelry.com

Similar Threads

  1. request: change Welcome Discount Coupon Code -> Coupon ID
    By kodersoftware in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 11-13-2004, 12:34 PM
  2. Which file is OSCMAX_top defined
    By Astro in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 10-03-2004, 05:22 PM
  3. where is web_site_tagline defined?
    By MikeF in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 10-17-2003, 04:29 AM
  4. Where are these defined???
    By ladykeetes in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 12-28-2002, 01:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •