Webshop-12-Staging-Sandbox-Deployment
Appearance
12 - Staging Sandbox Deployment
Parent: [Webshop-Index Webshop Index] Previous: [Webshop-11-Feature-Plan-System-Builder 11 - Feature Plan: System Builder] Next: [Webshop-13-Discount-Visibility-and-Urgency 13 - Discount Visibility & Urgency] Source: Comfac Webshop Wiki - Chapter 12
Purpose
Create an isolated environment to: 1. Clone production ERPNext instance 2. Install comfac-webshop fork 3. Validate seamless replacement of existing webshop 4. Test new features without affecting production
Phase 0: Baseline Validation
Objective: Verify comfac-webshop fork runs identically to base webshop
Steps
- 1. Clone Production Instance
bashbench --site production-site backupBackup production site
bench --site staging-site restore production-site_backup.sqlCreate staging site from backup
#### 2. Install Forkbashbench get-app https://github.com/Comfac-Global-Group/comfac-webshop.gitGet comfac-webshop
bench --site staging-site install-app webshopInstall on staging site
#### 3. Validation Checklist
| Test | Pass Criteria |
| Site loads | No 500 errors on homepage |
| Product listing | /all-products shows items |
| Product pages | Individual items render correctly |
| Add to cart | Items added to cart successfully |
| Cart page | /cart displays items with correct totals |
| Checkout flow | Place order creates Sales Order |
| Payment | Payment Request generates correctly |
| Wishlist | Add/remove items works |
| Search | Product search returns results |
| Filters | Category/attribute filters work |
| Variant selector | Template items show configurator |
Phase 1: Feature Development
Steps
bashbench --site staging-site backupBackup Phase 0 staging
bench --site experiment-site restore staging-site_backup.sqlRestore to experiment site
#### 2. Implement Features - Implement discount visibility (Chapter 10) - Test each scenario thoroughly - Implement System Builder (Phase 1) #### 3. Test Data Setup - Create sample products with pricing rules - Set up coupon codes - Create offer deadlines - Build system builder templatesCriteria for merge: - All Phase 0 validation checks pass - Phase 1 feature tests complete - No regressions from base webshop - Documentation updated - Rollback plan preparedPhase 2: Production Merge
Navigation: [Webshop-Index Webshop Index] | [Webshop-11-Feature-Plan-System-Builder Previous: 11 - System Builder] | [Webshop-13-Discount-Visibility-and-Urgency Next: 13 - Discount Visibility]