ປລັກອິນນີ້ ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ. ມັນອາດຈະບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

Coupon Counter for EDD

ຄຳອະທິບາຍ

Coupon Counter for Easy Digital Downloads (EDD) is a simple but useful plugin that allows you to dynamically display the remaining or used coupon codes.

Display messages like:

  • Only 128 coupons remaining!
  • 34/200 discount codes used!

Shortcode

Easily display the count of remaining and used coupon codes using the shortcode below.

[cc-edd id="discount-id" format="countdown/count"]

Examples

Only [cc-edd id="293" format="countdown"] coupons left!

Will result in: Only xxx coupons left!

[cc-edd id="293" format="count"] discount codes used!

Will result in: xx/xxx discount codes used!

Advanced

There is a filter available for the “count” display format that allows you to change the separator icon as desired.

For example, you can change the “/” separator to “of”.

function prefix_custom_cc_edd_divider() {
    return ' of ';
}
add_filter( 'cc_edd_divider', 'prefix_custom_cc_edd_divider' );

Following the example above, this would result in:
xx of xxx discount codes used!

ພາບໜ້າຈໍ

  • Coupon Counter for EDD in action

ການຕິດຕັ້ງ

  1. Download the edd-coupon-counter.zip file to your computer.
  2. Unzip the file.
  3. Upload the edd-coupon-counter folder to your /wp-content/plugins/ directory.
  4. Activate the plugin through the Plugins menu in WordPress.

ຄຳຖາມທີ່ພົບເລື້ອຍ

Where do I get the discount ID from?

You can access a list of all your discounts in the Downloads > Discount Codes section. When hovering over the “Edit” link for one of your discounts, the URL will be displayed in the bottom left corner of your browser.

The URL will look something like this: https://yourwebsite.com/wp-admin/edit.php?post_type=download&page=edd-discounts&edd-action=edit_discount&discount=293.

You can locate the discount ID at the end of the URL. In this example, the ID is 293.

ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Coupon Counter for EDD” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

ແປ “Coupon Counter for EDD” ເປັນພາສາຂອງເຈົ້າ.

ສົນໃຈຮ່ວມພັດທະນາບໍ່?

ເບິ່ງລະຫັດ, ກວດເບິ່ງ ຄັງເກັບ SVN, ຫຼື ຕິດຕາມ ບັນທຶກການພັດທະນາ ຜ່ານ RSS.

ບັນທຶກການປ່ຽນແປງ

1.0.3 | November 30, 2023

  • Tested up to WordPress 6.4

1.0.2 | February 03, 2023

  • Minor wording tweaks

1.0.1 | December 07, 2022

  • Tested up to WordPress 6.1 & EDD 3.0

1.0 | May 02, 2020

  • Initial release