How to Update Product Gifts
This guide shows you how to update Product Gifts to the newest version.
Before You Update
Make a Backup First!
Always save a copy of your website before updating. Ask your hosting provider if you need help.
Easy Update (Recommended)
If you bought the plugin and activated your license:
- Go to Admin → Plugins
- Find Product Gifts in the list
- Click the Update button
- Wait for it to finish
- Go to Admin → Platform Administration → Cache management
- Click Clear all CMS cache
That's it! You're done.
Manual Update
If automatic update doesn't work:
- Download the latest version from CodeCanyon
- Extract the zip file
- Upload and replace files in
platform/plugins/ecommerce-product-gifts/ - Run migrations:bash
php artisan migrate - Publish assets:bash
php artisan vendor:publish --tag=cms-public --force - Clear cache:bash
php artisan cache:clear php artisan config:clear php artisan view:clear
After Updating
Quick Check
Make sure everything still works:
| Check This | How to Test |
|---|---|
| Admin panel | Go to Ecommerce > Product Gifts - does it load? |
| Gift rules | Can you see and edit existing rules? |
| Settings | Can you access the settings page? |
| Frontend | Add products to cart - do gifts appear? |
Test Gift Flow
If you want to be extra sure:
- Add products to cart (meet minimum value)
- Verify gift options appear
- Select a gift
- Proceed to checkout
- Confirm gift shows at checkout
- Complete a test order
- Verify gift is in the order
Test Different Scenarios
| Scenario | What to Check |
|---|---|
| Below minimum | Gifts should NOT appear |
| At minimum | Gifts SHOULD appear |
| Multiple tiers | Multiple gift sections should show |
| Product targeting | Gifts only show with targeted products |
Having Problems?
Page looks broken or old
Clear the cache:
- Go to Admin → Platform Administration → Cache management
- Click Clear all CMS cache
- Also clear your browser cache (Ctrl+Shift+Delete)
Gifts not appearing after update
- Clear all caches (admin + browser)
- Check rule status is "Published"
- Verify dates are valid
- Test in incognito mode
- Check browser console for errors
Database errors
If you see migration errors:
bash
# Run migrations manually
php artisan migrate
# If that fails, try:
php artisan migrate:status
# Force migrations if needed (careful!)
php artisan migrate --forceAssets not loading
If styles look wrong:
bash
# Re-publish assets
php artisan vendor:publish --tag=cms-public --force
# Clear view cache
php artisan view:clearSomething not working
- Check our Troubleshooting Guide
- See if there are known issues in Release Notes
- Contact support if you need help
Need to go back to old version
If the update caused problems and you have a backup:
- Contact your hosting provider or developer
- They can restore from your backup
Version Compatibility
| Plugin Version | Minimum Botble Version |
|---|---|
| 1.0.x | 7.6.4 |
Checking Your Version
To find your current version:
- Go to Admin → Plugins
- Find Product Gifts in the list
- Version number is shown next to the plugin name
Or check the file:
bash
cat platform/plugins/ecommerce-product-gifts/plugin.jsonUpdate Tips
Before Major Updates
- Full backup of database and files
- Test on staging if possible
- Read release notes for breaking changes
- Schedule downtime if needed
After Updates
- Test thoroughly before announcing to customers
- Monitor error logs for 24 hours
- Check customer feedback for issues
- Document any custom changes that may need reapplication
Maintaining Customizations
If you've customized the plugin:
- Note all customizations before updating
- Compare files after update
- Reapply customizations carefully
- Consider using theme overrides instead of direct edits
Getting Help
If you're stuck, contact support with:
- Your Product Gifts version number
- Your Botble CMS version
- What's not working
- Any error messages you see
- Screenshot of the problem (if possible)
Related
- Release Notes - See what changed
- Troubleshooting - Fix common problems
- FAQ - Common questions
