Author Topic: ?pop=0 (solved by reformatting the URL)  (Read 31882 times)

stinga

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 872
    • Squangle ltd
Re: ?pop=0 (solved by reformatting the URL)
« Reply #45 on: February 28, 2011, 13:32:57 pm »
Didn't I say to do that? :-) Or was it someone else?
Stinga.
614869 products in 747 categories with 15749 products in 1 category.
                                             Document Complete   Fully Loaded
                Load Time First Byte Start Render   Time      Requests      Time      Requests
First View     2.470s     0.635s     1.276s          2.470s       31            2.470s      31
Repeat View  1.064s     0.561s     1.100s          1.064s       4             1.221s       4

markvding

  • Beginner
  • *
  • Posts: 3
Re: ?pop=0 (solved by reformatting the URL)
« Reply #46 on: October 14, 2013, 10:46:05 am »
This is what I did. I do like Google to spider and crawl my site so I wasn't happy with the "nofollow" option. You can change the showPathway stuff to the following in your product_detail templates:

Code: [Select]
<?php 
if( $this->get_cfg'showPathway' )) {
echo "<div class=\"pathway\">$navigation_pathway</div>";

if( 
$this->get_cfg'product_navigation')) {


$search_text $previous_product_url;
$look_for "?pop=0";
$change_to "";
$prev_url str_replace($look_for$change_to$search_text);

$search_text2 $next_product_url;
$look_for2 "?pop=0";
$change_to2 "";
$next_url str_replace($look_for2$change_to2$search_text2);


if( !empty( $previous_product )) {
echo '<a class="previous_page" href="'.$prev_url.'">'.shopMakeHtmlSafe($previous_product['product_name']).'</a>';
}
if( !empty( $next_product )) {
echo '<a class="next_page" href="'.$next__url.'">'.shopMakeHtmlSafe($next_product['product_name']).'</a>';
}
}
?>

[code]