How to add different custom text at different Category of X-cart 4.7?

Edit /skin/reboot/customer/main/subcategories.tpl, add the following codes at the proper place:

{if $current_category.categoryid eq “1”}
<div class=”details-summary-accordion” itemscope itemtype=”https://schema.org/FAQPage”>
<details class=”my-1″ itemscope itemprop=”mainEntity” itemtype=”https://schema.org/Question”>
<summary class=”h4 bg-light border rounded px-3 py-2″ itemprop=”name”>How to Order the Best Fashion Safety Glasses?</summary>
<div itemscope itemprop=”acceptedAnswer” itemtype=”https://schema.org/Answer”>
<p itemprop=”text”>When you look for a new pair of eyeglasses, chances are that you are looking for something fashionable and effective. The standards of modern fashion <a href=”https://www.opticalusa.com/how-to-order-the-best-fashion-safety-glasses/”>safety glasses</a> are equally high and are very appealing to a broad section of buyers. If you are planning on buying protective eyewear, many have been endorsed by celebrities that you will want to check out in closer detail.</p>
</div>
</details>

<details class=”my-1″ itemscope itemprop=”mainEntity” itemtype=”https://schema.org/Question”>
<summary class=”h4 bg-light border rounded px-3 py-2″ itemprop=”name”>What Do You Know About Clear Safety Glasses?</summary>
<div itemscope itemprop=”acceptedAnswer” itemtype=”https://schema.org/Answer”>
<p itemprop=”text”>Clear <a href=”https://www.opticalusa.com/what-do-you-know-about-clear-safety-glasses/”>safety glasses</a> are a very common type that is widely used for eye protection. The nice thing about using clear lenses is they allow the most amount of light to enter through the lenses. Thus, they are widely used in every different type of lighting condition, especially indoors. They can also be used in the outdoors as well as in low light conditions. They are extremely versatile and a wonderful option if you want to truly protect your eyes to the fullest.</p>
</div>
</details>
</div>
{/if}

{if $current_category.categoryid eq “3”}
<div class=”details-summary-accordion” itemscope itemtype=”https://schema.org/FAQPage”>
<details class=”my-1″ itemscope itemprop=”mainEntity” itemtype=”https://schema.org/Question”>
<summary class=”h4 bg-light border rounded px-3 py-2″ itemprop=”name”>How to Buy the Best Prescription Sunglasses?</summary>
<div itemscope itemprop=”acceptedAnswer” itemtype=”https://schema.org/Answer”>
<p itemprop=”text”>If you want to buy the best prescription sunglasses, you need to get hold of some information that can help you make the right choices. There are many things to consider that can help you identify the best pair. Keep in mind that you need to know which lens and frame materials are the best as they can make a considerable difference on the overall quality of your sunglasses.. Read more: <a href=”https://www.opticalusa.com/how-to-buy-the-best-prescription-sunglasses/”>How to Buy the Best Prescription Sunglasses?</a></p>
</div>
</details>
</div>
{/if}
{if $current_category.categoryid eq “4”}
<div class=”details-summary-accordion” itemscope itemtype=”https://schema.org/FAQPage”>
<details class=”my-1″ itemscope itemprop=”mainEntity” itemtype=”https://schema.org/Question”>
<summary class=”h4 bg-light border rounded px-3 py-2″ itemprop=”name”>Why You Must Buy Prescription Glasses Online?</summary>
<div itemscope itemprop=”acceptedAnswer” itemtype=”https://schema.org/Answer”>
<p itemprop=”text”>Most of us do not want to spend hundreds of dollars on a new pair of <a href=”https://www.opticalusa.com/why-you-must-buy-prescription-glasses-online/”>prescription glasses</a>. There is always the fear that a new pair that cost a lot of money could be scratched or lost. It is a good idea to look for a better alternative in the form of buying prescription glasses online. Here are some compelling reasons to shop online for your next pair of prescription eyewear.</p>
</div>
</details>

<details class=”my-1″ itemscope itemprop=”mainEntity” itemtype=”https://schema.org/Question”>
<summary class=”h4 bg-light border rounded px-3 py-2″ itemprop=”name”>Why You Should Buy Discount Prescription Glasses Online?</summary>
<div itemscope itemprop=”acceptedAnswer” itemtype=”https://schema.org/Answer”>
<p itemprop=”text”>A new pair of <a href=”https://www.opticalusa.com/why-you-should-buy-discount-prescription-glasses-online/”>discount prescription glasses</a> bought online can not only update your appearance but also fix your vision. When you shop online, not only do you enjoy great convenience but also you can shop at any time of the day or night and from the comfort of your home. What’s more, you get to choose from a much wider selection of frames and the entire buying process is very simple and straightforward.</p>
</div>
</details>
</div>
{/if}