Skip to content

Instantly share code, notes, and snippets.

View mdibrahimk48's full-sized avatar
🎯
Focusing

Md. Ibrahim Khalil mdibrahimk48

🎯
Focusing
View GitHub Profile
@mdibrahimk48
mdibrahimk48 / price_wise_view.php
Created December 26, 2023 14:57
Price wise or default sorting is not working for Woo Product Table
add_filter('wpt_query_args','wpt_custom_price_wise_sorting_fixer');
/**
* If anybody fond that, Price wise sorting is not working for your site
* Need to customize product table's args
* using filter hook: add_filter('wpt_query_args','wpt_custom_price_wise_sorting_fixer');
* ********************
* wpt_query_args
* Very strong filter for Woo Product Table
*
* @author Ibrahim Khalil <mdibrahimk48@gmail.com>
@mdibrahimk48
mdibrahimk48 / Remove Custom Taxonomy Link.php
Created November 20, 2023 14:56
If you created a custom taxonomy and it is showing in the table and you want to remove the link, then use the code below.
@mdibrahimk48
mdibrahimk48 / jacek.css
Created November 1, 2023 01:56
Jacek - Woo Product Table Issue
.select-wrap {
border: none !important;
}
#content .wpb_alert p:last-child, #content .wpb_text_column :last-child, #content .wpb_text_column p:last-child, .wpb_alert p:last-child, .wpb_text_column :last-child, .wpb_text_column p:last-child {
margin-bottom: 0px !important;
}
.wpt-wrap table tbody tr td a {
display: flex !important;
}
@mdibrahimk48
mdibrahimk48 / schools-information.html
Last active October 4, 2023 15:31
After selecting a specific city or province, the script displays the schools in that location along with their categories.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Schools Information</title>
<link rel="stylesheet" href="styles.css">
</head>
@mdibrahimk48
mdibrahimk48 / conditions-for-form.html
Created September 11, 2023 05:30
To display the selected data from a dropdown menu, you typically use a <select> element for the dropdown and another element, such as a <span>, to display the selected value. Here’s an example of how you can display the selected data correctly:
<label for="pick-up">Pick-up Location:</label>
<select id="pick-up" name="pick-up">
<option value="">Select an option</option>
<option value="Airport Ngurah Rai">Airport Ngurah Rai</option>
<option value="Amed">Amed</option>
<!-- Add more options here -->
</select>
Selected Pick-up Location: <span id="selected-pick-up"></span>
@mdibrahimk48
mdibrahimk48 / wpt_custom_category_colwise_sorting_on_load.php
Created August 3, 2023 06:31
This jQuery code will help you to sorting the category column (On Load) on Woo Product Table by CodeAstrology Team.
<?php
/**
* Author: Ibrahim Khalil
* Desc: Category Columnwise Sorting (On Load) on woo product table.
* Date: 03.08.2023
*/
add_action('wp_footer','wpt_custom_category_colwise_sorting_on_load');
function wpt_custom_category_colwise_sorting_on_load(){
@mdibrahimk48
mdibrahimk48 / mini_cart_title_include.php
Created July 23, 2023 05:35
Add an extra <h2> title before mini cart on woo product table
<?php
/**
* Author: Ibrahim Khalil
* Desc: Add an extra <h2> title before mini cart on woo product table
* Date: 23.07.2023
*/
function codeastrology_product_table_mini_cart_title_include()
{
?>
@mdibrahimk48
mdibrahimk48 / wpt_view_cart_text_change.php
Created July 23, 2023 05:12
Used to change view cart text.
<?php
/* To change product table view cart text*/
function codeastrology_view_cart_text( $text ){
$text = "Basket";
return $text;
}
add_filter('wpt_view_cart_text', 'codeastrology_view_cart_text');
@mdibrahimk48
mdibrahimk48 / wpt_footer-cart-for-only-login-user.php
Created July 23, 2023 04:34
Footer cart section disable for logout user. So user cannot able to see the prices from footer cart.
@mdibrahimk48
mdibrahimk48 / product_table_thumbnails_target_link_change.php
Last active July 16, 2023 04:22
The single product page will not opens a new page (by clicking on the thumbnails) every time with this JQuery snippet code for - WPT Plugin by CodeAstrology Team