It seems that whether a product type has a Registration field or not, the commerce registration is attaching itself to that product type. For instance, I have two product types - Ticket and Product (the default Commerce product type). Ticket has a Registration field attached to it but Product doesn't, however when the user purchases a "Product", the work flow still goes from cart to registration form - although this is showing "no registration information required" - and then to the checkout.
I'm not sure if this is a bug or intended functionality but I don't believe the workflow should be like this if a Registration field is not attached to a Product type. Has anyone else experienced this occurring?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | create_registration_link_always_displays-2101381-4.patch | 989 bytes | imclean |
Comments
Comment #1
Breakerandi commentedExactly the same problem here.. how can i hide the form on the condition if the products in the card have an registration attached or not...
Comment #2
imclean commentedWe're seeing some related issues.
Steps to reproduce:
A "Create Registration" link appears, which when clicked produces the error:
"Sorry, registrations are no longer available for product type."
The link doesn't appear for anonymous users, however when checking out with just the one product with no registration, the first screen after the cart is "Registration Information", with the message "No information required, you may skip this step.".
It would be nice not to have that screen appear at all if it isn't required.
It looks like the Registration field is automatically attached when a product reference field is added.
Comment #3
imclean commentedRelated: #2057497: Skip registration page when no data is required from user
Comment #4
imclean commentedPart 1 could be a separate issue but I'll post it here. The problem is the "Create Registration" link is being added to all "Add to cart" forms, whether or not it relates to a registration product.
This patch adds a check for the "field_registration" within the "default_product" object. I'm not sure if it's a reliable method but it's working for us so far.
Comment #6
blacklabel_tom commentedHi Guys,
Thanks for your work on this, patch committed into dev.
Cheers
Tom