Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
Fix: Product index incorrect when PER_ORDER checkout enabled
Dave Earley43b7260527d1
diff --git a/frontend/src/components/routes/product-widget/CollectInformation/index.tsx b/frontend/src/components/routes/product-widget/CollectInformation/index.tsxindex 8f43f4246..329d5082c 100644--- a/frontend/src/components/routes/product-widget/CollectInformation/index.tsx+++ b/frontend/src/components/routes/product-widget/CollectInformation/index.tsx@@ -547,11 +547,14 @@ export const CollectInformation = () => {const productHasQuestions = productQuestions?.some(question => question.product_ids?.includes(orderItem.product_id));if (!product) {- return;+ return null;}if (!productRequiresDetails && !productHasQuestions) {- return;+ // Still increment productIndex for each item in the quantity+ // to maintain correct form field indices+ productIndex += orderItem.quantity ?? 0;+ return null;}return (