eCart Column Calamity
Hi
I’m trying to add a new Column (called Stock) to eCart (using eCart 4.5.2 on an ASP VB web site).
Turns out it’s not as easy as adding a Column via the eCart Panel as all that does is update DMWCart_VB.asp and WA_eCart_Definition_VB.asp.
I had to go through every page with an Add to Cart button and update it with the new Column. (I couldn’t use the wizard because it would screw up the CSS styling I had on the buttons.)
So far, so good. I could now add items to the Cart using the updated Add to Cart buttons.
But I couldn’t then go from the Cart page to the CheckoutSSL page without getting a 500 server error. So I manually made some changes to the Cart page to so its form would also pass the new Stock Column info to the secure Checkout page, adding the line in the appropriate place:
<input type="hidden" name="Stock_<%=DMWCart_Index%>" id="Stock_<%=DMWCart_Index%>" value="<%=WA_eCart_DisplayInfo(DMWCart, "Stock")%>" />
That seemed to move the info properly to the CheckoutSSL page but I would then get a 500 internal server error when clicking Continue to the ConfirmSSL page.
I tried adding the following code to the CheckoutSSL page in the appropriate places:
ATC_Stock = "" & cStr(Request.Form("Stock_"&(displayIndex))) & ""
AND
, ATC_Stock
But still got a 500 error from the ConfirmSSL page.
Trouble is, I don’t know how to modify the ConfirmSSL page code to solve this problem (and I can’t tell what/where the code is causing the 500 error because this server won’t tell me the line).
So my question is: How do I manually modify my ConfirmSSL page to accept a new eCart Column called Stock … AND are the lines of code I’ve manually added to the Cart and CheckoutSSL pages the correct ones?
Please advise.
I’d like to add more columns to this eCart in the near future so it’s imperative I find out how this works.
Thanks,
Craig