Skip to content

Enhance Spree Admin with Price Lists and Price list Items management#17

Closed
JustShah wants to merge 8 commits into
mainfrom
7-add-a-price-list-table-resource
Closed

Enhance Spree Admin with Price Lists and Price list Items management#17
JustShah wants to merge 8 commits into
mainfrom
7-add-a-price-list-table-resource

Conversation

@JustShah

@JustShah JustShah commented Apr 8, 2025

Copy link
Copy Markdown

Description

This pull request introduces several enhancements to the Spree Admin interface, allowing for more efficient management of pricing.

Key Changes:

  • Price List Management:

    • Users can now create and manage price lists directly from the admin panel. This includes the ability to add new prices associated with specific price lists, streamlining the pricing process.
  • Price List Items:

    • Administrators can create new price list items directly from the price list interface, making it easier to manage pricing details for products.
  • Improved Navigation:

    • The admin navigation has been updated to include links to price lists, ensuring that these features are easily accessible.

These enhancements improve the overall organization of the admin interface, making it easier for administrators to manage prices effectively.

Benefits:

  • Streamlined pricing management with the ability to create prices directly from the price list.

tvdeyen and others added 5 commits March 6, 2025 12:46
…-actions-permission

Revert "GH: Allow backport workflow to trigger actions"
Created a new association between Product and Brand Taxon using the existing Taxon model.
Updated the product form for primary taxon and modified the related jQuery to display and select a specific taxon.
Updated the product form for `brand taxon` and modified the related jQuery to display and select a specific taxon.
Added associations in Spree::Price model for price lists and price list items to enable dynamic pricing capabilities.
Created Spree::PriceList model with associations to price list items and prices, allowing for flexible price management.
Created Spree::PriceListItem model with associations to price lists and prices to link individual prices to specific
price lists. Updated locale files to include translations for price lists and price list items to ensure proper localization.
Added migrations to create spree_price_lists and spree_price_list_items tables to store the new data structures.
@JustShah JustShah force-pushed the 7-add-a-price-list-table-resource branch 6 times, most recently from 84f73fd to 0c6af2a Compare April 9, 2025 05:34
JustShah added 3 commits April 9, 2025 11:06
- Introduced PriceListsController to handle price list operations.
- Created views for managing price lists, including:
  - New price list form (`new.html.erb`)
  - Price list edit form (`edit.html.erb`)
  - Price list index view (`index.html.erb`)
  - Partial views for price list form fields and price list information.
- Implemented form fields for name, country, currency, and tax inclusion.
- Added functionality to display price details associated with each price list.
- Included breadcrumb navigation for better user experience in the admin panel.

This feature allows administrators to create, edit, and manage price lists effectively, enhancing the overall product pricing strategy.
- Introduced PriceListItemsController to handle price list item operations.
- Created views for managing price list items, including:
  - New price list item form (`new.html.erb`)
  - Price list item edit form (`edit.html.erb`)
  - Partial view for price list item form fields.
- Implemented functionality to associate price list items with specific price lists and variants.
- Added support for entering price details, including amount and currency.
- Enhanced breadcrumb navigation for better user experience in the admin panel.

This feature allows administrators to create, edit, and manage price list items, facilitating more flexible pricing strategies for products within the Spree application.
- Updated product sub-menu to include a link to price lists if the user has admin permissions.
- Added routes for managing price lists and their associated price list items.
- Updated backend configuration to include price lists in the admin menu, ensuring proper access control based on user permissions.

These enhancements improve the organization of the admin interface, making it easier for administrators to manage price lists effectively.
@JustShah JustShah force-pushed the 7-add-a-price-list-table-resource branch from 0c6af2a to d515d0f Compare April 9, 2025 05:36
@JustShah JustShah changed the title Enhance Spree Admin with Price Lists and User Groups Management Enhance Spree Admin with Price Lists and Price list Items management Apr 9, 2025
@JustShah

JustShah commented Apr 9, 2025

Copy link
Copy Markdown
Author

Created a new independent and improved PR: #21

@JustShah JustShah closed this Apr 9, 2025
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.

3 participants