mc12345678:
I thought I came across a store manager option (Update ALL Products Price Sorter) recently that allowed some sort of reset to be able to sort by displayed prices... Store manager is found in Admin screen, Tools, Store Manager. I also thought that I had done some research on this to see that there were some filters not on the problem site that are in a standard ZC site, which made me wonder what customization(s) were made to remove the additional filtering. But if you try the above "first", then maybe some more investigation is needed.
The only editing was to remove the other filters from the drop list --- on the 1.54 site, but on my own 1.39 site the filter drop menus are not altered at all so not sure what is going on. I did go to admin before posting again to change the entries for anything to do with filters then save from what they were set to to anything else and that did not change a thing in either store.
I will be going to 1.5.4 in the near future so maybe it might behave but right now it does not matter on my store but the other newer one I am working on -- she would like the entries to show in their proper order. My question is will this reset change the order everything is showing...the filters in question are in the all and new listings only. Will that only reset those to show them right in the drop menu chosen or will it reset them all to show by prices instead of product name like they are now.
This is what was done:
- To control the option in the sort by dropdown on new products and all products page: /public_html/includes/templates/template_default/templates/tpl_modules_listing_display_order.php
Find:
Can be controlled from line 31 to 37. Following is the code:
<option value="1" <?php echo ($disp_order == '1' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_NAME; ?></option>
<option value="2" <?php echo ($disp_order == '2' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_NAME_DESC; ?></option>
<option value="3" <?php echo ($disp_order == '3' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_PRICE; ?></option>
<option value="4" <?php echo ($disp_order == '4' ? 'selected="selected"' : ''); ?>><?php echo TEXT_INFO_SORT_BY_PRODUCTS_PRICE_DESC; ?></option>
**
options 5-7were deleted from file** <!--<option value="5" <?php //echo ($disp_order == '5' ? 'selected="selected"' : ''); ?>><?php //echo TEXT_INFO_SORT_BY_PRODUCTS_MODEL; ?></option>
<option value="6" <?php echo ($disp_order == '6' ? 'selected="selected"' : ''); ?>><?php //echo TEXT_INFO_SORT_BY_PRODUCTS_DATE_DESC; ?></option>
<option value="7" <?php echo ($disp_order == '7' ? 'selected="selected"' : ''); ?>><?php //echo TEXT_INFO_SORT_BY_PRODUCTS_DATE; ?></option>-->
- To control the options in the "Filter Results by" dropdown on all the category home pages: /public_html/includes/modules/custom/product_listing_alpha_sorter.php ---comment out lines in red--but I had to remove them totally
I think these are for removing the numerical sorter from the other category pages and leave only the alpha sorter.
**Find:
**// build alpha sorter dropdown
if (PRODUCT_LIST_ALPHA_SORTER == 'true') {
if ((int)$_GET['alpha_filter_id'] == 0) {
$letters_list[] = array('id' => '0', 'text' => TEXT_PRODUCTS_LISTING_ALPHA_SORTER_NAMES);
} else {
$letters_list[] = array('id' => '0', 'text' => TEXT_PRODUCTS_LISTING_ALPHA_SORTER_NAMES_RESET);
}
for ($i=65; $i<91; $i++) {
$letters_list[] = array('id' => sprintf('%02d', $i), 'text' => chr($i) );
}
for ($i=48; $i<58; $i++) {
$letters_list[] = array('id' => sprintf('%02d', $i), 'text' => chr($i) );
}