close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

I'd like to update an item in the cart (ie., update the cookie)

Thread began 6/10/2012 10:20 pm by dionysus224892 | Last modified 6/13/2012 11:18 am by Jason Byrnes | 3715 views | 4 replies |

dionysus224892

I'd like to update an item in the cart (ie., update the cookie)

I have a field called "pricechecked" and I'd like to set it as either "y" or "n" by clicking a button. I know you can update the quantity by the following hidden field :

<input type="hidden" name="ebooks_Quantity_<?php echo $ebooks->DisplayIndex; ?>" value="<?php echo $ebooks->DisplayInfo("Quantity"); ?>" />

How would I do it for pricechecked? I tried the following but it didn't work :

<input type="hidden" name="ebooks_pricechecked_<?php echo $ebooks->DisplayIndex; ?>" value="y" />

Thanks for your help!
-G

Sign in to reply to this post

Jason ByrnesWebAssist

that looks like it should work as long a the hidden element is in a cart display and you are clicking the update cart button, that should do the trick.

can you send a copy of the page you are using this on and a link where I can see the problem.

Sign in to reply to this post

dionysus224892

Hey Jason, thanks for responding quickly (again) :)

Can I send you this info privately?

The process is as follows :

-on login, any saved info in the db is loaded into the cart cookie for the users
-changes made while logged in are made to the cart cookie
-on logout, the cookie is saved to the db

For this particular item, I have a few extra steps.
-on click, the value of pricechecked is set to "yes"
-the action of the form is set to add a variable (the code of the book in question)
-the form is submitted, updating the cart contents/cookie
-after submission the user is sent to pricecheck.php which inserts a new record in a table
-the user returns to the profile page
-on logout, new info saved to db

However this is not happening.

I can send you the details privately. Thanks!

Sign in to reply to this post

dionysus224892

For the record, I don't know how to send you this info privately!

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...