WP Manifestindependent plugin directory
manifest / ecommerce / woocommerce-product-prices-descending

WooCommerce Product Prices Descending

Displays WooCommerce product variations sorted from highest to lowest price in the admin panel.

by Amirreza Shayesteh Far · github.com/amirrezashf/woocommerce-product-prices-descending · website

★ 0stars
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/amirrezashf/woocommerce-product-prices-descending/archive/refs/heads/main.zip

Displays WooCommerce product variations from highest to lowest price in the WordPress admin panel.

Description

WooCommerce Product Prices Descending adds a dedicated admin page for viewing published product variations sorted by their active price.

The page displays product names, variation attributes, prices, stock status, SKU, and product links.

Features

  • Sorts variations from highest to lowest price
  • Database-level price sorting
  • Paginated admin table
  • Shows regular and sale prices
  • Shows variation attributes and SKU
  • Shows stock status
  • Edit and view product links
  • Capability-based access
  • Single-file plugin

Requirements

  • PHP 7.4+
  • WordPress 6.0+
  • WooCommerce 7.0+

Installation

  1. Create a folder named woocommerce-product-prices-descending.
  2. Place woocommerce-product-prices-descending.php inside it.
  3. Upload the folder to:
wp-content/plugins/
  1. Activate the plugin from WordPress admin.

Usage / How It Works

After activation, open the گران به ارزان menu in the WordPress admin panel.

The plugin displays published WooCommerce variations sorted by the _price value from highest to lowest.

By default, 50 variations are displayed per page.

Data Storage

The plugin does not store any data or create custom database tables.

Development

Built with:

  • WordPress Coding Standards
  • Native WordPress APIs
  • WooCommerce product objects
  • Paginated WP_Query
  • Capability checks
  • Escaped outputs
  • Translation-ready strings
  • Lightweight single-file architecture

Filters

wc_ppd_required_capability

Changes the required admin capability.

add_filter(
    'wc_ppd_required_capability',
    static function () {
        return 'manage_options';
    }
);

wc_ppd_items_per_page

Changes the number of variations per page.

add_filter(
    'wc_ppd_items_per_page',
    static function () {
        return 100;
    }
);

License

GPL-3.0

Author

Amirreza Shayesteh Far

GitHub: https://github.com/amirrezashf


نمایش محصولات ووکامرس از گران به ارزان

نمایش variationهای محصولات ووکامرس بر اساس قیمت، از بیشترین به کمترین، در پنل مدیریت وردپرس.

توضیحات

افزونه WooCommerce Product Prices Descending یک صفحه اختصاصی به پنل مدیریت اضافه می‌کند و variationهای منتشرشده را بر اساس قیمت فعال مرتب می‌کند.

در این صفحه نام محصول، ویژگی‌های variation، قیمت، وضعیت موجودی، SKU و لینک‌های ویرایش و مشاهده محصول نمایش داده می‌شوند.

ویژگی‌ها

  • مرتب‌سازی variationها از گران به ارزان
  • مرتب‌سازی قیمت در database
  • جدول صفحه‌بندی‌شده
  • نمایش قیمت اصلی و فروش ویژه
  • نمایش ویژگی‌ها و SKU
  • نمایش وضعیت موجودی
  • لینک ویرایش و مشاهده محصول
  • کنترل دسترسی
  • معماری تک‌فایلی

نیازمندی‌ها

  • PHP 7.4+
  • WordPress 6.0+
  • WooCommerce 7.0+

نصب

  1. پوشه‌ای با نام woocommerce-product-prices-descending بسازید.
  2. فایل woocommerce-product-prices-descending.php را داخل آن قرار دهید.
  3. پوشه را در مسیر زیر آپلود کنید:
wp-content/plugins/
  1. افزونه را از پنل وردپرس فعال کنید.

نحوه استفاده

بعد از فعال‌سازی، منوی گران به ارزان را در پنل مدیریت باز کنید.

به‌صورت پیش‌فرض، در هر صفحه ۵۰ variation نمایش داده می‌شود.

ذخیره‌سازی داده

این افزونه هیچ داده‌ای ذخیره نمی‌کند و جدول اختصاصی نمی‌سازد.

توسعه

توسعه داده‌شده با:

  • WordPress Coding Standards
  • Native WordPress APIs
  • WooCommerce product objects
  • WP_Query صفحه‌بندی‌شده
  • بررسی capability
  • خروجی‌های escape شده
  • متن‌های آماده ترجمه
  • معماری تک‌فایلی

فیلترها

wc_ppd_required_capability

تغییر capability لازم برای مشاهده صفحه.

add_filter(
    'wc_ppd_required_capability',
    static function () {
        return 'manage_options';
    }
);

wc_ppd_items_per_page

تغییر تعداد variationها در هر صفحه.

add_filter(
    'wc_ppd_items_per_page',
    static function () {
        return 100;
    }
);

مجوز

GPL-3.0

نویسنده

Amirreza Shayesteh Far

GitHub: https://github.com/amirrezashf