Print Page | Close Window

Adding the Small shopping cart - ERROR

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=3116
Printed Date: 28-February-2025 at 2:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding the Small shopping cart - ERROR
Posted By: St_Pierce
Subject: Adding the Small shopping cart - ERROR
Date Posted: 18-October-2009 at 4:20pm
Hi Guys,
I've searched this in the archieves but couldn't find anything, so I figured I post.
Here is what's happening when I try to add the SmallShoppingCart.asp include...
 
I'm adding it to Header.asp as so...
    <div id="pcHeader08Center">
        <!--#include file="SmallShoppingCart.asp"-->
   </div>
 
Here is the error I'm getting...
 
Microsoft VBScript compilation error '800a0411'
Name redefined
/store/pc/SmallShoppingCart.asp, line 5
dim vcCartArr, vcCartIndex, v, scantidadCart7, vcTotal, vcItems
----^
 
I haven't modified the SmallShoppingCart.asp code in any way.  Any help would be greatly appreciated.
Thanks!
St_Pierce



Replies:
Posted By: Matt
Date Posted: 18-October-2009 at 4:26pm
Did you include it twice?  Name redefined means that "vcCartArr" was used twice.  That usually happens when you include the file twice.


Posted By: St_Pierce
Date Posted: 18-October-2009 at 4:42pm
Thanks Matt!!   You da' man!!
That's exactly what it was, I forgot I  had it in the left side menu when I wanted to mess around with the header.
 
Thanks again Thumbs%20Up



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net