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

Support for price/option drop-down on Buy Now button #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Support for price/option drop-down on Buy Now button #13

wants to merge 1 commit into from

Conversation

mikery
Copy link

@mikery mikery commented Dec 20, 2011

Hi,

This adds support for displaying a drop-down with product/price options. The change is backwards compatible - if item_options is not set when initialising the Buy Now button form, the drop-down is not displayed.

item_options is a tuple of price/option_name pairs, e.g.:

fields = {'item_name': 'name',
    'item_options': (('10.00', 'Ten dollars'),
        ('20.00', 'Twenty dollars')
    ),
    ...
}

This change is not yet ready to commit (no docs/tests), but I would like to get some feedback on the idea/implementation. If it looks like it will get merged I will update the pull request with docs and tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant