hello David
In your shop overview, the listing is without A, B, C ...
http://www.webpricecheck.co.uk/merchant/
How can I have it like that?
regards
Marco
hello David
where can I find the file "commants.php" ?
regards
Marco
Hi Marco,
There's no distribution file of that name - if may be part of a customisation or template...
Cheers,
David.
--
PriceTapestry.com
Hello Marco,
Ooops, that version was supposed to be on my test server!
Here's the code, save this as a new file html/atoz_merchants.php
<?php
$atoz["itemsByLetter"] = array();
foreach($atoz["items"] as $item)
{
$atoz_letter = tapestry_mb_strtoupper(tapestry_mb_substr($item["name"],0,1));
$atoz["itemsByLetter"][$atoz_letter][] = $item;
}
?>
<div class='row pt_az'>
<div class='small-12 columns'>
<ul class='small-block-grid-1 medium-block-grid-3'>
<?php foreach($atoz["itemsByLetter"] as $atoz_letter => $atoz_items): ?>
<?php foreach($atoz_items as $atoz_item): ?>
<li>
<a href='<?php print $atoz_item["href"]; ?>'>
<?php if (isset($atoz_item["logo"])): ?>
<div class='pt_az_img_m'><img alt='<?php print htmlspecialchars($atoz_item["name"],ENT_QUOTES,$config_charset); ?>' src='<?php print $atoz_item["logo"]; ?>' /></div>
<?php else: ?>
<?php print $atoz_item["name"]; ?>
<?php endif; ?>
</a>
</li>
<?php endforeach; ?>
<?php endforeach; ?>
</ul>
</div>
</div>
Then edit merchants.php and look for the following code at line 43:
require("html/atoz.php");
...and REPLACE with:
require("html/atoz_merchants.php");
Cheers,
David.
--
PriceTapestry.com