-
-
The products page now outputs all products in one-by-row (one long column), instead of four-by-row as it was before the update.
-
-
Sorry, but it doesn’t seem like a WooCommerce that is referred in the other topic. The issue only appeared after the update to the Specular theme. (Woo Commerce wasn’t updated at that time).
Furthermore: if I replace content-product.php from the previous version of the Specular theme it seems to be working fine (together with the visual glitches from the old version, which seems to be fixed in the new one). The new version screws it up to show all in one column.
Again, after a quick inspect of the html on that page it seems that *all* products on the page have CSS class ‘first’ assigned to them (usually only first product should have it).
-
Hello,
Please perform the edits in file woocommerce/content-product.php like stated in the topic i send you.
It will fix the product order. It is a tested solution!Best regards!
-
“Tested”, — seriously? :) — the lines 43-45 in the content-product.php that came with the latest update of the Specular theme are *exactly* the same as the “recommended fix” lines in the topic you sent. Here, check yourself:
// Extra post classes
$classes = array();
if ( 0 === ( $woocommerce_loop[‘loop’] ) % $woocommerce_loop[‘columns’] || 1 === $woocommerce_loop[‘columns’] ) {
$classes[] = ‘first’;
}if ( 0 === ($woocommerce_loop[‘loop’] + 1) % $woocommerce_loop[‘columns’] ) {
$classes[] = ‘last’;
} -
Hello,
This happened due to the latest woocommerce update. So we updated theme, including the fix for it. Supposing that you did not update theme, i gave the instructions to fix it. That is why the lines are the same.
If you do have the latest version and still having the problem, then something else may be causing it.
Please send us your wp credentials in a private reply. So we can give it a closer look.Best regards!
-
And, I I wrote in my post:
Sorry, but it doesn’t seem like a WooCommerce that is referred in the other topic. The issue only appeared after the update to the Specular theme. (Woo Commerce wasn’t updated at that time).
Furthermore: if I replace content-product.php from the previous version of the Specular theme it seems to be working fine…
Credentials are following in the next post
-
-
-
Hello,
I need admin credentilas to access the theme’s files, or you can give me your ftp account.
These are the lines to be replaced:
// Increase loop count //$woocommerce_loop['loop']++; // Extra post classes $classes = array(); if ( 0 === ( $woocommerce_loop['loop'] ) % $woocommerce_loop['columns'] || 1 === $woocommerce_loop['columns'] ) { $classes[] = 'first'; } if ( 0 === ($woocommerce_loop['loop'] + 1) % $woocommerce_loop['columns'] ) { $classes[] = 'last'; }Make sure this line
//$woocommerce_loop[‘loop’]++;
is commented.
You can edit your topics. (https://support.codeless.co/forums/reply/16795/edit/)
Best regards!
-
The line is commented, as shown. The issue still persists. Using that file from the previous version removes the issue (but brings back visual glitches from the previous version). This is a live production site, and I would really appreciate an update fixing this as soon as possible.
-
Hello,
We need your admin wp or ftp credentials to see this issue further. Send them in a private reply (make sure you check the button –>Set as private reply before sending it to protect your information). Your information is safe with us.
Regards!
-
You must be logged in to reply to this topic.