Home › Forums › WoodMart support forum › About footer column 2 on the shop page
About footer column 2 on the shop page
- This topic has 11 replies, 2 voices, and was last updated 2 years, 2 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
April 21, 2022 at 1:56 pm #369916
VucciParticipantFrom a few months ago, the phenomenon that the footer column 2 of the shop page is not displayed has occurred. This is the red frame in the attached image.
A post is set for column 2.
The other pages are displayed without any problem, only the shop page is not displayed.
I left it as a temporary problem due to the version, but it seems that it is not a version problem because it can not be solved at all.
Please tell me the solution.Thank you.
Attachments:
You must be logged in to view attached files.April 21, 2022 at 3:31 pm #369943
Aizaz Imtiaz AwanKeymasterHello,
Please provide the admin panel login details of the website to check it myself and help you out accordingly.
Best Regards
April 21, 2022 at 3:54 pm #369952
VucciParticipantI look forward to working with you.
April 22, 2022 at 9:28 am #370078
Aizaz Imtiaz AwanKeymasterHello,
Please deactivate all the third party plugins, activate the parent theme then check back.
If the issue still occurs then leave all the third party plugins deactivated and tell me then we will troubleshoot with the theme plugins.
Best Regards
April 22, 2022 at 9:35 am #370082
VucciParticipantThank you for your confirmation.
Since I have never deactivated it, I have a question, but it is possible that the display will be corrupted by deactivating it, but when I re-enable it, I am worried that it will return to the original setting properly. ..
Is it okay to be inactive?April 22, 2022 at 1:56 pm #370162
Aizaz Imtiaz AwanKeymasterHello,
If you cannot deactivate all the third party plugins on the live website then create a staging site and provide the login details of the website.
Best Regards
April 23, 2022 at 5:37 am #370386
VucciParticipantWhen I was checking for a third-party plug-in, I found the cause.
I’ve entered some snippets in a plugin called code snippets, but when I disabled the code that puts out-of-stock products at the end, column 2 was displayed.
Below is the snippet php code I used to put the out-of-stock product to the end.
/**
* Order product collections by stock status, instock products first.
*/
class iWC_Orderby_Stock_Status
{public function __construct()
{
// Check if WooCommerce is active
if (in_array(‘woocommerce/woocommerce.php’, apply_filters(‘active_plugins’, get_option(‘active_plugins’)))) {
add_filter(‘posts_clauses’, array($this, ‘order_by_stock_status’), 2000);
}
}public function order_by_stock_status($posts_clauses)
{
global $wpdb;
// only change query on WooCommerce loops
if (is_woocommerce() && (is_shop() || is_product_category() || is_product_tag())) {
$posts_clauses[‘join’] .= ” INNER JOIN $wpdb->postmeta istockstatus ON ($wpdb->posts.ID = istockstatus.post_id) “;
$posts_clauses[‘orderby’] = ” istockstatus.meta_value ASC, ” . $posts_clauses[‘orderby’];
$posts_clauses[‘where’] = ” AND istockstatus.meta_key = ‘_stock_status’ AND istockstatus.meta_value <> ” ” . $posts_clauses[‘where’];
}
return $posts_clauses;
}
}new iWC_Orderby_Stock_Status;
Please tell me the php code to put the out-of-stock product at the end without interfering with column 2.
April 23, 2022 at 2:07 pm #370457
Aizaz Imtiaz AwanKeymasterHello,
As the issue is caused by the third party code. Sorry but we could not help with third party code snippets. It is out of our theme support scope.
Best Regards
April 23, 2022 at 2:20 pm #370460
VucciParticipantThank you for your reply.
I understand.
So, in another way we can support
Please tell me how to place out-of-stock items at the end of the shop page display method.I look forward to working with you.
April 23, 2022 at 2:54 pm #370480
Aizaz Imtiaz AwanKeymasterHello,
Sorry but there is no option in Theme Settings available for that.
It requires customizations and this is beyond our limitations and support policy.
Best Regards
April 23, 2022 at 2:56 pm #370481
VucciParticipantI understand.
We apologize for the inconvenience.If you have any questions, please support us.
Thank you very much.
April 23, 2022 at 2:58 pm #370482
Aizaz Imtiaz AwanKeymasterHello,
Thanks for understanding.
Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.
Have a wonderful day.
Topic Closed.
Best Regards. -
AuthorPosts
The topic ‘About footer column 2 on the shop page’ is closed to new replies.
- You must be logged in to create new topics. Login / Register