Using Troly Templates

Updated on March 15, 2019

WordPress allows you to override the Troly plugin's default template style to accommodate your theme.

To do this, you can copy the files from the Troly plugin to an appropriate folder inside your theme.

Customise the 'Newsletter' form

You can alter the text shown to members at club sign up by using copying and amending the included newsletter.php file located inside the Troly plugin.

  1. Copy files located in the following folder:
    /wp-content/plugins/subscribility/includes/frontend/views/newsletter.php
  2. Paste the files in the appropriate folder in your theme:
    /wp-content/themes/your_theme/troly/newsletter.php

You can amend items on this page such as placeholder text to suit your locale.

Customise the 'Club Sign Up' form

You can alter the text shown to members at club sign up by using copying and amending the included registration_form.php file located inside the Troly plugin.

  1. Copy files located in the following folder:
    /wp-content/plugins/subscribility/includes/frontend/views/registration_form.php
  2. Paste the files in the appropriate folder in your theme:
    /wp-content/themes/your_theme/troly/registration_form.php

You can amend items on this page such as placeholder text to suit your locale.

Customise the 'Product Information' tab

You can alter how information is showed on your 'Product Information' tab on your website:

  1. Copy files located in the following folder:
    /wp-content/plugins/subscribility/includes/frontend/views/woocommerce/single-product/tabs/troly
  2. Paste the files in the appropriate folder in your theme:
    /wp-content/themes/your_theme/woocommerce/single-product/tabs/troly

Plugin updates and risks

Please note that future updates made to the Troly plugin may break the changes that you make to your theme. It is your responsibility to update your files and the plugin accordingly.

File Descriptions (Special Pages)

Name Purpose
newsletter.php Provides a fragment for you to allow customers to join a mailing list
registrations.php Lists the available clubs and provides a signup form for customer

File Descriptions (WooCommerce)

Name Purpose
awards.php Show the awards your product has received
categories.php Lists the categories assigned to your product
cellar_until.php Displays the value of the 'cellar until' field
description.php Displays the product description
matching_foods.php Lists the matching foods for the product
price.php Shows the price of the product

If you are signed in as member, we will automatically show member pricing.

Six-pack and twelve-pack (case) pricing will be shown if they are less than the current retail or member price of the product.

tags.php Lists the tags you've added to your product
tasting.php Displays the tasting notes assigned to the product
vintage.php Displays the vintage information (i.e. year) of the product

Was this article helpful?

Related Articles