inomi
Forum Replies Created
-
Forum: Plugins
In reply to: [Unlimited Elements For Elementor] Widget Woocommerce product on search pageCan you help me in this forum? I will add the condition
item.products.woo_type is not emptyin widget Woocommerce Product Grid so I don’t need a snippet in function.php. Widget shows only products but still I don’t know how to change the archive page to have working pagination.- This reply was modified 4 years, 4 months ago by inomi.
Forum: Plugins
In reply to: [Unlimited Elements For Elementor] Widget Woocommerce product on search pageI can’t open ticket in your page because my licence is over. Can you help in this forum ?
Forum: Plugins
In reply to: [Unlimited Elements For Elementor] Widget Woocommerce product on search pageI added a snippet of code below and now my “Woocommerce Product Grid” widget only displays products in the search form results.
Now I have a problem with pagination because if I have one product, pagination in search results sholud shows only 1 page but still shows 3 pages because pagination still load post_type = post. Someone habe any solution this problem?
function myQueryFilter($args, $widgetControlsValues){ $args = array( 'post_type' => product ); return($args); } add_filter("my_query_filter", "myQueryFilter", 10, 2);If I use
$settings["header"]["title"] = $full_name."\n".$email;doesn’t work.Great 🙂 but how can i use new line beceuse <br> doesn’t work
add_filter("woe_formatter_pdf_properties", function($settings){ $order = new WC_Order(WC_Order_Export_Engine::$order_id); $full_name = $order->get_billing_first_name(). " " .$order->get_billing_last_name(); $email = $order->get_billing_email(); $settings["header"]["title"] = $full_name."<br>".$email; return $settings; });Yes, i want export only one order