You are here:  » Button shop, category and brand


Button shop, category and brand

Submitted by wesse249 on Thu, 2015-10-08 07:23 in

Hello David,

Under searchbox you see "search for shop, category and brand".

- Where can i remove the link shop.
- And is it possible to make buttons for category and brand and center these under the searhbox.

On my productpage i have a nice green button with the text go to shop with this code:

<td class='pt_pr_visit'><a class='button tiny radius success' href='<?php print tapestry_buyURL($product_main); ?>'>Meer informatie</a></td>

Is it possible to have the same buttons for above?

Thank you.

Submitted by support on Thu, 2015-10-08 07:41

Hi,

You'll find the text / links in html/searchform.php, look for the following code beginning at line 29:

  <?php print translate("Search or browse by"); ?>
  <a href='<?php print $config_baseHREF.($config_useRewrite?"merchant/":"merchants.php"); ?>'><?php print translate("merchant"); ?></a>,
  <a href='<?php print $config_baseHREF.($config_useRewrite?"category/":"categories.php"); ?>'><?php print translate("category"); ?></a>
  <?php print translate("or"); ?>
  <a href='<?php print $config_baseHREF.($config_useRewrite?"brand/":"brands.php"); ?>'><?php print translate("brand"); ?></a>

So to remove the Merchant A-Z, and use the same green button style links as you have elsewhere, have a go with:

  <div style='text-align:center;'>
  <a class='button tiny radius success' href='<?php print $config_baseHREF.($config_useRewrite?"category/":"categories.php"); ?>'><?php print translate("Category"); ?></a>
  <a class='button tiny radius success' href='<?php print $config_baseHREF.($config_useRewrite?"brand/":"brands.php"); ?>'><?php print translate("Brand"); ?></a>
  </div>

Of course, rather than use a style tag to centre the buttons in the DIV, you could assign a class instead and add text-align: center; and any other styling you would like for the buttons in your html/default.css.

Cheers,
David.
--
PriceTapestry.com