Skip to content

Template Overrides

Copy the template from the plugin’s templates/ directory into your child theme’s woocommerce/ directory. Keep the path inside templates/.

For example, to override the ticket purchase form, copy

wp-content/plugins/quantum-competitions-for-woocommerce/templates/single-product/add-to-cart/competition.php

to

wp-content/themes/your-child-theme/woocommerce/single-product/add-to-cart/competition.php
Path inside templates/ What it displays
single-product/add-to-cart/competition.php Ticket purchase form
single-product/add-to-cart/bulk-discount.php Bulk discount buttons
single-product/add-to-cart/answers.php Entry questions and answers
single-product/tabs/free-postal-entry.php Postal entry tab
single-product/tabs/lottery-instant-winners.php Instant prizes and winners
global/competition-progressbar.php Ticket sales progress
loop/competition-status-badge.php Competition status badge
myaccount/active-tickets.php Active tickets
myaccount/past-tickets.php Past tickets
myaccount/wins-prizes.php Main draw prizes
myaccount/wins-instant-wins.php Customer’s instant wins

After a plugin update, compare your override with the current plugin template and apply any changes it needs. For email templates, see Email Notifications.