commerce cart page says access denied after enabling this module

Created on 8 March 2024, 9 months ago

I am using commerce module in my site and i need to add donation amounts in checkout page.as soon as i enabled this module my site
cart page says access denied.

πŸ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom zohera

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @zohera
  • πŸ‡¬πŸ‡§United Kingdom zohera
  • Status changed to Postponed: needs info 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States fathershawn New York

    Please let me know both the versions of Drupal and of Commerce?

  • πŸ‡¬πŸ‡§United Kingdom zohera

    Drupal Version is 10.2.1
    Commerce braintree version is 8.x-1.5
    Php version 8.1.0

    And I have followed configuration scenarios as mentioned in module, but I can see below js error as shown in attached screenshot
    on this page(/admin/commerce/config/donation-settings) when i try to save the page .

    Can you please help to fix this and also allow user to access cart route by using this module.

  • Status changed to Active 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States fathershawn New York

    I cannot reproduce your reported JS error, but I am re-validating the setup for standard cart checkout.

  • Status changed to Closed: cannot reproduce 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States fathershawn New York

    Either you have not properly configured the module in your local instance, or there is a conflict with something else you have installed. I have verified that this module works with the Drupal 10.1 and the latest version of Commerce when it is properly configured. I have provided detailed documentation (screenshot attached for anyone else browsing issues).

    Based on your screenshot I think you missed creating and configuring a replacement checkout flow using the provided multi-step with donation flow. Checkout on the /cart route is blocked by design when the module is not properly configured because it does not properly process orders. The default settings for this module are for a scenario in which donations are the only commerce on the site.

    I see that you have been part of our community for 15 years, so I'm surprised that you also used my drupal.org contact form to communicate that I was not responding to your bug report. We share these contributed modules in the same way that one brings a dish to a communal feast. It's not our culture to treat the issue queue as a customer service channel but as a shared kitchen in which we all cook.

  • πŸ‡¬πŸ‡§United Kingdom zohera

    Thank you for the reply.I have followed all the instructions mentioned in https://www.drupal.org/files/issues/2024-03-11/commerce_donation_instruc... β†’

    I have created a checkout flow that uses this modules's donation_multistep_flow plugin.
    and also placed "Add Donation" pane in the first step of the flow, just before the Donation step.
    Choose the /cart route option below with
    The Donation OrderItem type.
    The Default Order type.
    and choosen donation checkout flow with donation_multistep_flow

    I am also attaching screenshots below for your reference which includes my checkout flow with donation_multistep_flow.

  • πŸ‡©πŸ‡ͺGermany etron770

    The same at my site
    uninstalling the module fixed this issue.

Production build 0.71.5 2024