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?

Comments

Breakerandi’s picture

Issue summary: View changes

Exactly 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...

imclean’s picture

We're seeing some related issues.

Steps to reproduce:

  1. Create a product display content type
  2. Add a product reference and point it to a product with no registration
  3. View product display when logged in as user 1 (or one with appropriate permissions)

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.

imclean’s picture

imclean’s picture

Part 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.

  • blacklabel_tom committed d2e9133 on 7.x-2.x authored by imclean
    Issue #2101381 by imclean: Registration attaching itself to all content/...
blacklabel_tom’s picture

Status: Active » Fixed

Hi Guys,

Thanks for your work on this, patch committed into dev.

Cheers

Tom

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.