You are here:  » shop overview


shop overview

Submitted by MarcoCH on Sat, 2020-10-17 10:41 in

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

Submitted by support on Mon, 2020-10-19 07:39

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

Submitted by MarcoCH on Mon, 2020-10-19 16:07

hello David

where can I find the file "commants.php" ?

regards
Marco

Submitted by support on Tue, 2020-10-20 07:43

Hi Marco,

There's no distribution file of that name - if may be part of a customisation or template...

Cheers,
David.
--
PriceTapestry.com