solidusio / solidusio/solidus_subscriptions

Fix the PDP subscription form

Open
#243 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
Ruby
Stars
49
Forks
53
Avg merge
4h 54m
Merged PRs (30d)
1

Description

The PDP subscription form is not working correctly:

  1. it appears also if the product is not subscribable
  2. the default PDP quantity input is used to set the subscribable_id (the variant id)
  3. the interval units fields are not filled with a default value
  4. the subscription quantity is handled by a redundant field

Screen Shot 2021-10-27 at 17 55 02 PM

How to fix:

  1. show the subscription form only if the product or one of the product variant is subscribable
  2. use the default PDP quantity input to set the subscription quantity
  3. fill the interval units fields with a default value
  4. remove the redundant field

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the PDP subscription form entry point and trace how product subscribability, variant IDs, the default PDP quantity, interval units, and subscription quantity are handled. Done means the form appears only for subscribable products or variants, uses the default quantity for subscriptions, supplies default interval units, and has no redundant quantity field.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.