Woocommerce-Dynamic-Coupon

所属分类:自动编程
开发工具:PHP
文件大小:2KB
下载次数:0
上传日期:2019-05-08 15:26:40
上 传 者sh-1993
说明:  用于编程生成WooCommerce自定义优惠券的PHP代码
(PHP Code For WooCommerce Custom Coupon Generation Programmatically)

文件列表:
functions.php (1963, 2019-05-08)
generate coupon (1963, 2019-05-08)

Kindly check "generate coupon" code. Description: The function named generateCoupon() is a code block that programmatically generates a coupon based on cart products * with this function you can generate a dynamic coupon * example: * coupon name: testcoupon * amount: will be calculated for every cart click dynamically * assume you have 15% discount for products in category A, so sale prices are calculated for those products * and you have 10% discount for products in category B, so sale prices are also calculated for those products * and you have some other categories or products with no discounts * but you also want that some special customers to use a coupon with 25% discount from the regular price of all products * you may edit this code to make better/smarter discount coupons Add those codes to functions.php file of your theme. Please be aware that if you are not using a child theme, after every update your customizations in your theme files will be deleted. ----- Source code will be updated as a plugin later.

近期下载者

相关文件


收藏者