Template Overrides
The plugin supplies WooCommerce templates under templates/. Prefer a hook for a small change. Use a child-theme override when changing template structure.
Override a template
Section titled “Override a template”Copy the relevant plugin template to the matching path below your child theme’s woocommerce/ directory. For example:
Plugin: templates/single-product/winners.phpTheme: your-child-theme/woocommerce/single-product/winners.phpUseful template areas include:
| Directory | Output |
|---|---|
single-product/add-to-cart/ |
Purchase form, tickets, answers, quantity, discounts |
single-product/tabs/ |
History, instant prizes, winners, postal entry |
global/ |
Countdown, progress bar, participation, Lucky Dip |
myaccount/ |
Active and past tickets |
single-entry/ |
Entry details |
shortcodes/draw-results.php |
Draw results grid |
emails/ and emails/plain/ |
HTML and plain-text emails |
When Elementor Pro has a matching archive template, the plugin preserves that selection. Otherwise, the archive integration checks for woocommerce/archive-product-competition.php before falling back through theme and plugin archive templates.
Elementor entry templates use the separate cfw-entry-page location. The Entry Page Content widget renders the directory or content-single-entry.php for the requested competition. Preserve this route separation when customizing entry pages. See Elementor Theme Builder.
Keep overrides current
Section titled “Keep overrides current”Preserve hooks, form field names, nonce fields, product context, and escaping. After an update, compare overridden files with the plugin versions and test entry selection, checkout, winner output, and mobile layouts.
Do not edit plugin templates directly; updates can replace those changes.
