Copy link to clipboard
Copied
I have created a links for categories using search. Basically when you click the link keywords are passed on to search and all the product matches the keywords show up in resultpage. I am looking for a way to print the name of the link as header in the result page. Any help is greatly appreciated
Here is the code for search and link
<?php
$categories = array(
array('search'=>'digital camera 10 mp' , 'link'=>'10 MP digital cameras'),
array('search'=>'digital camera SLR ', 'link'=>'Digital SLR cameras'),
array('search'=>'digital camcorders ', 'link'=>'Digital camcorders'),
array('search'=>'pocket camcorder OR "VIDEO CAMERA" ', 'link'=>'Pocket camcorders')
);
?>
<?php foreach ($categories as $category) { ?>
<a href="resultpage.php?psps_search=<?= urlencode($category['search']) ?>" class="catnavigation">
<?= $category['link'] ?>
</a> <?php } ?>
Copy link to clipboard
Copied
This is how I do it using the Cartweaver results.php page:
<h1><?php echo($pageTitle);?></h1>
The product category is the page title...
Copy link to clipboard
Copied
I don't use carweaver result.php. what is it ?
Thanks