bigcommerce / cornerstone

The BigCommerce Cornerstone theme
https://developer.bigcommerce.com/stencil-docs
287 stars 606 forks source link

QTY box not showing #2334

Open cooladm1n opened 1 year ago

cooladm1n commented 1 year ago

Expected behavior

QTY box showing on Product page

Actual behavior

QTY box not showing on Product page

Steps to reproduce behavior

  1. Download latest cornerstone
  2. Stencil init \ stencil start
  3. Open Product page

Reason

https://github.com/bigcommerce/cornerstone/blob/87b6d8164f73c107530750f9d969bb608bf87c8e/templates/components/products/add-to-cart.html#L2 - added {{#if theme_settings.show_product_quantity_box}} but show_product_quantity_box not exist in config.json

bc-vlad-dlogush commented 1 year ago

Hello, @cooladm1n Thank you for your inquiry, a ticket has been created for this issue.

pvaladez commented 1 year ago

I'm not sure about the context of that PR, but Cornerstone currently uses {{product.show_quantity_input}} which is controlled by the BC control panel setting Settings > Display > Show Quantity Box for Products.

It would really helpful if there was a reference in docs where you find all the BC control panel settings and what handlebars context keys they map to.

pvaladez commented 1 year ago

For anyone else who might find this issue, it looks like only Cornerstone 6.9 used {{#if theme_settings.show_product_quantity_box}}. It was reverted to the previous {{#if product.show_quantity_input}} code in Cornerstone 6.10 so it shouldn't be an issue going forward.