![]() |
Shopping Cart Totals - Show all the time? |
Post Reply ![]() |
Author | |
mrjasonsweet ![]() Newbie ![]() Joined: 03-June-2006 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 22-September-2006 at 9:51am |
Hi! I'm using <!--#include file="SmallShoppingCart.asp"--> to show the cart totals. It works fine but it only appears if the customer has adding at least one product to the shopping cart. I would like it to appear all the time, even if it shows 0 items in cart. Obviously a conditional statement is being used to hide/display this information. Can someone direct me to where I might be able to disable this? Thanks very much for any guidance. Edited by mrjasonsweet - 22-September-2006 at 9:52am |
|
![]() |
|
sawan ![]() Newbie ![]() ![]() Joined: 08-August-2006 Location: United States Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hi, this is the code that i am using, and it is working fine. <% 'Show shopping cart total vcCartArr=Session("pcCartSession") for v=1 to vcCartIndex |
|
Sawan S Ruparel
|
|
![]() |
|
Jackalope ![]() Groupie ![]() Joined: 07-July-2006 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
I just found an easier way to show the cart contents even if the total is $0.00. Just change the following code in the SmallShoppingCart.asp file: from: if vcItems > 0 then to: if vcItems > -1 then This programming stuff is pretty fun. I was trying all sorts of things to get this to work, until I looked a little higher in the code and realized I could use "negative" numbers. |
|
![]() |
|
Justplaying ![]() Newbie ![]() ![]() Joined: 16-August-2007 Location: United Kingdom Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hi Can anyone help with this issue im having I have moved the <!--#include file="Store/pc/SmallShoppingCart.asp"--> into the header I wanted to show the cart on the other side of page When I view the site I get:
Microsoft VBScript compilation error '800a0411' Name redefined /Store/pc/SmallShoppingCart.asp, line 5 dim vcCartArr, vcCartIndex, v, scantidadCart7, vcTotal, vcItems ----^ Any input would be greatly received Neil |
|
![]() |
|
Matt ![]() Moderator Group ![]() Joined: 20-July-2006 Location: United States Status: Offline Points: 73 |
![]() ![]() ![]() ![]() ![]() |
Hi Neil,
If you inlcude the file twice you will get that error because the variables are declared twice. Check your footer to make sure its not in both files. Matt |
|
![]() |
|
Justplaying ![]() Newbie ![]() ![]() Joined: 16-August-2007 Location: United Kingdom Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hi Matt Thanks for the advice, in an effort to resolve another issue I moved a clean copy of the footer into the root directory. I didnt realise you couldnt have 2 in the one place Thanks Neil |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |