Help - Search - Members - Calendar
Full Version: Shopping Cart
MonsterSmallBusiness Forums > MonsterCommerce > How do I?
ColoradoMiniatures
i like the way Homepage Specials are displayed and wanted to create a couple of custom pages duplicating this format. i don't want to use categories for a couple of reasons, and that's not relevant to the discussion that follows anyway...

to replicate this thubnail view structure, i read through the source code of the index.asp page to determine how the thumbnail views were being implemented. then, i created a custom page and entered the products that i wished to display (which were not necessarily homepage specials) in a format similar to what i'd seen in the source code.

everything looks and works the way i want it to except for 1 thing... apparently, the BUY button form submission contains information about the upcoming page to be displayed, but i can't find a way to control it in the source HTML anywhere.

i would assume that submitting the form action using the BUY button would just dump the user back onto the current page, and this is the behavior that exists everywhere on my website for pages generated by Monstercommerce. however, for my custom page, the resultant webpage after pressing the BUY button is the PREVIOUS webpage.

for example...

let's say i'm on custompage2, then i go to custompage8. on custompage8 is my custom code displaying the thumbnail views of the products. when i press the BUY button, the shopping cart works fine (i.e., the product gets correctly added to the cart), but i get dumped back to custompage2 immediately.

i should be able to control this so that (in the example above), i always get dumped back to custompage8 when pressing a BUY button on custompage8 (and this is the built in behavior for the Monstercommerce engine), but i don't see where in the HTML source i have control over this. if i CANNOT control it from the source, then i want to know how the dynamically generated pages are working this way... in the old days, you'd control this by directly coding it into your FORM processing CGI scripts, but i don't believe that Monstercommerce is doing it this way... somewhere it's buried in the source HTML, but i just don't see it!!!

can anyone help me resolve this?

to see an example of what i mean, try the "Topics: Aviation" subpage on my site, which is a custom page. here's a direct link to it:

http://www.coloradominiatures.com/index.as...ion=Custom&ID=8

i'd like to get this figured out because i have a couple more pages in this style that i'd like to create.
undejj
Wow, you got me. I hope you don't mind, I put about a dozen of these little guys in my cart while testing this out for myself.

If I click on one to view it or 'Enlarge' it, that seems to SET the page that I am going to see after I 'Buy' one. For example, I click on A to enlarge. When I buy B, I go back to A. Then I buy C, I go back to A. Then I click on D to enlarge. Now when I buy A or B, I go back to D.

The only thing that I can tell you is that MC uses ASP pages on the backend. ASP dynamically creates all of the pages that you see. Simply copying the HTML via View Source will not give you all of the code that is running on this page behind the scenes.

This behavior can only be explained by MC developers.
turtlepress
You can find the code for making a buy button with a redirect in this thread, toward the end:

http://forums.monstersmallbusiness.com/ind...?showtopic=1080

For example, I'm using it to redirect people to the shopping cart after they purchase something from my custom what's new page at http://www.turtlepress.com/index.asp?PageAction=Custom&ID=5

Hope this helps!
ColoradoMiniatures
QUOTE(turtlepress @ Jan 3 2004, 04:18 PM)
You can find the code for making a buy button with a redirect in this thread, toward the end:

http://forums.monstersmallbusiness.com/ind...?showtopic=1080

For example, I'm using it to redirect people to the shopping cart after they purchase something from my custom what's new page at http://www.turtlepress.com/index.asp?PageAction=Custom&ID=5

Hope this helps!

Bingo!

that's exactly what i was looking for, and it solves the problem. thanks again.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.