This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('click', '.quickview', function(){ | |
let checkExist = setInterval(function() { | |
if ($('.input-text.qty').length) { | |
// custom function to be executed | |
wcmmq_load_data(); | |
// clear interval after found the expected element | |
clearInterval(checkExist); | |
} | |
}, 100); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); | |
if( !function_exists('prettify') ){ | |
function prettify( $arg, $username = 'admin' ){ | |
include_once(ABSPATH . 'wp-includes/pluggable.php'); | |
$current_user = wp_get_current_user(); | |
if( $current_user->user_login == $username ){ | |
echo '<pre>'; | |
var_dump($arg); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "# testtt" >> README.md | |
git init | |
git add README.md | |
git commit -m "first commit" | |
git branch -M main | |
git remote add origin https://github.com/codeastrology-dev/testtt.git | |
git push -u origin main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ajax_url,ajax_url_additional = '/wp-admin/admin-ajax.php'; | |
var site_url = $('div.wpt_product_table_wrapper').data('site_url'); | |
ajax_url = site_url + ajax_url_additional; | |
function matchCustom(params, data) { | |
// If there are no search terms, return all of the data | |
// console.log(params); | |
if ($.trim(params.term) === '') { | |
return data; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Getting current quantity in cart of current product. I mean: we will check it by product ID. | |
* | |
* @global type $woocommerce We have used $woocommerce variable. | |
* @param int $product_id Need Product_ID for check current quantity in cart | |
* @return int | |
*/ | |
function wcmmq_s_check_quantity_in_cart($product_id,$variation_id = 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wpt_search_box .search_box_wrapper, | |
.wpt_filter.fullter_full .wpt_filter_wrapper, | |
.wpt_device_mobile .wpt_search_box .search_box_wrapper{ | |
display: flex; | |
flex-wrap: wrap; | |
flex-direction: row; | |
} | |
.wpt_search_box .search_box_wrapper > div { | |
width: 100%; |
NewerOlder