Search text shown in search page heading
Location: Shortcut to Homepage / Free CubeCart 3 Mods / Search text shown in search page heading
Search text shown in search page heading

This is for CubeCart 3. 

Overview:

This mod will change the heading of the search results page to "This page shows you what we have found for SEARCH TEXT" where SEARCH TEXT is the text entered by the customer into the search box.

Files Affected:

  • includes/content/viewCat.inc.php

Instructions:

EDIT includes/content/viewCat.inc.php with a text editor.

(1) If you are using CubeCart 3.0.4 or LATER

FIND this line of code:

    $view_cat->assign("TXT_CAT_TITLE",$lang['front']['viewCat']['search_results']);

DELETE it and REPLACE with this block of code:

    // start mod: Search Page Title (http://www.beadberry.com/cubemods)
    $view_cat->assign("TXT_CAT_TITLE",$lang['front']['viewCat']['search_results']." {".treatGet($_GET['searchStr'])."}");

SAVE the file and upload to your server.

(2) If you are using CubeCart 3.0.3 or EARLIER

FIND this line of code:

    $view_cat->assign("TXT_CAT_TITLE",$lang['front']['viewCat']['search_results']);

DELETE it and REPLACE with this block of code:

    // mod: Search Page Title
    $view_cat->assign("TXT_CAT_TITLE",$lang['front']['viewCat']['search_results']." {".$_GET['searchStr']."}");

SAVE the file and upload to your server.

(Based on 2 Reviews)

  Add to Registry Add to Wish List Price: AU$0.00


  Related Products


Copyright © 2005 - 2011 Estelle WinterfloodVPS Hosting by Linode