WP Manifestindependent plugin directory
manifest / ecommerce / add-category-in-order

add category in order

Customizes the order page by categorizing products based otheir categories.

by hassan Ali Askari · github.com/hassan7303/add-category-in-order · website

11stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/hassan7303/add-category-in-order/archive/refs/heads/master.zip

Readme

Contributors Forks Stargazers MIT License LinkedIn Telegram Instagram GitHub Email

add category in order

Plugin Information

  • Plugin Name: add category in order
  • Description: Customizes the order page by categorizing products based otheir categories.
  • Version: 1.0.0
  • Author: Hassan Ali Askari
  • Author URI: Telegram
  • Plugin URI: GitHub
  • License: MIT
  • License URI: MIT License
  • Email: hassanali7303@gmail.com
  • Domain Path: Domain

Features

  • Adds a new "Order Categories" link to the WooCommerce "My Account" menu.
  • Displays a list of all product categories.
  • Shows products ordered by the customer in each category when a category is clicked.

Installation

  1. Download the plugin.
  2. Upload the plugin folder to the /wp-content/plugins/ directory.
  3. Activate the plugin through the 'Plugins' menu in WordPress.

Usage

  1. After activation, customers will see a new link called "Order Categories" in their "My Account" menu.
  2. Clicking on this link will display a list of all product categories.
  3. Clicking on a category will show the products ordered by the customer in that category.

Code Structure

  • add_custom_order_categories_link: Adds the "Order Categories" link to the "My Account" menu.
  • add_custom_order_categories_endpoint: Registers the order-categories endpoint.
  • display_custom_order_categories_page: Displays the order categories page and handles category-specific product listings.
  • get_products_in_category_ordered_by_user: Retrieves products ordered by the user in a specific category.

Requirements

  • WordPress 5.0 or higher.
  • WooCommerce 3.0 or higher.
  • PHP 7.4 or higher.

License

This plugin is released under the GPLv2 license. See the LICENSE file for details.

اضافه کردن لینک سفارشات به منوی حساب من در وردپرس

این پلاگین یک صفحه‌ی جدید به بخش "حساب کاربری" ووکامرس اضافه می‌کند که به مشتریان امکان می‌دهد محصولات سفارش‌داده‌شده را بر اساس دسته‌بندی‌های محصول مشاهده کنند.

ویژگی ها

یک لینک جدید به نام "دسته‌بندی سفارشات" به منوی "حساب کاربری" ووکامرس اضافه می‌کند.

لیست تمام دسته‌بندی‌های محصولات را نمایش می‌دهد.

با کلیک روی هر دسته‌بندی، محصولات سفارش‌داده‌شده توسط مشتری در آن دسته‌بندی نمایش داده می‌شود.

نصب

1- فایل‌های پلاگین را دانلود کنید و در پوشه‌ی wp-content/plugins/custom-order-categories قرار دهید.

2- به پیشخوان وردپرس بروید.

3- به مسیر پلاگین‌ها > پلاگین‌های نصب‌شده بروید.

4- پلاگین Custom Order Categories را فعال کنید.

5- به مسیر تنظیمات > پیوندهای یکتا بروید و روی ذخیره تغییرات کلیک کنید تا پیوندها به‌روزرسانی شوند.

نحوه‌ی استفاده

1- پس از فعال‌سازی، مشتریان یک لینک جدید به نام "دسته‌بندی سفارشات" در منوی "حساب کاربری" خود مشاهده می‌کنند.

2- با کلیک روی این لینک، لیست تمام دسته‌بندی‌های محصولات نمایش داده می‌شود.

3- با کلیک روی یک دسته‌بندی، محصولات سفارش‌داده‌شده توسط مشتری در آن دسته‌بندی نمایش داده می‌شود.

ساختار کد

  • add_custom_order_categories_link: لینک "دسته‌بندی سفارشات" را به منوی "حساب کاربری" اضافه می‌کند.
  • add_custom_order_categories_endpoint: endpoint جدید order-categories را ثبت می‌کند.
  • display_custom_order_categories_page: صفحه‌ی دسته‌بندی‌های سفارشات را نمایش می‌دهد و محصولات مربوط به هر دسته‌بندی را مدیریت می‌کند.
  • get_products_in_category_ordered_by_user: محصولات سفارش‌داده‌شده توسط کاربر در یک دسته‌بندی خاص را برمی‌گرداند.

نیازمندی‌ها

وردپرس نسخه ۵.۰ یا بالاتر.

ووکامرس نسخه ۳.۰ یا بالاتر.

نسخه PHP ۷.۴ یا بالاتر.

مجوز

این پلاگین تحت مجوز GPLv2 منتشر شده است. برای جزئیات بیشتر، فایل LICENSE را مشاهده کنید.

Read the full README on GitHub →

Releases

TagPublished
1.1 Jan 16, 2025
1.0 Jan 16, 2025

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.