Người dùng này không có chủ đề yêu thích nào.
Chủ đề diễn đàn yêu thích
Chủ đề diễn đàn đã tạo
| Trạng thái |
Chủ đề
|
Người hỗ trợ | Ý kiến | Bài viết | Mới nhất |
|---|---|---|---|---|---|
|
Issue with wcml_formatted_price Not Working in Add to Cart & Get Cart Mutations
Được bắt đầu bởi: sagiS trong: English Support |
|
0 | 4 | 10 months, 1 week trước | |
|
Background queries slowing down my site. Coming up on each refreshs
Được bắt đầu bởi: sagiS trong: English Support |
|
2 | 14 | 1 year trước | |
|
How we can stop those ATE job requests
Được bắt đầu bởi: sagiS trong: English Support |
|
0 | 2 | 1 year trước | |
|
WooCommerce analytics report not downloading for other currency & speed issue at admin side
1
2
Được bắt đầu bởi: sagiS
trong: English Support
Problem: function add_custom_export_button() { ?>
<script type="text/javascript">
jQuery(document).ready(function($) {
const interval = setInterval(function() {
const downloadButton = $('.woocommerce-table__download-button');
if (downloadButton.length) {
const customExportButton = $('<button class="button-primary" style="margin-left: 10px;">Direct Export (Browser)</button>')
.on("click", function(e) {
e.preventDefault();
fetchAndDownloadCSV();
});
downloadButton.after(customExportButton);
clearInterval(interval);
}
}, 500);
});
</script>
<?php }
add_action('admin_footer', 'add_custom_export_button');
function custom_export_script() { ?>
<script type="text/javascript">
async function fetchAndDownloadCSV() {
try {
const response = await fetch('<?php echo admin_url('admin-ajax.php?action=custom_order_export'); ?>');
const data = await response.json();
if (data && data.orders) {
let csvContent = "data:text/csv;charset=utf-8,";
const headers = ["Order ID", "Date", "Status", "Total"];
csvContent += headers.join(",") + "\r\n";
data.orders.forEach(order => {
const row = [order.id, order.date, order.status, order.total];
csvContent += row.join(",") + "\r\n";
});
const encodedUri = encodeURI(csvContent);
const link = document.createElement("a");
link.setAttribute("href", encodedUri);
link.setAttribute("download", "orders_export.csv");
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
} else {
alert("No order data found.");
}
} catch (error) {
console.error("Export failed:", error);
alert("There was an error fetching the order data.");
}
}
</script>
<?php }
add_action('admin_footer', 'custom_export_script');
function custom_order_export() {
if (!current_user_can('manage_woocommerce')) {
wp_send_json_error("Unauthorized", 403);
}
$orders = wc_get_orders(array(
'limit' => -1,
'orderby' => 'date',
'order' => 'DESC',
'return' => 'ids',
));
$order_data = array();
foreach ($orders as $order_id) {
$order = wc_get_order($order_id);
$order_data[] = array(
'id' => $order->get_id(),
'date' => $order->get_date_created()->date('Y-m-d H:i:s'),
'status' => $order->get_status(),
'total' => $order->get_total(),
);
}
wp_send_json(array('orders' => $order_data));
}
add_action('wp_ajax_custom_order_export', 'custom_order_export');
https://wpml.org/forums/topic/woocommerce-analytics-report-not-downloading-for-other-currency-speed-issue-at-admin-side-2/page/2/#post-16351152 If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please feel free to open a new support ticket at WPML support forum. |
|
0 | 35 | 1 year trước | |
|
How to stop string translations
Được bắt đầu bởi: sagiS
trong: English Support
Problem: If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum. |
|
0 | 2 | 1 year trước | |
|
Background queries slowing down my site. Coming up on each refresh.
Được bắt đầu bởi: sagiS trong: English Support |
|
2 | 2 | 1 year, 2 months trước | |
|
WooCommerce analytics report not downloading for other currency & speed issue at admin side
Được bắt đầu bởi: sagiS trong: English Support |
|
2 | 4 | 1 year, 3 months trước | |
|
Background queries slowing down my site. Coming up on each refresh.
Được bắt đầu bởi: sagiS trong: English Support |
|
3 | 5 | 1 year, 3 months trước | |
|
WooCommerce analytics report not downloading for other currency
Được bắt đầu bởi: sagiS trong: English Support |
|
3 | 15 | 1 year, 4 months trước | |
|
WooCommerce analytics not working with Multicurrency
Được bắt đầu bởi: sagiS trong: English Support |
|
2 | 3 | 1 year, 5 months trước | |
|
contact form translation not working only showing shortcode
Được bắt đầu bởi: sagiS
trong: English Support
Problem: If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, please open a new support ticket. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, you can contact us directly at the WPML support forum. |
|
2 | 2 | 1 year, 6 months trước | |
|
wpml ACF Field Group, Labels translation
Được bắt đầu bởi: sagiS trong: English Support |
|
2 | 8 | 1 year, 6 months trước | |
|
Translation of ACF option page
Được bắt đầu bởi: sagiS
trong: English Support
Problem: If this solution does not apply to your case, or if it seems outdated, we encourage you to open a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. |
|
2 | 4 | 1 year, 6 months trước | |
|
wpml translation status meaning
Được bắt đầu bởi: sagiS
trong: English Support
Problem: If this solution does not resolve your issue or seems outdated, please visit our known issues page, verify the version of the permanent fix, and ensure you have the latest versions of themes and plugins installed. If further assistance is needed, we highly recommend opening a new support ticket at WPML support forum. |
|
2 | 2 | 1 year, 7 months trước |