![]() |
Settin up small shopping cart summary |
Post Reply ![]() |
Author | |
ericpollard ![]() Newbie ![]() Joined: 16-November-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() 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"--> |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
ericpollard ![]() Newbie ![]() Joined: 16-November-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
Matt ![]() Moderator Group ![]() Joined: 20-July-2006 Location: United States Status: Offline Points: 73 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
GreggS ![]() Groupie ![]() Joined: 06-February-2012 Location: New Jersey Status: Offline Points: 60 |
![]() ![]() ![]() ![]() ![]() |
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? |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
Guests ![]() Guest ![]() |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
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 |