close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

price

Thread began 1/12/2011 6:14 pm by kleinermitzen420599 | Last modified 1/14/2011 6:53 am by Jason Byrnes | 1544 views | 6 replies |

kleinermitzen420599

price

The buttons don't work correctly. The price is set to a certain number, but after the first add to cart button is click, the price for that product carries onto all the other add to cart buttons. How can I fix this?

Sign in to reply to this post

kleinermitzen420599

let me explain better

-1- I click an "Add to Cart" button for an item. (lets say it costs 99 dollars)
-2- That 99 dollars gets added to the total in the shopping cart summary. (this works fine)
-3- Then I click an "Add to Cart" button for a different item that is, let's say, 500 dollars.
-4- Instead of the php script adding 500 dollars to the total, it adds 99 (Or whatever the first amount was)

I have every item on the same page. Could this be the problem? If it is, how do i fix it without putting the items on separate pages?

Sign in to reply to this post

Jason ByrnesWebAssist

This suggests that id value used in the add to cart button is not unique.

Make sure that the ID column is getting a unique value.

Sign in to reply to this post

kleinermitzen420599

how?

The numbers get changed as the buttons are made by pulling from a set of IDs from a database. All of these are different.
The unique ID's are put in place of the number 1 in the following code.

chaseStore_1_ATC_0
chaseStore_1_ID_Add
chaseStore_1_Quantity_Add
chaseStore_1_ATC

The code on top that processes the code is static. The price is the only thing I'm having trouble with. I don't have a record set yet. Could that be it?

Is there more to it than that?

Sign in to reply to this post

kleinermitzen420599

Okay figured out that part of it, but I guess its not adding anything to the actual cart. Because in the file... it says redirect if empty. Could the items not be getting added to the actual online cart?

Sign in to reply to this post

kleinermitzen420599

error

The site just started coming up with these errors today. It had these errors when I completed the checkout wizard.

This is the error i get when the page with the online summary and the buttons comes up.

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/p24acav6/public_html/displaysofgrace.com/ChaseStore.php:6) in /home/p24acav6/public_html/displaysofgrace.com/WA_eCart/WA_eCart_Definition_PHP.php on line 465

This is the error that comes up when I click checkout.

Warning: Cannot modify header information - headers already sent by (output started at /home/p24acav6/public_html/displaysofgrace.com/ChaseStore.php:6) in /home/p24acav6/public_html/displaysofgrace.com/ChaseStore.php on line 105

Sign in to reply to this post

Jason ByrnesWebAssist

The headers already sent error means that there is output to the page between php tags in the head.

the error is saying to look around line 6 for the problem:
output started at /home/p24acav6/public_html/displaysofgrace.com/ChaseStore.php:6

if you can t see the problem, please send a copy of the page in a zip archive so i can examine the code.

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...