Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjustments documentation #2459

Merged
merged 4 commits into from
Mar 10, 2018

Conversation

benjaminwil
Copy link
Contributor

I've ported the Spree documentation for adjustments and updated it for Solidus.

The Spree documentation had an additional section for extending adjustments, but it wasn't relevant for Solidus and am not positive that it'd be a useful section for Solidus developers.

If someone can give me an example of why you'd want to add a new adjustable or create custom adjustments, I would love to learn more about it.

Once we have taxation and promotions documentation merged, I'd like to come back to this and add relevant links.

This is part a larger project to improve Solidus's documentation. See this gist with the high-level table of contents. Where and how this documentation will exist is still up for discussion.

These Spree models are not available in Solidus. If we require a
section about extending adjustments or creating new adjustables in
Solidus, it would have to be rewritten from scratch.
Previously, the adjustment scopes and associations listed were the last
documented for Spree. Now, there's up-to-date for the current version
of Solidus.
price of the object it is associated with. Otherwise, the adjustment is added
to the total price. This property only applies to tax adjustments. See the
taxation documentation for more information.
included in the price.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something got chopped here.

@skanderm
Copy link

skanderm commented Feb 3, 2018

If someone can give me an example of why you'd want to add a new adjustable or create custom adjustments, I would love to learn more about it.

I've been looking for an easy way to add positive adjustment fees/charges based on rules, and I think I need a custom adjuster. Specifically, I need the opposite of a promotion - i.e. a charge if there's only 1 item of a specific product or a charge per quantity of another product (such as a disposal fee).

I was directed to look into creating custom calculators, but I don't think charges/fees fit wherever promotions are called.

@kennyadsl kennyadsl merged commit c74c7d0 into solidusio:master Mar 10, 2018
@benjaminwil benjaminwil deleted the adjustments_documentation branch April 30, 2018 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants