Blog

Update shipping on quantity change

User Woocommerce update fragment hook on checkout page for shipping I want to change shipping method when change quantity in checkout page Assistant In WooCommerce, if you want **changing the product quantity on the checkout page** to automatically refresh the **shipping methods** without a manual page reload, you can hook into WooCommerce’s **AJAX fragment refresh […]

Get CF7 shortcode by ID

User get contact form shortcode by contact form 7 id Assistant In Contact Form 7, you can get a form’s shortcode by its ID like this: **Example** If your form ID is `123`, you can directly write: echo do_shortcode(''); If you also want to include the form’s title: echo do_shortcode(''); — **If you want to […]

Add custom gift option

User add option to show custom gift item in cart page and add it via click on checkbox to cart table all using ajax woocommerce Assistant To **add a custom gift item to the cart via a checkbox on the WooCommerce cart page using AJAX**, follow this step-by-step guide. — ### 🧩 Scenario: You want […]

Ticket booking system analysis

User <script> window.location='https://fossettscircus.com/success/?eid=" . $order_info->event_date_id . "&oc=" . $order_info->order_code . "'; </script> ' "; goto continue_with_wordpress; exit(); } else { sendErrorMail( "Order not saved", "Order not saved but charge paid" . var_export( $order_info, true ) ); if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { header('Content-Type: application/json'); echo json_encode([ 'success' => false, 'message' => 'Order could not […]

JavaScript functionality overview

User <script> window.location='https://fossettscircus.com/success/?eid=" . $order_info->event_date_id . "&oc=" . $order_info->order_code . "'; </script> ' "; goto continue_with_wordpress; exit(); } else { sendErrorMail( "Order not saved", "Order not saved but charge paid" . var_export( $order_info, true ) ); if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { header('Content-Type: application/json'); echo json_encode([ 'success' => false, 'message' => 'Order could not […]

Export YITH Booking CSV

User edit.php?post_type=yith_booking Give ooption to Export Booking in Admin Admin can filter booking data based on From Date & To Date Booking data will be exported in CSV format with payment status: not paid, paid, partial paid, the amount paid and remaining. Yith premium booking plugin Assistant To add a **custom export feature to the […]

Undefined Array Key Fix

User { "error": { "type": "Breakdance\Lib\Vendor\Whoops\Exception\ErrorException", "message": "Undefined array key "key"", "code": 2, "file": "/home/cateboxi/public_html/wp-content/plugins/feedoptimise/woocommerce-feedoptimise.php", "line": 103, "trace": [ { "file": "/home/cateboxi/public_html/wp-content/plugins/feedoptimise/woocommerce-feedoptimise.php", "line": 103, "function": null, "class": "Breakdance\Lib\Vendor\Whoops\Exception\ErrorException", "args": [ "Undefined array key "key"" ], "snippet": { "98": " if ( isset ( $wp_query->query_vars['woocommerce_feedoptimise'] ) ) {n", "99": " $_REQUEST['action'] = 'woocommerce_feedoptimise';n", "100": " $_REQUEST['key'] […]

AJAX search improvements

User <style> .insta-search-results{display:none;z-index:999999;background-color:#fff;position:absolute;right:0;width:100%;border:none;border-bottom:1px solid #cacaca} @media (min-width:768px){.insta-search-results{width:600px;border:1px solid #cacaca;border-top:none}} @media (min-width:981px){.insta-search-results{position:absolute;right:152px}} .insta-search-results li{width:100%;display:inline-block;list-style:none;} .search-listing{padding:3px 10px;} .search-product{vertical-align:top;} .insta-search-results img{float:left;margin-right:5px;} .search-listing a{text-transform:uppercase;font-size:13px;display:block;min-height:60px;color:#666;} .search-listing .amount, .search-listing .woocommerce-Price-currencySymbol{color:#666;} .search-name{padding:0;font-weight:700;line-height:normal} .insta-search-results .woocommerce-Price-amount.amount{font-weight:700} .search-heading{text-transform:uppercase;background-color:#f8f8f8;color:#999;font-weight:700;font-size:12px;padding:0 10px;border:1px solid #eaeaea} .search-footer{margin:0;} .search-footer a {color:#999;} .search-listing:hover{background: #f2f2f2;} .search-listing:hover a,.search-listing:hover .amount,.search-listing:hover .woocommerce-Price-currencySymbol {color: #08c;} </style> <script> jQuery(document).ready(function($) { function setResultsPos() { //var scrollPos = $(window).scrollTop(); var […]

Mega menu aanpassing

User <style> .mega-overlay-mobile { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(244, 241, 241, 0.95); z-index: 9999; color: #000; overflow-y: auto; } .mega-overlay-content { padding: 40px; max-width: 600px; margin: 100px auto; text-align: center; } #close-mega-menu { position: absolute; top: 0; right: 0; background: none; border: none; font-size: 19px; color: […]

BMI Conversion Precision Fix

User jQuery(function($){ function kgToStLb(kg) { var st = Math.floor(kg * 2.20462 / 14); var lb = (kg * 2.20462) – (st * 14); return {st: st, lb: Math.round(lb * 100 / 100)}; } function stLbToKg(st, lb) { return (parseFloat(st) * 6.35029) + (parseFloat(lb) * 0.453592); } function cmToFtIn(cm) { var totalIn = cm / 2.54; […]