I am on OpenCart v. 3.0.2.0
My website is: https://customframingdesigns.com/frames/
Also, not sure if this is part of the same problem or not, but I am also not able to perform a backup through >Mantainence>Backup & Restore. I get a 500 error
Are you using the default refine search module? My search is different than yours (stock OpenCart) and I can filter any products101west wrote: ↑Wed Sep 11, 2019 3:02 amI am having trouble when filtering products. I believe I have everything set up correctly, but when I check a box within the filter section and then click the refine search at the bottom, it refreshes the page but doesn't actually filter nor show me anything different and my search parameter is deselected.
I am on OpenCart v. 3.0.2.0
My website is: https://customframingdesigns.com/frames/
Also, not sure if this is part of the same problem or not, but I am also not able to perform a backup through >Mantainence>Backup & Restore. I get a 500 error
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo
in catalog/view/theme/default/template/extension/module/filter.twig you have
Code: Select all
[code]<script type="text/javascript"><!--
$('#button-filter').on('click', function() {
filter = [];
$('input[name^=\'filter\']:checked').each(function(element) {
filter.push(this.value);
});
location = '{{ action }}&filter=' + filter.join(',');
});
//--></script>
which is fine with SEO url's disabled, crap if they are enabled as there is no "?" anymore so adding a "&" alone will not do.
just add https://customframingdesigns.com/frames/?filter=16,5 to you browser address bar and see that the filter actually works with the right address.
change it to:
Code: Select all
<script type="text/javascript"><!--
$('#button-filter').on('click', function() {
var xurl = new URL("{{ action }}");
filter = [];
$('input[name^=\'filter\']:checked').each(function(element) {
filter.push(this.value);
});
xurl.searchParams.append('filter', filter.join(','));
location = xurl;
return false;
});
//--></script>
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
1) You did not make the change right or you did not clear your theme cache as this is still in your html
Code: Select all
<div class="panel-footer text-right">
<button type="button" id="button-filter" class="btn btn-primary">Refine Search</button>
</div>
</div>
<script type="text/javascript"><!--
$('#button-filter').on('click', function() {
filter = [];
$('input[name^=\'filter\']:checked').each(function(element) {
filter.push(this.value);
});
location = 'http://customframingdesigns.com/frames/&filter=' + filter.join(',');
});
//--></script>
</aside>
Code: Select all
location = 'http://customframingdesigns.com/frames/&filter=' + filter.join(',');
PS. that fix-filter thing just changes how the query handles the filter groups (and vs. or) so has no relation here.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
I am not a programmer, but is it odd that this script is commented out?
I can't seem to figure out why it would be switching back and forth between http and https... unless that is a setting I have misdirected someone within OpenCart. This entire site is covered by a purchased SSL certificate.
Attachments
Screen Shot 2019-09-10 at 11.12.28 AM.png (75.84 KiB) Viewed 2468 times
in config.php
make sure both servers are https
Code: Select all
// HTTP
define('HTTP_SERVER', 'https://YOUR_DOMAIN');
// HTTPS
define('HTTPS_SERVER', 'https://YOUR_DOMAIN');
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Users browsing this forum: No registered users and 8 guests