Trying to disable the "Item Name-" "Price" sort links found on the top of each category page and not having much luck. Thanks.
https://www.fuzztrip.com/index.php?m...=index&cPath=1
Trying to disable the "Item Name-" "Price" sort links found on the top of each category page and not having much luck. Thanks.
https://www.fuzztrip.com/index.php?m...=index&cPath=1
Are you using v157? or v157a?
In v1.5.7a on line 85 of /includes/modules/responsive_classic/product_listing.php
(line 62 in v157)
you'll see this line:
Put // at the beginning of that line to cause all those sort headings to not display.Code:$lc_text = zen_create_sort_heading($_GET['sort'], $col + 1, $lc_text);
Of course, if you're not using responsive_classic, be sure to edit the file in the correct directory name matching your template.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Oh snap. Ya, I answered the wrong question!
The column headings are set into the template data via the 5 lines after that section I mentioned.
To turn off all those column headings from being output at all, comment-out the following lines by adding the // as shown:
Code:if (($column_list[$col] != 'PRODUCT_LIST_IMAGE')) { // $lc_text = zen_create_sort_heading($_GET['sort'], $col + 1, $lc_text); } // $list_box_contents[0][$col] = array( // 'align' => $lc_align, // 'params' => 'class="productListing-heading"', // 'text' => $lc_text // );
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Hi, this is producing a page with no products (I have header/sidebox, etc). I tried first with the code I have and then compared the code you supplied and they seem to be the same.
This is mine.
And this is what I did.PHP Code:
if ( ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
$lc_text = zen_create_sort_heading($_GET['sort'], $col+1, $lc_text);
}
$list_box_contents[0][$col] = array('align' => $lc_align,
'params' => 'class="productListing-heading"',
'text' => $lc_text );
}
PHP Code:
if ( ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
// $lc_text = zen_create_sort_heading($_GET['sort'], $col+1, $lc_text);
}
//$list_box_contents[0][$col] = array(
//'align' => $lc_align,
//'params' => 'class="productListing-heading"',
//'text' => $lc_text
//);
Sorry, no it just got cut off when I copy/paste.
PHP Code:
if ( ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
$lc_text = zen_create_sort_heading($_GET['sort'], $col+1, $lc_text);
}
$list_box_contents[0][$col] = array(
'align' => $lc_align,
'params' => 'class="productListing-heading"',
'text' => $lc_text
);
}
A blank page usually means you've triggered an error. Consult your /logs/ directory to read the error details.
Blank Page troubleshooting
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
This is what I found, but I don't understand all of it...
I don't know if I was correct in referring to the page as "blank". Everything is there, except the products.HTML Code:#1 sizeof() called at [/includes/templates/responsive_clone/common/tpl_tabular_display.php:30] #2 require(/includes/templates/responsive_clone/common/tpl_tabular_display.php) called at [/includes/templates/responsive_clone/templates/tpl_modules_product_listing.php:52] #3 require(/includes/templates/responsive_clone/templates/tpl_modules_product_listing.php) called at [/includes/templates/responsive_clone/templates/tpl_index_product_list.php:109] #4 require(/includes/templates/responsive_clone/templates/tpl_index_product_list.php) called at [/includes/modules/pages/index/main_template_vars.php:232] #5 require(/includes/modules/pages/index/main_template_vars.php) called at [/includes/templates/responsive_clone/common/tpl_main_page.php:177] #6 require(/includes/templates/responsive_clone/common/tpl_main_page.php) called at [/index.php:94] --> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /includes/templates/responsive_clone/common/tpl_tabular_display.php on line 30.
The log message you posted suggests that the whole $list_box_contents array is damaged.
The last comment-out instructions I posted tested fine when using the ResponsiveClassic template. The changes I noted simply avoid populating the array with the header row entries (so that they aren't displayed ... which is what you requested).
If your template has made additional alterations to your customized product_listing.php module then it's possible you've introduce other errors.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks