close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Price Not Being Passed Correctly To Shopping Cart.

Thread begun 5/23/2014 12:05 pm by bill173836 | Last modified 6/05/2014 8:38 am by Jason Byrnes | 5251 views | 25 replies |

bill173836

Price Not Being Passed Correctly To Shopping Cart.

Jason,
I started a new thread as the last one was getting so long. I figured out the updating data and the product-details.php page now goes to the shopping-cart.php page. But it's not passing the correct price. Here are the product-details.php and shopping-cart.php pages for your review. Thanks in advance.

You can find the pages at https://www.familyfriendlystore.com/products-detail.php?ProductID=1000 to see how it works and that when you add it to the cart the price isn't being reflected correctly on the shopping cart.

Sign in to reply to this post

Jason ByrnesWebAssist

price looks correct for me.

Sign in to reply to this post

bill173836

If you choose one of the options listed. The price changes. So when you press the add to cart button it's not sending the proper charge Try this link https://www.familyfriendlystore.com/products-detail.php?ProductID=1000&skucolor=4&skusize=7&skuudo1=15 the charge should be $0.04 but only $0.03 is being passed.

And if you choose this one https://www.familyfriendlystore.com/products-detail.php?ProductID=1000&skucolor=5&skusize=7&skuudo1=15 which should be $0.05 it's only sending $0.02.

Sign in to reply to this post

Jason ByrnesWebAssist

That was not clear from the initial question.

to troubleshoot, create a new blank php page and add a cart display to it. In the display settings set it to show all columns.

send a copy of the cart object file and a link to that page.

Sign in to reply to this post

bill173836

https://www.familyfriendlystore.com/blank.php

Sign in to reply to this post

Jason ByrnesWebAssist

so looking at the cart display, nothing is going into the price increment columns.

this leads me to question the recordsets for looking up the price increment values.


on this page:
https://www.familyfriendlystore.com/products-detail.php?ProductID=1000&skucolor=5&skusize=7&skuudo1=15

the select list that seams to be changing the price is the version, on looking at the source code the code for that select list is:


<select name="skuudo1" class="MenuList" id="skuudo1" onchange="this.form.submit()">
<option value="15" selected="selected">Hardcover</option>
<option value="17">Soft Cover</option>
</select>


so that means the select list name is:
skuudo1


however, in the udo1Lookup recordset, you are using the form element name:
siteCart_1_UDO1_Add

which does not match what is being used in the form.

Sign in to reply to this post

bill173836

I got the previous problem to work but I've run into an issue on the shopping cart that is blowing my mind. What is happening is that if I create a session variable to display the color, size, etc when I create an if else statement the variable is recognized as 0. Which makes the if else statement not work properly. It should display Color: Green etc. Only if there is a value that is not 0 or empty. I'm sending the shopping cart page the code in question starts at line 298.
You can add an item to the shopping cart to see it run.
https://www.familyfriendlystore.com/products-detail.php?ProductID=1000&skucolor=5&skusize=7&skuudo1=9

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

this:
$SKU == '' OR $SKU == '0'

is not valid syntax for an OR comparison. val;id syntax would be:

$SKU == '' || $SKU == '0'

Sign in to reply to this post

bill173836

That didn't work either. In the if statement the session is always being defined as 0 yet if you echo it somewhere else it will show either a blank space or the assigned value.

Sign in to reply to this post

Jason ByrnesWebAssist

In reality, this is custom coding i wont be able to help with much, You should sign up for a premiere support appointment to get help with this:
http://www.webassist.com/premier_request.php

Sign in to reply to this post
loading

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