osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

problem with javascript and pop-up

This is a discussion on problem with javascript and pop-up within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hello, I tried to installed on my webshop the contrib MVS Shipping Cost Estimator v1.1b I would like this estimator ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 01-25-2008, 01:36 PM
New Member
 
Join Date: Dec 2007
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
antoinebp is on a distinguished road
Default problem with javascript and pop-up

Hello,

I tried to installed on my webshop the contrib MVS Shipping Cost Estimator v1.1b
I would like this estimator to be in an infobox, not during the checkout. The box appears normally but no pop-up when I click on it, even if my pop-up blocker is switched off.
Here is the file for the infobox includes/boxes/estimate_shipping.php:

Quote:
<?php
/*
$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
osCommerce, Open Source Online Shop E-Commerce Solutions
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
?>
<!-- information //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => 'Estimate Shipping');
new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('text' =>
'<center><a href="javascript:estimatorpopupWindow(\''. tep_href_link('ship_estimator.php', '', 'SSL') .'\')"><img src="/shop/includes/languages/english/images/buttons/button_estimate_shipping.gif" border="0"></a></center>'
);
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- information_eof //-->
It looks that this piece of code has to added but I don't know where:
Quote:
<!-- added for pop-up ship estimator //-->
<SCRIPT LANGUAGE="JavaScript">
function estimatorpopupWindow(URL) {window.open(URL,'shippingestimator','toolbar=0,sc rollbars=1,location=0,statusbar=0,menubar=0,resiza ble=1,width=800,height=600')}
</script>
<!-- added for pop-up ship estimator end //-->
Thank you for your help!
__________________
Oscmax 2.0.0-RC3-0-1

Last edited by antoinebp; 01-28-2008 at 08:21 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 03-20-2008, 06:01 PM
New Member
 
Join Date: Sep 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
alexandermorris is on a distinguished road
Default Re: problem with javascript and pop-up

First I want to preface this with I am not an expert... but I just added a popup window on my products page to run a swf file and here is what I did.

You need to add the script code to your main_page.tpl.php . This file is located in catalog/templates/(whatever the folder name is for your site template). When you open that file you will see a section that has all the javascript code. Add your script code there in between the <script an /script> from the function....}. Then save and hope it works. It worked for me.

Cherie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 03-20-2008, 06:17 PM
New Member
 
Join Date: Sep 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
alexandermorris is on a distinguished road
Default Re: problem with javascript and pop-up

By the way, my site has a shipping estimator built in after items are added to the cart but before checking out. It is not a popup window though. You can see it at Baby Bottle Holder: Bebe Bottle Sling : Unique Baby Feeding Products and Multiples Clothing . Just add something to the cart and you will see the estimate shipping area. You can view the source for the page to get some ideas. I did not write the code for it but I specifically required it for my shopping cart when it was installed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
javascript yaoi osCommerce 2.2 Modification Help 0 03-27-2007 11:41 AM
Javascript & BTS gamerigs osCMax v2 Customization/Mods 2 11-06-2005 11:20 AM
Javascript and separate price per customer problem. gobayview osCMax v1.7 Discussion 0 11-24-2003 09:51 PM
Javascript Error jgkiefer osCMax v1.7 Discussion 0 09-23-2003 05:55 AM
javascript integration bushman osCMax v1.7 Discussion 3 09-16-2003 10:12 AM


All times are GMT -8. The time now is 12:59 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax