socialreza
Forum Replies Created
-
Forum: Plugins
In reply to: [WPC Smart Compare for WooCommerce] Comparison only with its own categoryHello
Or you can put a filter on the product comparison page, like the yith woocommerce compare plugin did.
Good luckForum: Plugins
In reply to: [WPC Smart Compare for WooCommerce] Comparison only with its own categoryHello
How quickly you answered, thank you, if we have two products, clothing and mobile, for example, and we want to enable comparison for both categories, it is possible to compare the mobile category with the clothing category, which is not good, but a product from all categories can be compared only For example, mobile product with mobile or clothing product with clothing
Good LuckI found the problem after a lot of research, I don’t know if it’s a Advanced Custom Fields plugin bug or not, After I transferred the post types and taxonomy in the Custom Post Type UI plugin to the Advanced Custom Fields plugin using the Advanced Custom Fields plugin tool, I deleted the Custom Post Type UI plugin, Error taxonomy page could not be found, There were several scenarios below :
1 – When I was editing the post type and deleting the taxonomy field from the beginning and selecting and saving the same from the list -> The page was not found. It was not viewed anymore.
2 – When I edited the taxonomy and removed the post type from the list and selected it again from the list -> Page not found came back.
3 – When I was saving WordPress Options Permalink -> Page not found came back.Forum: Plugins
In reply to: [EWWW Image Optimizer] WooCommerce image gallery does not support webpI sent you an email to [email protected]
Hello
I apologize for my late reply, thank you very much for implementing my suggestion into the plugin.
Good luck
Forum: Plugins
In reply to: [Image Regenerate & Select Crop] there are some bugs in the pluginPlease let me know after you have tested it
Forum: Plugins
In reply to: [Image Regenerate & Select Crop] there are some bugs in the pluginyou are wonderful, how quickly you responded
wordpress : 6.1.1
woocommerce : 7.0.1
Image Regenerate & Select Crop : 6.2.2
Forum: Plugins
In reply to: [Image Regenerate & Select Crop] there are some bugs in the pluginafter much research, i think i have found problem 1, but i haven’t found a solution to it. when i disable the woocommerce plugin, problem 1 no longer occurs at all, but i need the woocommerce plugin, how should i fix it so it doesn’t interfere?
Forum: Plugins
In reply to: [WooCommerce] pagination does not work in orders WooCommercei’m sorry, you did not understand correctly
if you refer to the link i sent, you will fully understand my problem
https://stackoverflow.com/questions/73105735/pagination-does-not-work-in-orders-woocommerce
now i will explain here too
i changed the pagination of WooCommerce orders as follows :
before : example.com/my-account/orders/2
after : example.com/my-account/orders/page/2i added pagination to WooCommerce orders
path : /plugins/woocommerce/templates/myaccount/orders.php
<?php /** * Orders * * Shows orders on the account page. * * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/orders.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates * @version 3.7.0 */ defined( 'ABSPATH' ) || exit; do_action( 'woocommerce_before_account_orders', $has_orders ); ?> <?php if ( $has_orders ) : ?> <table class="woocommerce-orders-table woocommerce-MyAccount-orders shop_table shop_table_responsive my_account_orders account-orders-table"> <thead> <tr> <?php foreach ( wc_get_account_orders_columns() as $column_id => $column_name ) : ?> <th class="woocommerce-orders-table__header woocommerce-orders-table__header-<?php echo esc_attr( $column_id ); ?>"><span class="nobr"><?php echo esc_html( $column_name ); ?></span></th> <?php endforeach; ?> </tr> </thead> <tbody> <?php foreach ( $customer_orders->orders as $customer_order ) { $order = wc_get_order( $customer_order ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $item_count = $order->get_item_count() - $order->get_item_count_refunded(); ?> <tr class="woocommerce-orders-table__row woocommerce-orders-table__row--status-<?php echo esc_attr( $order->get_status() ); ?> order"> <?php foreach ( wc_get_account_orders_columns() as $column_id => $column_name ) : ?> <td class="woocommerce-orders-table__cell woocommerce-orders-table__cell-<?php echo esc_attr( $column_id ); ?>" data-title="<?php echo esc_attr( $column_name ); ?>"> <?php if ( has_action( 'woocommerce_my_account_my_orders_column_' . $column_id ) ) : ?> <?php do_action( 'woocommerce_my_account_my_orders_column_' . $column_id, $order ); ?> <?php elseif ( 'order-number' === $column_id ) : ?> <a href="<?php echo esc_url( $order->get_view_order_url() ); ?>"> <?php echo esc_html( $order->get_order_number() ); ?> </a> <?php elseif ( 'order-date' === $column_id ) : ?> <time datetime="<?php echo esc_attr( $order->get_date_created()->date( 'c' ) ); ?>"><?php echo esc_html( wc_format_datetime( $order->get_date_created() ) ); ?></time> <?php elseif ( 'order-total' === $column_id ) : ?> <?php echo $order->get_formatted_order_total(); ?> <?php elseif ( 'order-status' === $column_id ) : ?> <?php echo esc_html( wc_get_order_status_name( $order->get_status() ) ); ?> <?php elseif ( 'order-actions' === $column_id ) : ?> <?php $actions = wc_get_account_orders_actions( $order ); if ( ! empty( $actions ) ) { foreach ( $actions as $key => $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited echo '<a href="' . esc_url( $action['url'] ) . '" class="woocommerce-button button ' . sanitize_html_class( $key ) . '">' . esc_html( $action['name'] ) . '</a>'; } } ?> <?php endif; ?> </td> <?php endforeach; ?> </tr> <?php } ?> </tbody> </table> <?php do_action( 'woocommerce_before_account_orders_pagination' ); ?> <?php if ( 1 < $customer_orders->max_num_pages ) : ?> <nav class="woocommerce-pagination"> <?php $args = array( 'total' => $customer_orders->max_num_pages ); echo paginate_links( $args ); ?> </nav> <?php endif; ?> <?php else : ?> <p class="woocommerce_message"><?php esc_html_e( 'No order has been made yet.', 'woocommerce' ); ?></p> <?php endif; ?> <?php do_action( 'woocommerce_after_account_orders', $has_orders ); ?>
i also added the following code to functions :
function woocommerce_my_account_my_orders_query1() { $current_page = get_query_var( 'paged' ) ? (int) get_query_var( 'paged' ) : 1; $customer_orders = array( 'customer' => get_current_user_id(), 'page' => $current_page, 'paginate' => true, ); return $customer_orders; } add_filter( 'woocommerce_my_account_my_orders_query', 'woocommerce_my_account_my_orders_query1', 10, 1 );
problem : after clicking on any of the page numbers, it will go to the correct address, that is:
example.com/my-account/orders/page/2
example.com/my-account/orders/page/3
example.com/my-account/orders/page/4but in all pages it brings the same results as the first page
if you would like to answer my question, thanks