Enhance E-commerce Codebase with Product Upload and Sorting

Enhance your e-commerce platform with seamless product uploads and modern sorting features.

Workflow Stage:
Use Case
Save Prompt
Prompt Saved

Overview

This prompt aims to guide developers in enhancing a codebase with a product uploading and sorting system. Programmers and coding teams will benefit from clear, production-ready code snippets that integrate seamlessly into their existing projects.

Prompt Overview

Purpose: This project aims to enhance an existing codebase with a product uploading and sorting system.
Audience: The intended users are developers looking to integrate new features into their e-commerce platforms.
Distinctive Feature: The system supports product categorization, subcategorization, and modern sorting options for enhanced user experience.
Outcome: The integration will provide a seamless way to manage products and improve customer engagement through sorting.

Quick Specs

  • Media: Code
  • Use case: Product management system
  • Techniques: Model updates, API integration
  • Models: Product, Category, Subcategory
  • Estimated time: 2-3 days
  • Skill level: Intermediate

Variables to Fill

No inputs required — just copy and use the prompt.

Example Variables Block

No example values needed for this prompt.

The Prompt


You are tasked with enhancing an existing codebase by adding a product uploading system and a modern product sorting system. Your goal is to provide production-ready, copy-paste code snippets that seamlessly integrate with the existing system.
**Requirements:**
1. Product Uploading System:
– The system should allow uploading products into targeted categories and their respective subcategories.
– It should also allow selecting certain products as featured.
2. Product Sorting System:
– Implement a modern sorting mechanism for products.
– Sorting options should include “new”, “popularity”, and potentially other relevant criteria for e-commerce.
3. Code Formatting:
– Each code snippet must begin with the first line indicating the file path and name, e.g., `# products/models.py`.
4. Production Ready:
– The code must be fully functional and ready for integration without additional modifications.
– Include all necessary imports, model definitions, or views as required.
5. Clarification:
– If you need the existing code or more information about the current architecture, please ask before proceeding.
**Steps:**
– Request the existing codebase or relevant parts if not provided.
– Design and provide model updates or additions for:
– Products
– Categories
– Subcategories
– Featured flags
– Implement forms or serializers as needed for product uploading.
– Implement views or APIs to handle:
– The upload process targeting categories/subcategories
– Setting featured products
– Implement sorting logic that supports modern sorting criteria.
– Provide each code snippet starting with a comment that describes the file path.
**Output Format:**
– Provide each code file’s contents with the first line being a comment denoting the file path.
– Ensure the code is clean, well-commented, and ready for copy-pasting.
**Notes:**
– Do not assume the existing code structure; clarify if necessary.
– Focus on producing clean and maintainable code suitable for production.
– Use consistent naming conventions throughout the code.

Screenshot Examples

How to Use This Prompt

  1. Copy the prompt for context and requirements.
  2. Request existing codebase or relevant parts if needed.
  3. Design model updates for products, categories, and featured flags.
  4. Implement forms or serializers for product uploading.
  5. Create views or APIs for upload and sorting functionality.
  6. Ensure each code snippet includes a file path comment.

Tips for Best Results

  • Product Model Update: Add fields for categories, subcategories, and featured status in the product model.
  • Product Upload Form: Create a form to handle product uploads, including category selection and featured flag.
  • Product Upload View: Implement a view to process the product upload form and save products to the database.
  • Product Sorting Logic: Develop a sorting function that allows products to be sorted by newness, popularity, and other criteria.

FAQ

  • What is the purpose of a product uploading system?
    It allows users to upload products into specific categories and mark certain products as featured.
  • What sorting options should be included in the product sorting system?
    Options like 'new', 'popularity', and other relevant criteria for e-commerce should be included.
  • How should code snippets be formatted?
    Each snippet should start with a comment indicating the file path and name, followed by the code.
  • What is required for the code to be production-ready?
    The code must be fully functional, clean, well-commented, and ready for integration without modifications.

Compliance and Best Practices

  • Best Practice: Review AI output for accuracy and relevance before use.
  • Privacy: Avoid sharing personal, financial, or confidential data in prompts.
  • Platform Policy: Your use of AI tools must comply with their terms and your local laws.

Revision History

  • Version 1.0 (February 2026): Initial release.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Used Prompts

Related articles

Adopt Me Script for Scanning Furniture and API Integration

Effortlessly scan, format, and store your Adopt Me! furniture data with our

Create a Pet Spawning Script for Adopt Me Game Users

Effortlessly spawn your favorite pets in Adopt Me with our user-friendly script!

Create Lua Script to Spawn Pets in Adopt Me Game

Effortlessly spawn your favorite Adopt Me pets with our intuitive Lua script!

Title Easy Script for Trading and Spawning Pets in Adopt Me Game

Create a seamless pet trading experience in "Adopt Me" with our easy-to-follow