افزونه حرفهای برای ایجاد صفحه خرید سریع در فروشگاههای ووکامرس که امکان دسترسی آسان و سریع به محصولات را فراهم میکند.
- صفحه خرید سریع: نمایش تمامی محصولات در قالب لیست منظم
- دستهبندی هوشمند: نمایش محصولات بر اساس دستهبندی با امکان جمع و باز کردن
- افزودن سریع به سبد: افزودن محصولات به سبد خرید بدون رفرش صفحه
- نمایش متغیرها: پشتیبانی کامل از محصولات متغیر و ویژگیهای آنها
- پشتیبانی چندزبانه: پشتیبانی کامل از زبانهای فارسی و انگلیسی
- مدیریت زبان: سیستم پیشرفته برای مدیریت زبانهای مختلف
- تغییر زبان: امکان تغییر زبان برای کاربران
- پشتیبانی RTL: پشتیبانی کامل از زبانهای راست به چپ
- ترجمههای قابل ویرایش: امکان ویرایش و اضافه کردن ترجمههای جدید
- طراحی ریسپانسیو: سازگار با تمامی دستگاهها و اندازه صفحهها
- رنگبندی قابل تنظیم: امکان تنظیم رنگ دستهبندیها از پنل مدیریت
- انیمیشنهای نرم: تجربه کاربری بهتر با انیمیشنهای طراحی شده
- تمپذیری: قابلیت سفارشیسازی توسط طراحان
- پشتیبانی RTL: طراحی اختصاصی برای زبانهای راست به چپ
- پنل مدیریت کامل: کنترل تمامی تنظیمات از پنل ادمین وردپرس
- سیستم لایسنس: محافظت از افزونه با سیستم لایسنس پیشرفته
- پشتیبانی از shortcode: امکان قرار دادن در هر صفحه یا پست
- تنظیمات انعطافپذیر: کنترل نمایش محصولات ناموجود، تعداد محصولات و...
- مدیریت زبانها: تب اختصاصی برای مدیریت زبانها و ترجمهها
- WordPress 5.0 یا بالاتر
- WooCommerce 4.0 یا بالاتر
- PHP 7.4 یا بالاتر
- فایل ZIP افزونه را در بخش افزونههای وردپرس آپلود کنید
- افزونه را فعال کنید
- از منوی FastBuy Commerce در پنل ادمین تنظیمات را انجام دهید
- لایسنس خود را فعال کنید
- محصولات را در دسته خریدسریع قرار دهید
برای نمایش صفحه خرید سریع از shortcode زیر استفاده کنید:
[fastbuy_commerce]
[fastbuy_commerce title="خرید سریع" show_title="yes" category="fastbuy-commerce"]
title: عنوان صفحه (پیشفرض: "خرید سریع")show_title: نمایش عنوان (yes/no)category: اسلاگ دستهبندی مورد نظر
- دستهبندیهای فعال: نمایش/عدم نمایش دستهبندیها در بالای صفحه
- سبد خرید: نمایش/عدم نمایش دکمه مشاهده سبد خرید
- محصولات ناموجود: نمایش/عدم نمایش محصولات ناموجود
- حالت دستهبندیها: باز یا جمع شده بودن زیرمجموعهها
- حالت محصولات: باز یا جمع شده بودن لیست محصولات
- تعداد محصولات: حداکثر تعداد محصولات نمایش داده شده
- رنگ دستهبندی اصلی: رنگ پسزمینه دستهبندیهای اصلی
- رنگ زیردسته: رنگ پسزمینه زیردستهها
افزونه از تب مدیریت زبانها برای مدیریت کامل زبانها استفاده میکند:
- زبانهای پیشفرض: پشتیبانی از فارسی و انگلیسی
- آپلود زبان جدید: امکان آپلود فایلهای ترجمه (.po)
- تغییر زبان: امکان تغییر زبان فعال
- نمایش آمار: نمایش تعداد زبانها و وضعیت RTL
- پیشنمایش: مشاهده حالتهای مختلف تغییر زبان
- به تب مدیریت زبانها بروید
- برای افزودن زبان جدید فایل .po مربوطه را آپلود کنید
- کد زبان (مثل en_US) را وارد کنید
- زبان مورد نظر را فعال کنید
فایلهای ترجمه در مسیر languages/ قرار دارند:
fastbuy-commerce.pot: فایل template اصلیfastbuy-commerce-fa_IR.po/mo: ترجمه فارسیfastbuy-commerce-en_US.po/mo: ترجمه انگلیسی
fastbuy-commerce/
├── fastbuy-commerce.php # فایل اصلی افزونه
├── uninstall.php # مدیریت حذف افزونه
├── README.md # مستندات
├── includes/ # فایلهای PHP
│ ├── class-fastbuy-commerce-admin.php # کلاس مدیریت ادمین
│ ├── class-fastbuy-commerce-frontend.php # کلاس مدیریت frontend
│ ├── class-fastbuy-commerce-assets.php # مدیریت CSS/JS
│ ├── class-fastbuy-commerce-license.php # مدیریت لایسنس
│ ├── class-fastbuy-commerce-language-manager.php # مدیریت زبانها
│ └── functions.php # توابع کمکی
├── templates/ # قالبها
│ └── fast-buy.php # قالب اصلی خرید سریع
├── assets/ # فایلهای استاتیک
│ ├── css/
│ │ ├── style.css # استایلهای frontend
│ │ ├── admin.css # استایلهای admin
│ │ ├── rtl.css # استایلهای RTL
│ │ └── admin-rtl.css # استایلهای admin RTL
│ ├── js/
│ │ ├── frontend.js # JavaScript frontend
│ │ └── admin.js # JavaScript admin
│ └── images/ # تصاویر افزونه
└── languages/ # فایلهای ترجمه
├── fastbuy-commerce.pot # Template اصلی
├── fastbuy-commerce-fa_IR.po # ترجمه فارسی
├── fastbuy-commerce-fa_IR.mo # فایل باینری فارسی
├── fastbuy-commerce-en_US.po # ترجمه انگلیسی
└── fastbuy-commerce-en_US.mo # فایل باینری انگلیسی
برای سفارشیسازی ظاهر، فایل زیر را در تم خود کپی کنید:
yourtheme/fastbuy-commerce/fast-buy.php
// قبل از نمایش محصولات
do_action('fastbuy_commerce_before_products', $category);
// بعد از نمایش محصولات
do_action('fastbuy_commerce_after_products', $category);
// قبل از افزودن به سبد خرید
do_action('fastbuy_commerce_before_add_to_cart', $product_id);// فیلتر کردن محصولات
$products = apply_filters('fastbuy_commerce_products', $products, $category);
// تغییر تنظیمات
$settings = apply_filters('fastbuy_commerce_settings', $settings);
// سفارشیسازی HTML دکمه افزودن به سبد
$button_html = apply_filters('fastbuy_commerce_add_to_cart_button', $button_html, $product);کلاسهای CSS مهم برای سفارشیسازی:
.fastbuy-commerce-container /* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
/* کانتینر اصلی */
.fastbuy-commerce-category-headers /* هدر دستهبندیها */
.fast-buy .cat-thumbnail /* تصاویر دستهبندی */
.fast-buy .product-item /* آیتم محصول */
.fast-buy .product-price /* قیمت محصول */
.fastbuy-commerce-notice; /* اعلانها */- بررسی کنید محصولات در دسته "خریدسریع" قرار دارند
- وضعیت انتشار محصولات را بررسی کنید
- تنظیمات "نمایش محصولات ناموجود" را بررسی کنید
- بررسی کنید JavaScript فعال باشد
- کنفلیکت با سایر افزونهها را بررسی کنید
- کنسول مرورگر را برای خطاها بررسی کنید
- بررسی کنید تصاویر دستهبندیها تنظیم شده باشند
- مجوزهای فایلها را بررسی کنید
برای فعالسازی حالت دیباگ:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);- نسخه فعلی: 2.0.0
- تاریخ انتشار: 2025
- سازگاری WordPress: 5.0+
- سازگاری WooCommerce: 4.0+
- بازنویسی کامل کد با معماری OOP
- بهبود عملکرد و سرعت
- طراحی جدید و مدرن
- پشتیبانی از AJAX
- سیستم template جدید
- بهبود امنیت
- پشتیبانی بهتر از موبایل
- وبسایت: shahkochaki.ir
- ایمیل پشتیبانی: [email protected]
- مستندات: livedes.com/plugins/fastbuy-commerce
این افزونه تحت مجوز GPL v2 یا بالاتر منتشر شده است.
علی شاه کوچکی
- وبسایت: shahkochaki.ir
- گیتهاب: @shahkochaki
برای دریافت آخرین نسخه و پشتیبانی، لطفاً وبسایت رسمی را مطالعه کنید.
README.md. The file that you’re currently reading.- A
plugin-namedirectory that contains the source code - a fully executable WordPress plugin.
- The FastBuy Commerce is based on the Plugin API, Coding Standards, and Documentation Standards.
- All classes, functions, and variables are documented so that you know what you need to change.
- The FastBuy Commerce uses a strict file organization scheme that corresponds both to the WordPress Plugin Repository structure, and that makes it easy to organize the files that compose the plugin.
- The project includes a
.potfile as a starting point for internationalization.
The FastBuy Commerce can be installed directly into your plugins folder "as-is". You will want to rename it and the classes inside of it to fit your needs. For example, if your plugin is named 'example-me' then:
- rename files from
plugin-nametoexample-me - change
plugin_nametoexample_me - change
plugin-nametoexample-me - change
Plugin_NametoExample_Me - change
PLUGIN_NAME_toEXAMPLE_ME_
It's safe to activate the plugin at this point. Because the FastBuy Commerce has no real functionality there will be no menu items, meta boxes, or custom post types added until you write the code.
The original launch of this version of the FastBuy Commerce included the folder structure needed for using your plugin on WordPress.org. That folder structure has been moved to its own repo here: https://github.com/DevinVinson/Plugin-Directory-FastBuy Commerce
The WordPress Plugin FastBuy Commerce uses a variable to store the text domain used when internationalizing strings throughout the FastBuy Commerce. To take advantage of this method, there are tools that are recommended for providing correct, translatable files:
Any of the above tools should provide you with the proper tooling to internationalize the plugin.
The WordPress Plugin FastBuy Commerce is licensed under the GPL v2 or later.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
A copy of the license is included in the root of the plugin’s directory. The file is named LICENSE.
The WordPress Plugin FastBuy Commerce is licensed under the GPL v2 or later; however, if you opt to use third-party code that is not compatible with v2, then you may need to switch to using code that is GPL v3 compatible.
For reference, here's a discussion that covers the Apache 2.0 License used by Bootstrap.
Note that if you include your own classes, or third-party libraries, there are three locations in which said files may go:
plugin-name/includesis where functionality shared between the admin area and the public-facing parts of the site resideplugin-name/adminis for all admin-specific functionalityplugin-name/publicis for all public-facing functionality
Note that previous versions of the FastBuy Commerce did not include Plugin_Name_Loader but this class is used to register all filters and actions with WordPress.
The example code provided shows how to register your hooks with the Loader class.
The previous version of the WordPress Plugin FastBuy Commerce included support for a number of different projects such as the GitHub Updater.
These tools are not part of the core of this FastBuy Commerce, as I see them as being additions, forks, or other contributions to the FastBuy Commerce.
The same is true of using tools like Grunt, Composer, etc. These are all fantastic tools, but not everyone uses them. In order to keep the core FastBuy Commerce as light as possible, these features have been removed and will be introduced in other editions, and will be listed and maintained on the project homepage.
The WordPress Plugin FastBuy Commerce was started in 2011 by Tom McFarlin and has since included a number of great contributions. In March of 2015 the project was handed over by Tom to Devin Vinson.
The current version of the FastBuy Commerce was developed in conjunction with Josh Eaton, Ulrich Pogson, and Brad Vincent.
The homepage is based on a design as provided by HTML5Up, the FastBuy Commerce logo was designed by Rob McCaskill of BungaWeb, and the site favicon was created by Mickey Kay.
If you’re interested in writing any documentation or creating tutorials please let me know .