HomeHome Product Discus... Product Discus...SmithCartSmithCartTurn off Quantities?Turn off Quantities?
Previous
 
Next
New Post
11/7/2010 12:05 PM
 

I'm trying to only sell one of an item and not have the customer have the ability to choose more than one for the quantity. I can remove the quantity from the details and shopping cart aspx pages (by hiding it)... but when they go back to browsing and click "Add to Cart" again, it increases the quantity and order cost- it doubles and then triples it for each time they click add to cart.

Can I just sell the 1 product per customer and drop off quantity all together?

Thank you!

 
New Post
11/8/2010 1:10 PM
Accepted Answer 

The cart has a checkbox in the buynow module settings to turn off the quantity textbox on the product list and product details page which it sounds like you have already set but the default behavior of the cart when the user clicks the add to cart button is to add another item to the cart. There is not cart setting to tell the cart not to add the item to the cart when the user clicks add to cart. One alternate solution is to also hide the add to cart button in the module settings and you can create your own dnn page with your products and an add to cart button and then with the some javascript you could hide the add to cart button if its been clicked once for that product. Or you could possibly do the same thing by editing the productlist.ascx page in the cart to add your own button and hide it once its been clicked.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
11/10/2010 7:33 AM
 

Cool. Thank you.

I like the idea of being able to modify the productlist.ascx page, but how would I add my own button to execute the code that adds it to the cart? Or are you saying just add javascript to the file so that it hides the existing "add to cart" button that they click?

If I did that, how do I save the click in javascript to hide the button when they leave and come back to the page? I don't think JS will store a session variable.

Alternatively, if I created my own page with my own add to cart, how can I create a button that adds to cart? Or would I just run the add store order and add store order details stored procedure from that button and pass them to the checkout process?

Thank you,

Jones

 
New Post
11/21/2010 2:09 PM
 

You can hide the add to cart button in the buynow module settings and then create your own dnn page with your products and an add to cart button. Please see the following "How To" forum post that explains how to add an item to the cart using the querystring and you own add to cart button:

http://www.smith-consulting.com/forum...

My idea was with some additional javascript you could hide the add to cart button if its been clicked once for that product. The actual implementation of the javascript would require a bit of analysis and coding from a programmer.


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
11/29/2010 7:33 AM
 

Thanks. The problem is, I have a required field on the product details page. How can I post that information when I post to the shopping cart? Is that possible?

Thank you,

Jones

 
New Post
11/29/2010 8:06 AM
 

Also- on a successful redirect, can I pass the order number in the query string?

Thank you,

Jones

 
New Post
11/29/2010 9:51 AM
 

There is nothing built into the cart to do this currently. Alternatively, you could add your own button that pulls the order number off the screen and redirects the user to another page.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartTurn off Quantities?Turn off Quantities?