marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

YOU ARE HERE:
Update to Multiple Items

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Update to Multiple Items »
Welcome, Guest. Please Login or Register.
12/11/17 at 12:59:37
Home Help Search Login Register
   marty.net message board
   About cpshop
   Tutorials
   Update to Multiple Items
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Update to Multiple Items  (Read 1375 times)
dem22
Gold Dragon
****

Posts: 54



Go Scots!
   

Update to Multiple Items
« on: 06/29/07 at 23:43:07 »
Reply with quote Modify message

i tried following the other thread on adding multiple items but i don't know if it's current.

i have created a store ID to load a certain page as a template. on that pagei have images acting as INPUT buttons, i want to be able to add multiple products at once by clicking the image.

i've looked at the code generated by cpshop and think i am close in how it must be modified to do this. here's what i have.

trying to add different 3 magnets at once


Code:
<form method="post" name="prod_detail_form" action="/cp/addtocart.aspx">
<input type="hidden" name="storeid" value="XXMYstoreIDXX">
<INPUT type="image" name="utah" src="../images/giftpacks/gift_canyonlands.png" border="0">
<input name="qty_XXmyitem1XX" type=hidden value="1" size="3" maxlength="2">
<input name="qty_XXmyitem2XX" type=hidden value="1" size="3" maxlength="2">
<input name="qty_XXmyitem3XX" type=hidden value="1" size="3" maxlength="2">
</FORM>


when i click on it i get a server error

"Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested Url: /cp/addtocart.aspx"

any suggestions? i think i'm close. i would really like to offer special multiple item add to car clicks via an image submit button. thank you.
Logged
dem22
Gold Dragon
****

Posts: 54



Go Scots!
   

Re: Update to Multiple Items
« Reply #1 on: 06/30/07 at 00:09:23 »
Reply with quote Modify message

okay i think i got it, i missed a lot of code the first time i looked.


Code:
<form method="post" name="prod_detail_form" action="http://www.cafepress.com/cp/addtocart.aspx" target="_blank">
<input type=hidden name=keepshopping value="javascript:window.close()">
<input type=hidden name=returnpage value="http://XXmyshopXX/cgi-bin/cpshop.pl">
<input type="hidden" name="storeid" value="XXmyIDXX">
<input name="qty_XXitem1XX" type=hidden value="1" size="3" maxlength="2">
<input name="qty_XXitem1XX" type=hidden value="1" size="3" maxlength="2">
<input name="qty_XXitem1XX" type=hidden value="1" size="3" maxlength="2">
<INPUT type="image" name="utah" src="../images/giftpacks/gift_canyonlands.png" border="0">
</FORM>


where XXitem1XX = the product ID #
Logged
dem22
Gold Dragon
****

Posts: 54



Go Scots!
   

Re: Update to Multiple Items
« Reply #2 on: 06/30/07 at 14:49:24 »
Reply with quote Modify message

okay, now i want to try something even more advance and am looking for suggestions as the best possible way to implement this.

i want to be able to add 3 products and have one of them be a shirt, so i need a way to still have SIZE and COLOR selectable before hitting the submit button.

should i try to javascript that info and have the result added to the submit button?

and even more advance, would it be possible to import the shirt information (and pictures) into an flash animation, including the javascript rollover effect for shirt selection, and then have a button in flash output the final selection and add all 3 items. how can i best include that info into flash? scripting is not my forte.

thanks for any ideas or suggestions or code example anyone. thought i's put this out there before trying myself.
Logged
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright 2000-2001, X-Null. All Rights Reserved.