The Shop_Content trait provides functionality for managing various aspects of an e-commerce system within a content management system. It includes methods for handling products, orders, customers, and other shop-related entities.

Main Methods

products()

Manages product information.

Key Features
  • CRUD operations for products
  • Handles product details, categories, tags, and versions
  • Manages product availability and pricing

product_categories()

Manages product categories.

product_tags()

Manages product tags.

product_versions()

Manages different versions of products (e.g., colors, sizes).

orders()

Manages order information.

Key Features
  • Comprehensive order details including customer info, shipping, and payment status
  • Handles different order statuses

ordered_products()

Manages products within orders.

order_notes()

Manages notes associated with orders.

taxes()

Manages tax rates for products.

vouchers()

Manages discount vouchers and promo codes.

Key Features
  • Supports various voucher types (percentage, flat rate, product-specific)
  • Handles validity periods for vouchers

customers()

Manages customer information.

favorites()

Manages customer’s favorite products.

Common Features

  • All methods use a custom CRUD library (besc_crud) for database operations
  • Access is restricted to admin users
  • Each method sets up specific columns for listing and filtering data