/** * Display the order content: the list of element put into order * * @param order $post The complete order content */ function order_content($post) { $order_content = ''; $order = get_post_meta($post->ID, '_order_postmeta', true); $order_content .= '<div id="order_product_container" class="order_product_container wpshop_cls" >'; if ($order) { /* Read the order content if the order has product */ $order_content .= '<input type="hidden" value="" name="order_products_to_delete" id="order_products_to_delete" />' . wpshop_cart::display_cart(true, $order, 'admin'); if (empty($order['order_invoice_ref'])) { $order_content .= '<div id="order_refresh_button_container" class="wpshop_clear_block" ><input type="button" class="button-primary alignright wpshopHide" id="wpshop_admin_order_recalculate" value="' . __('Refresh order informations', 'wpshop') . '" /></div>'; } } $order_content .= '<div class="wpshop_cls" ></div></div>'; return $order_content; }
/** * Display mini cart widgte after doing an action on it */ function ajax_wpshop_reload_mini_cart() { echo wpshop_cart::mini_cart_content(); die; }
<div><p><?php _e('Thank you ! Your quotation has been sent. We will respond to you as soon as possible.', 'wpshop'); ?> </p></div> <?php wpshop_cart::empty_cart();