Logo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
joomla30:lovefactory:memberships [2017/04/07 08:04]
sorin
joomla30:lovefactory:memberships [2017/06/16 10:06]
sorin [Memberships]
Line 52: Line 52:
 \\ \\
 If you are experiencing issues with permissions,​ resave your memberships after enabling the **Update all sold memberships** option. If you are experiencing issues with permissions,​ resave your memberships after enabling the **Update all sold memberships** option.
 +
 \\ \\
 +
 +**(!)** **If you want to customize your memberships page, by adding more details regarding your offers**, go to **/​components/​com_lovefactory/​views/​memberships/​tmpl/​default.tpl** and look for:
 +\\
 +<​code>​ <table class="​memberships">​
 +
 +        <​thead>​
 +
 +        <tr>
 +
 +            <​td></​td>​
 +
 +            {foreach $items as $item}
 +
 +                <​th>​{$item->​title}</​th>​
 +
 +            {/foreach}
 +
 +        </tr>
 +
 +        </​thead>​
 +
 +
 +
 +        <​tbody>​
 +
 +        {foreach $features as $feature => $key}
 +
 +            <tr class="​{cycle values=",​alternate"​}">​
 +
 +                <th>
 +
 +                    <i class="​factory-icon icon-membership-feature-{$feature}"></​i>​
 +
 +                    {jtext _="​memberships_membership_features_"​|cat:​$feature}
 +
 +                </th>
 +
 +                {foreach $items as $item}
 +
 +                    <td>
 +
 +                        {if isset($item->​features[$feature])}
 +
 +                            {$item->​features[$feature]}
 +
 +                        {/if}
 +
 +                    </td>
 +
 +                {/foreach}
 +
 +            </tr>
 +
 +        {/foreach}
 +
 +        </​tbody>​
 +
 +    </​table>​ </​code>​
 +
 +\\
 +
 +\\
 +
 +To add your own text check out the next example:
 +
 +\\
 +
 +<​code>​
 +    <table class="​memberships">​
 +
 +        <​thead>​
 +
 +        <tr>
 +
 +            <​td></​td>​
 +
 +            {foreach $items as $item}
 +
 +                <​th>​{$item->​title}</​th>​
 +
 +            {/foreach}
 +
 +        </tr>
 +
 +        </​thead>​
 +
 +
 +
 +        <​tbody>​
 +
 +        {foreach $features as $feature => $key}
 +
 +            <tr class="​{cycle values=",​alternate"​}">​
 +
 +                <th>
 +
 +                    <i class="​factory-icon icon-membership-feature-{$feature}"></​i>​
 +
 +                    {jtext _="​memberships_membership_features_"​|cat:​$feature}
 +
 +                </th>
 +
 +                {foreach $items as $item}
 +
 +                    <td>
 +
 +                        {if isset($item->​features[$feature])}
 +
 +                            {$item->​features[$feature]}
 +
 +                        {/if}
 +
 +                    </td>
 +
 +                {/foreach}
 +
 +            </tr>
 +
 +        {/foreach}
 +
 +        <tr>
 +
 +            <​th>​FeatureName</​th>​
 +
 +            <​td>​Value for first membership</​td>​
 +
 +            <​td>​Value for second membership</​td>​
 +
 +            <​td>​Value for thrid membership</​td>​
 +
 +        </tr>
 +
 +        </​tbody>​
 +
 +    </​table>​
 +</​code>​
 ===== Prices ===== ===== Prices =====
 \\ \\