ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Settin up small shopping cart summary
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Settin up small shopping cart summary

 Post Reply Post Reply
Author
Message
ericpollard View Drop Down
Newbie
Newbie


Joined: 16-November-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote ericpollard Quote  Post ReplyReply Direct Link To This Post Topic: Settin up small shopping cart summary
    Posted: 19-December-2008 at 2:18am
I am trying to setup a shopping cart summary following the guide on this page: 

http://wiki.earlyimpact.com/how_to/add_shopping_cart_summary

Where do I include the code
<!--#include file="SmallShoppingCart.asp"-->

Is this the only code I need to add to the page to have the summary show up?

Also, all my articles and product pages are actually not going to be written in
ProductCart, but in Joomla. Everything seems to be working fine this way. I have
included add to cart buttons on Joomla pages that have linked to the ProductCart
shopping cart with no problem. So I imagine this should be able to work...

I just don't know where/how to insert that code...

One more question too, can the SmallShoppingCart.asp path be rewritten to be direct,
as in, http://www.soonandsoon.com/productcart/pc/smallshoppingcart.asp ?

I will need to do this since the page that will be linking to the smallshoppingcart.asp
summary won't be in the same directory as it typically would be...

Anyways, thanks for the help...
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 19-December-2008 at 1:45pm
You won't be able to include ASP code into non-ASP scripts.  They won't talk to each other.
 
I recall there being a javascript, or so I thought, that was in the support section somewhere.  Someone pointed it out to me one day and I noted that it was written to display cart totals from non-ASP pages. 
 
Essentially, I believe you will have to study the cart totals script and work out a method of calculating the cart totals (if possible) in a language compatible with Joomla.
 
Good luck. 
Back to Top
ericpollard View Drop Down
Newbie
Newbie


Joined: 16-November-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote ericpollard Quote  Post ReplyReply Direct Link To This Post Posted: 31-December-2008 at 2:06am
Anyone from Early Impact want to chime in on this? 

Mr. Dinger mentioned a javascript that displays cart totals on non-ASP pages... Any idea where this script can be found? 

Thanks.
Back to Top
Matt View Drop Down
Moderator Group
Moderator Group


Joined: 20-July-2006
Location: United States
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote Matt Quote  Post ReplyReply Direct Link To This Post Posted: 31-December-2008 at 2:52am
As Greg mentioned, you cannot use an asp snippet in a php application.  The small cart snippet uses an array, which has a ton of logic behind it.  So you probably do not want to port all of that code to php.  You could, perhaps, convert the asp array to a JavaScript array so it can be consumed in your PHP page.  I am not aware of any such code already available.
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 31-December-2008 at 7:11am
My memory of that JS code came from a phone call I received from a prospective customer.  They had poked around the site and found a piece of code that according to my memory used JS to manage the cart contents array, just as PC currently does natively in ASP.
 
Perhaps Hamish recalls that code, but as Matt indicates, it does not appear to be present on the site, and so it would need to be built custom for your site.  ASP code will not run within PHP scripts, and such a routine would have to be written in JS - modeled after the equivalent ASP script.  You could contact us directly if that were your interest.
Back to Top
GreggS View Drop Down
Groupie
Groupie


Joined: 06-February-2012
Location: New Jersey
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote GreggS Quote  Post ReplyReply Direct Link To This Post Posted: 24-October-2012 at 1:24pm
I also have a problem adding the small shopping cart to our site.  The issue is unrelated to this but I figured I'd add to this instead of making a new post.

On this page,
http://wiki.earlyimpact.com/how_to/add_shopping_cart_summary

It says to add this code where you want it to be displayed.
<!--#include file="SmallShoppingCart.asp"-->

When I add it anywhere on header.asp or footer.asp I get a 500 - Internal server error.  If I try just to even view the page by itself I get the same error.
store/pc/SmallShoppingCart.asp

Is there something I'm missing? Does it have to be in a certain place? Or do I have a bigger issue?
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 24-October-2012 at 1:50pm
You need to set code and server settings to reveal raw error messages.  That will likely identify an included file reference that needs to be added, or some other issue.  Just knowing that you got a 500 error isn't going to be sufficient to resolve the problem.
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post Posted: 24-October-2012 at 2:05pm
Regarding including the small shopping cart in non-ASP apps, I've done this by using an iframe on WordPress blogs. Here's an example:

RE: Gregg's issue -- there's probable a name redefined or db connection missing ... something simple. Gregg, shoot an email to our support and I'll get you our 500.100 error trapping with instructions on how to set it up.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.