close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adding New Products

Thread began 2/23/2012 6:58 am by chuck429411 | Last modified 2/23/2012 10:39 am by Jason Byrnes | 1621 views | 4 replies |

chuck429411

Adding New Products

Hey Jason, I just added a new product section to my site. They are static items. I do not know if the calculations are working or not for these products. When I hit the atc button for one of those products, nothing gets added to the cart. I did not input a value for the CasePrice binding or the CaseBreak binding in the add to cart button panel. Could that be the reason? I left the size binding blank as well. The section is primarily for dispensing guns and the customer will not get a case price, case break or need to select a size.

Sign in to reply to this post

chuck429411

Ok, I have figured it out for 6 out of 8 products. I just inputed the regular price into the CasePrice field and set the CaseBreak to 10. Those products quantities are set with a select list.
My final 2 products at the bottom have a text field for the customer to request as many of that item as they wish. These 2 items will not add to cart. Here is the link to the page in question. Scroll down to the bottom 2 products and add them to the cart and you will see what I mean.

equip.php

Sign in to reply to this post

Jason ByrnesWebAssist

if i view source of your page, for the last item, the add to cart code looks like this:

php:
<td rowspan="4" valign="bottom"><input name="eCart1_8_Quantity_Add" type="text" value="1" size="3" maxlength="3" />
          <input type="hidden" name="eCart1_8_ID_Add" value="300_006" />

          <br />
          <br />
          <form name="eCart1_8_ATC_300_006" method="POST"  action="/equip.php">
            <input type="image"  src="images/atc.jpg" border="0" class="eC_ImageButton" value="Add to Cart" name="eCart1_8_ATC">
  </form></td>



the problem is that the quatity text field and the ID hidden element are not inside the form tags. the form tags:

php:
<form name="eCart1_8_ATC_300_006" method="POST"  action="/equip.php">
            <input type="image"  src="images/atc.jpg" border="0" class="eC_ImageButton" value="Add to Cart" name="eCart1_8_ATC">
  </form>



only include the submit button. since the quantity and ID elements are outside the form tag, they are not submitted when the submit burton is pressed.


the add to cart code should have the quantity and id elements inside the form tag:

php:
<td rowspan="4" valign="bottom"><form name="eCart1_8_ATC_300_006" method="POST"  action="/equip.php"><input name="eCart1_8_Quantity_Add" type="text" value="1" size="3" maxlength="3" />
          <input type="hidden" name="eCart1_8_ID_Add" value="300_006" />

          <br />
          <br />
          
            <input type="image"  src="images/atc.jpg" border="0" class="eC_ImageButton" value="Add to Cart" name="eCart1_8_ATC">
  </form></td>
Sign in to reply to this post

chuck429411

Thank you again Jason. That worked perfectly.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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