Repository navigation
Editing Tabs
###Note: This information only applies to 2.1 and below. Web Store 2.5 has tab editing built-in.
Changing the tab labels can be done by making a small change to the template that you're using by editing the HTML. All templates are under a /templates folder, and then under there is the template sets, one of which will be the one you're using for your site ("deluxe" is the most common, but check under Tools->eCommerce->Admin Panel->Configuration->Appearance->Store Template if you are not sure which one you are using).
To begin, you will need to connect to your site with FTP (SFTP if you are a hosted client. Contact support@lightspeedretail.com for your SFTP connection information if you do not have this.) When you are viewing your files, find a folder called /templates and then your template set folder you're currently using. Within this folder you will find a file called index.tpl.php that you will be editing.
(Some FTP programs such as Transmit will let you right-click on the file and edit directly. Or you may have to download the file locally, make your changes, then reupload to the site.)
There is a set of lines (starting around line 152) that read:
<div id="nav" class="rounded-top">
<ul>
<li id="products"><a href="index.php"></a></li>
<li id="newProducts"><a href="<?= _xls_custom_page_url('new') ?>"><?php _xt('New Products'); ?></a></li>
<li id="topProducts"><a href="<?= _xls_custom_page_url('top') ?>"><?php _xt('Top Products'); ?></a></li>
<li id="promotions"><a href="<?= _xls_custom_page_url('promo') ?>"><?php _xt('Promotions'); ?></a></li>
<li id="contact"><a href="index.php?xlspg=contact_us"><?php _xt('Contact'); ?></a></li>
<li id="search"><?php $this->searchPnl->Render(); ?></li>
</ul>
</div>
These are your tabs. You can change any of these by changing the word inside the xls_custom_page_url command to match your "key" in your custom pages, and then the _xt() command can be changed to show the actual label that appears on the tab. Please note that you can leave the id= string as-is in the beginning of each line these codes correspond to CSS formatting and changing them may have adverse effects on display.
(Note older templates may use _p() instead of _xt() for string printing)
To get one of the tabs to show products in a grid format, you can change it so that it uses the search mechanism instead of a custom page. The trade-off is that you won't be able to add additional information above the product listings like you can in a Custom Page. To get the "grid" of products using a certain keyword, start by running a searching yourself that shows you the products.
For example, if you have added the keyword "specialdeals" to certain Product Cards, then simply search for this word in your searchbox. After it brings up the products, look at your URL, which will probably be something like:
http://www.webstore.site/index.php?search=specialdeals
Copy the url beginning with /index and change your A HREF in your tabs to use this URL (per the above instructions). The resulting line will look something like:
<li id="newProducts"><a href="/index.php?search=specialdeals"><?php _xt('Special Deals'); ?></a></li>
Note that we've left the "id" alone in the particular tab we're using. Just change the HREF portion and the xt() portion to make your this tab work properly.