{"id":20276480,"url":"https://github.com/designengineered/woocom_coupon_expansion","last_synced_at":"2025-12-01T03:03:57.617Z","repository":{"id":206305819,"uuid":"716322262","full_name":"designengineered/woocom_coupon_expansion","owner":"designengineered","description":"This repository contains the WooCommerce Custom Coupon plugin. It adds a feature to apply a percentage discount to the most expensive item in the cart. The plugin also displays a custom message when a coupon is applied.","archived":false,"fork":false,"pushed_at":"2023-11-09T20:28:22.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T06:44:08.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/designengineered.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-08T22:28:42.000Z","updated_at":"2023-11-08T22:42:16.000Z","dependencies_parsed_at":"2023-11-08T23:32:15.787Z","dependency_job_id":"36cd45b8-b699-44a6-9f28-bccf7e923e24","html_url":"https://github.com/designengineered/woocom_coupon_expansion","commit_stats":null,"previous_names":["laztaxon/woocom_coupon_expansion","designengineered/woocom_coupon_expansion"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/designengineered%2Fwoocom_coupon_expansion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/designengineered%2Fwoocom_coupon_expansion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/designengineered%2Fwoocom_coupon_expansion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/designengineered%2Fwoocom_coupon_expansion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/designengineered","download_url":"https://codeload.github.com/designengineered/woocom_coupon_expansion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241768287,"owners_count":20017116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T13:14:06.350Z","updated_at":"2025-12-01T03:03:57.611Z","avatar_url":"https://github.com/designengineered.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WooCommerce Custom Coupon Plugin\n\nThis plugin adds a custom coupon functionality to WooCommerce. The plugin provides a percentage discount to the most expensive item in the user's cart.\n\n## Features\n\n- Adds a custom field for coupon percentage in the WooCommerce coupon edit form.\n- Saves the custom field value when the coupon is saved.\n- Applies a discount to the most expensive product in the cart when the cart page is loaded. The discount is calculated based on the custom coupon percentage.\n- Displays a custom message in a popup when a coupon is applied. The message informs the user about the percentage discount applied to the most expensive item in their cart.\n- The popup message can be closed by the user or will automatically fade out after 2 seconds.\n\n## JavaScript Functionality\n\nThe plugin uses JavaScript (jQuery) to handle the popup message:\n\n- The popup message is displayed when a coupon is applied.\n- The popup can be closed by the user by clicking on the close button.\n- The popup will automatically fade out after 2 seconds.\n\n## CSS Styling\n\nThe plugin includes a CSS file (`coupon_style.css`) that styles the popup message. The CSS file is enqueued in the main PHP file (`coupon_main.php`).\n\n\n### Usage\n\n1. Install and activate the plugin.\n2. When creating a coupon in WooCommerce, you will see a new field for 'Coupon Percentage'. Enter the desired discount percentage here.\n3. When a customer applies the coupon, the discount will be applied to the most expensive item in their cart and a custom message will be displayed.\n\n### Author\n\nCello Rondon (LazTaxon)\n[http://www.cello.design](http://www.cello.design)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesignengineered%2Fwoocom_coupon_expansion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdesignengineered%2Fwoocom_coupon_expansion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesignengineered%2Fwoocom_coupon_expansion/lists"}