I am trying to find a way to show the quantity field on the products teaser page ie fakelink.net/products All i have found is outdated info and people trying to remove the quantity field from the teaser page. I have went into views but all i see for options are show quantity purchased which is s static number. I would like a one page check out for people so they can select the product enter the number and click checkout all on the same page.

This is for a non profit theatre company which will only be selling tickets to shows. so its not like they really need to go to a full product page.
Any help would be great on this thanks so much.

~Farns

Edit1: there is a
Display an optional quantity field in the Add to Cart form.
Enable Add to cart forms in product node teasers.

Which are both checked but it is not showing any quantity field

Comments

nvl.sateesh’s picture

Hi farnsworth,

I know this is very late reply. I stumbled upon this post as I faced the same error. For some reason the following code on line 1271 of uc_product.module is returning false:

  if ($node->default_qty > 0 && variable_get('uc_product_add_to_cart_qty', FALSE)) {
    .......
  }

I noticed that only $node->default_qty > 0 is returning false even when the qty is 1.

For my case, I just used hook_form_alter and displayed the qty field. Just thought it might help someone.

Sateesh Nutulapati
Devops Solutions Architect at New Target, Inc.