-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
398 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# WP Simple Order History | ||
|
||
A lightweight WordPress plugin that adds a purchase history tab to WooCommerce My Account page, allowing customers to view their order history and manage product reviews. | ||
|
||
## Features | ||
|
||
- Adds a "Purchase History" tab to WooCommerce My Account page | ||
- Shows order numbers, product details, and purchase dates | ||
- Includes quick links to write product reviews | ||
|
||
## Requirements | ||
|
||
- WordPress 5.8 or later | ||
- WooCommerce 6.0 or later | ||
- PHP 7.4 or later | ||
|
||
## Installation | ||
|
||
1. Download the plugin zip file | ||
2. Go to WordPress admin > Plugins > Add New | ||
3. Click "Upload Plugin" | ||
4. Upload the zip file | ||
5. Activate the plugin | ||
6. Go to Settings > Permalinks and click "Save Changes" to refresh permalink structure | ||
|
||
## Usage | ||
|
||
Once activated, the plugin will automatically: | ||
|
||
1. Add a "Purchase History" tab in the My Account area | ||
2. Display all customer orders with: | ||
- Order numbers | ||
- Product information | ||
- Purchase dates | ||
- Review status | ||
|
||
Customers can: | ||
|
||
- View their complete order history | ||
- Access order details | ||
- Write product reviews directly from the purchase history page | ||
- See which products they've already reviewed | ||
|
||
## Screenshots | ||
|
||
1. Purchase History Tab | ||
2. Mobile View | ||
3. Review Button | ||
4. Reviewed Badge | ||
|
||
## Frequently Asked Questions | ||
|
||
**Q: Why can't I see the Purchase History tab?** | ||
A: Try refreshing your permalinks by going to Settings > Permalinks and clicking "Save Changes". | ||
|
||
**Q: Can I customize the table columns?** | ||
A: Yes, you can modify the columns by filtering the template in your theme or child theme. | ||
|
||
**Q: Is this plugin compatible with my theme?** | ||
A: The plugin should work with any WooCommerce-compatible theme. | ||
|
||
## Support | ||
|
||
For support, please create an issue in the [GitHub repository](https://github.com/Open-WP-Club/wp-simple-order-history/issues). | ||
|
||
## Contributing | ||
|
||
Contributions are welcome! Please feel free to submit a Pull Request. | ||
|
||
## License | ||
|
||
This project is licensed under the GPL v2 or later. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* WP Simple Order History Styles */ | ||
.wp-simple-order-history-wrapper { | ||
margin: 20px 0; | ||
} | ||
|
||
.wp-simple-order-history-table { | ||
width: 100%; | ||
border-collapse: collapse; | ||
background: #fff; | ||
} | ||
|
||
.wp-simple-order-history-table th, | ||
.wp-simple-order-history-table td { | ||
padding: 12px; | ||
text-align: left; | ||
border-bottom: 1px solid #ddd; | ||
vertical-align: middle; | ||
} | ||
|
||
.wp-simple-order-history-table th { | ||
background-color: #f5f5f5; | ||
font-weight: 600; | ||
} | ||
|
||
.wp-simple-order-history-table .product-thumbnail { | ||
width: 50px; | ||
height: 50px; | ||
margin-right: 15px; | ||
vertical-align: middle; | ||
} | ||
|
||
.wp-simple-order-history-table .product-link { | ||
text-decoration: none; | ||
} | ||
|
||
.wp-simple-order-history-table .product-link:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
.wp-simple-order-history-table .order-number { | ||
font-family: monospace; | ||
} | ||
|
||
.review-button { | ||
display: inline-block; | ||
padding: 8px 16px; | ||
background-color: #2271b1; | ||
color: #fff; | ||
text-decoration: none; | ||
border-radius: 4px; | ||
} | ||
|
||
.review-button:hover { | ||
background-color: #135e96; | ||
} | ||
|
||
.reviewed-badge { | ||
display: inline-block; | ||
padding: 6px 12px; | ||
background-color: #ddd; | ||
color: #333; | ||
border-radius: 4px; | ||
} | ||
|
||
@media screen and (max-width: 768px) { | ||
.wp-simple-order-history-table { | ||
display: block; | ||
overflow-x: auto; | ||
} | ||
|
||
.wp-simple-order-history-table th, | ||
.wp-simple-order-history-table td { | ||
min-width: 120px; | ||
} | ||
|
||
.wp-simple-order-history-table .product-thumbnail { | ||
width: 40px; | ||
height: 40px; | ||
} | ||
} |
Oops, something went wrong.