Template Overrides
Quantum Competitions follows standard WooCommerce templating conventions, allowing developers to override any frontend template without modifying plugin core files.
Template Hierarchy
Section titled “Template Hierarchy”All frontend templates are located within the plugin directory:
quantum-competitions-for-woocommerce/templates/To override a template, copy the file from the plugin folder into your active child theme directory:
your-theme/quantum-competitions-for-woocommerce/[template-name].phpKey Template Files
Section titled “Key Template Files”| Template File | Purpose |
|---|---|
single-product/add-to-cart/lottery.php |
Single product competition buy form, countdown, and inputs |
single-product/competition-progress.php |
Progress bar and ticket statistics |
single-product/competition-question.php |
Skill question and multiple-choice answers layout |
single-product/competition-badges.php |
Status badges overlay |
myaccount/my-competitions.php |
My Account user ticket history and status |
instant-wins/instant-winners-tab.php |
Instant win prize list and claim status |
Upgrade Safety
Section titled “Upgrade Safety”Template files modified inside your child theme will never be overwritten when the Quantum Competitions plugin is updated.