Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Manufacturer Descriptions on Manufacturers Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 05-01-2010, 06:13 AM
 
annakyn annakyn is offline
 

Member
  
Join Date: Mar 2010
Posts: 18
 

Default Manufacturer Descriptions on Manufacturers Page

This is a really simple MOD and most people could probably figure it out in 5 mins but when I've been searching around for MODs, even the simple ones are handy!

The MOD changes the layout of manufacturers.php if you are using that feature. It displays a short description of the manufacturer next to it.

It pulls the description from the "META Description" tag used when adding a manufacturer, and displays it next to the Manufacturer label and wraps them in a table. This saves you from any editting of the database or labels. The META description should also be a reasonable length for this use.

You need to edit
Code:
skin1/modules/Manufacturers/customer_manufacturers_list.tpl

Change the main code from {capture] to {/capture} as follows:

Code:
{capture name=dialog} {include file="customer/main/navigation.tpl"} <table border="0" width="580" cellspacing="0" cellpadding="8" id="manufacturertable"> {foreach from=$manufacturers item=v} <tr> <td nowrap valign="top"><a href="manufacturers.php?manufacturerid={$v.manufacturerid}"> {$v.manufacturer|escape}</a></td> <td>{$v.meta_description}</td> </tr> {/foreach} </table> {include file="customer/main/navigation.tpl"} {/capture}

I'm using a fixed width template so have fixed the table width at 580.

My version is 4.3.

Hope thats useful to someone out there!!
__________________
X-Cart Pro 4.3.1

www.shetlandmarket.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:28 AM.

   

 
X-Cart forums © 2001-2020