Forum Replies Created
-
AuthorPosts
-
GeekyCoder Abhirup
ModeratorHi,
Add below code and add your all cat id in the array separated by comma,add_filter( "mvx_get_product_terms_product_cat_query_args", 'mvx_get_product_terms_product_cat_query_args_callback'); function mvx_get_product_terms_product_cat_query_args_callback($args) { $args['include'] = array(15); //add all cat id here return $args; }
CopyCheckout the image – https://prnt.sc/5lcsYncyT5Kv (working in our end)
Regards,GeekyCoder Abhirup
ModeratorHi,
for edit product page add custom code using below filter –apply_filters( "mvx_get_product_terms_product_cat_query_args", array( 'taxonomy' => $taxonomy, 'hide_empty' => false, 'orderby' => 'name', 'parent' => 0, 'fields' => 'id=>name', ) );
CopyRegards,
GeekyCoder Abhirup
ModeratorHi,
Kindly add below code to your function.php to hide some categories from your vendor add product page.add_filter( 'mvx_vendor_product_classify_first_level_categories', 'mvx_vendor_product_classify_first_level_categories_backup'); function mvx_vendor_product_classify_first_level_categories_backup($cat_array) { $cat_array['exclude'] = array(15); // add categorie id here saparated by comma return $cat_array; }
CopyRegards,
May 23, 2023 at 1:30 PM in reply to: how to get the details of suborders status “Processing” #192367GeekyCoder Abhirup
ModeratorHi,
Kindly add below code to your function.php of the active current theme.add_action( 'woocommerce_after_my_account', 'mvx_woocommerce_account_content_action' ); function mvx_woocommerce_account_content_action(){ $customer = wp_get_current_user(); // Get all customer orders $customer_orders = get_posts(array( 'numberposts' => -1, 'meta_key' => '_customer_user', 'orderby' => 'date', 'order' => 'DESC', 'meta_value' => get_current_user_id(), 'post_type' => wc_get_order_types(), 'post_status' => array('wc-processing', 'wc-onhold'), 'fields' => 'ids', )); if ($customer_orders) { foreach ($customer_orders as $customer_order) { $mvx_suborders = get_posts( array( 'post_parent' => $customer_order, 'posts_per_page' => -1, 'post_status' => array('wc-processing', 'wc-onhold'), 'post_type' => wc_get_order_types(), 'fields' => 'ids', )); if ($mvx_suborders) { foreach ($mvx_suborders as $mvx_suborder) { $order = wc_get_order($mvx_suborder); $order_id = $order->id; $shipping_method = $order->get_shipping_method(); // data to show echo $order_id . '<br>'; // // Get and Loop Over Order Items foreach ( $order->get_items() as $item_id => $item ) { $product_name = $item->get_name(); echo $product_name . '<br>'; $image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $item->get_product_id() ), 'single-post-thumbnail' ); echo '<img src="'. $image_url[0] .'" width="40" height="40"/>'; } echo $shipping_method .'<br>'; } } } } }
Copycheckout the image – https://prnt.sc/Pimt6sZokSTy
** design as per your requirement.Regards,
May 22, 2023 at 7:16 PM in reply to: how to get the details of suborders status “Processing” #192351GeekyCoder Abhirup
ModeratorHi,
First of all let me know where you want to add the details in frontend and also do you want to show this in the customer account. Let me know then we will help you out accordingly.Regards,
GeekyCoder Abhirup
ModeratorHi,
For now you can not add vendor details directly using elementor, So you have to create shortcode to get the datils and put the shortcode to display the details.Can you share the page where you want to add details and also a image where you want to show. Then we will help you out accordingly.
Regards,
May 12, 2023 at 3:13 PM in reply to: Some Child theme Modification Doesn’t Reflect but Some Does #192011GeekyCoder Abhirup
ModeratorHi, please use the updated version of MultiVendorX Pro. We have added the fix there.
May 11, 2023 at 7:08 PM in reply to: how to change the title h2 to h4, in the title “Abuse report”? #191978GeekyCoder Abhirup
ModeratorHi,
kindly add below code to your active theme function.phpadd_action('init','MVX_custom_changes'); function MVX_custom_changes() { global $MVX; remove_action('woocommerce_product_meta_start', array($MVX->product, 'add_report_abuse_link'), 30); add_action('woocommerce_product_meta_start', 'add_report_abuse_link', 30); } function add_report_abuse_link() { global $product; if (apply_filters('mvx_show_report_abuse_link', true, $product) && mvx_is_module_active('report-abuse')) { $report_abuse_text = apply_filters('mvx_report_abuse_text', __('Report Abuse', 'multivendorx'), $product); $show_in_popup = apply_filters('mvx_show_report_abuse_form_popup', true, $product) ?> <div class="mvx-report-abouse-wrapper"> <a href="javascript:void(0);" id="report_abuse"><?php echo esc_html($report_abuse_text); ?></a> <div id="report_abuse_form" class="<?php echo ( $show_in_popup ) ? 'report-abouse-modal' : ''; ?>" tabindex="-1" style="display: none;"> <div class="<?php echo ( $show_in_popup ) ? 'modal-content' : 'toggle-content'; ?>"> <div class="modal-header"> <button type="button" class="close">×</button> <h4 class="mvx-abuse-report-title1"><?php esc_html_e('Report an abuse for product ', 'multivendorx') . ' ' . the_title(); ?> </h4> </div> <div class="modal-body"> <p class="field-row"> <input type="text" class="report_abuse_name" id="report_abuse_name" name="report_abuse[name]" value="" style="width: 100%;" placeholder="<?php esc_attr_e('Name', 'multivendorx'); ?>" required=""> <span class="mvx-report-abuse-error"></span> </p> <p class="field-row"> <input type="email" class="report_abuse_email" id="report_abuse_email" name="report_abuse[email]" value="" style="width: 100%;" placeholder="<?php esc_attr_e('Email', 'multivendorx'); ?>" required=""> <span class="mvx-report-abuse-error"></span> </p> <p class="field-row"> <textarea name="report_abuse[message]" class="report_abuse_msg" id="report_abuse_msg" rows="5" style="width: 100%;" placeholder="<?php esc_attr_e('Leave a message explaining the reasons for your abuse report', 'multivendorx'); ?>" required=""></textarea> <span class="mvx-report-abuse-error"></span> </p> </div> <div class="modal-footer"> <input type="hidden" class="report_abuse_product_id" value="<?php echo $product->get_id(); ?>"> <button type="button" class="btn btn-primary submit-report-abuse" name="report_abuse[submit]"><?php esc_html_e('Report', 'multivendorx'); ?></button> </div> </div> </div> </div> <?php } }
Copyregards,
May 8, 2023 at 5:46 PM in reply to: MultivendorX with woodmart theme. Vendor store page no longer scrolls down #191861GeekyCoder Abhirup
ModeratorHi,
This is a theme conflict. When we add custom code to dequeue the style, page scroll is working but page style is broke.
check image – https://prnt.sc/46tUryxHL5Uyadd_action('wp_enqueue_scripts', 'my_remove_scripts', 9999999999999999999999 ); function my_remove_scripts(){ if( mvx_is_store_page() ){ //style wp_dequeue_style( 'woodmart-style' ); wp_deregister_style( 'woodmart-style' ); } }
CopyFor that Kindly ask your theme to fix this.
GeekyCoder Abhirup
ModeratorHi,
We Fixed this issue in your site, Kindly check this image – https://prnt.sc/8t6JEOksb8N0
And also add below code to your live siteadd_filter('mvx_pdf_invoice_pdf_footer_content', 'mvx_pdf_invoice_pdf_footer_content_callback', 10, 4); function mvx_pdf_invoice_pdf_footer_content_callback( $footer_content_n, $footer_content, $pdf_type, $args) { $new_footer_content = array(site_url(),'unihome97@gmail.com', '© 2023 by UniHome (003449066-K). All Rights Reserved.'); return implode(' | ', $new_footer_content); } add_filter('mvx_pdf_invoice_preferred_templates', 'mvx_pdf_invoice_preferred_templates_callback'); function mvx_pdf_invoice_preferred_templates_callback( $tamp_array ) { unset($tamp_array['mvx_pdf_invoice_second_template']); unset($tamp_array['mvx_pdf_invoice_third_template']); unset($tamp_array['mvx_pdf_invoice_forth_template']); unset($tamp_array['mvx_pdf_invoice_fifth_template']); return $tamp_array; }
Copyalso check the vendor dashboard for default template.
Regards,May 4, 2023 at 3:56 PM in reply to: How to Change Default Date Range in Orders + Payment History in Vendor Dashboard #191720GeekyCoder Abhirup
ModeratorHi,
For order table override dc-woocommerce-multi-vendor/templates/vendor-dashboard/vendor-orders.php template by copying it to yourtheme/MultiVendorX/vendor-dashboard/vendor-orders.phpthen change line no 37 instant of below code
<input type="date" name="mvx_start_date_order" class="pickdate gap1 mvx_start_date_order form-control" placeholder="<?php esc_attr_e('from', 'multivendorx'); ?>" value="<?php echo isset($_POST['mvx_start_date_order']) ? wc_clean($_POST['mvx_start_date_order']) : date( 'Y-m-d', strtotime('-90 days')); ?>" />
CopyFor history table override dc-woocommerce-multi-vendor/templates/vendor-dashboard/vendor-transactions.php template by copying it to yourtheme/MultiVendorX/vendor-dashboard/vendor-transactions.php
then change line no 31 instant of below code
<input type="date" id="mvx_from_date" class="form-control" name="from_date" class="pickdate gap1" placeholder="From" value ="<?php echo date( 'Y-m-d', strtotime('-90 days')); ?>"/>
CopyRegards,
GeekyCoder Abhirup
ModeratorHi,
Remove the codes from live site.
Share a staging site admin access, vendor access with order and ftp. So, we will fix this issue for you.GeekyCoder Abhirup
Moderator@Emmanuel Umerie, we will add the same fix in our next update of MVX pro.
Once that update will be released, you can remove this code.GeekyCoder Abhirup
ModeratorHi,
Kindly add below code to your function.php of your current active theme.add_filter('mvx_pdf_invoice_pdf_footer_content', 'mvx_pdf_invoice_pdf_footer_content_callback', 10, 4); function mvx_pdf_invoice_pdf_footer_content_callback( $footer_content, $footer_content, $pdf_type, $args) { $new_footer_content = array(site_url(),'unihome97@gmail.com', '© 2023 by UniHome (003449066-K). All Rights Reserved.'); return implode(' | ', $new_footer_content); } add_filter('mvx_pdf_invoice_preferred_templates', 'mvx_pdf_invoice_preferred_templates_callback', $tamp_array); function mvx_pdf_invoice_preferred_templates_callback( $tamp_array ) { unset($tamp_array['mvx_pdf_invoice_second_template']); unset($tamp_array['mvx_pdf_invoice_third_template']); unset($tamp_array['mvx_pdf_invoice_forth_template']); unset($tamp_array['mvx_pdf_invoice_fifth_template']); return $tamp_array; }
Copyregards,
GeekyCoder Abhirup
ModeratorHi,
We have fixed product table issue in your site using below custom code.
As this is a theme compatibility issue.//please add this code in the function.php of the current active theme : add_action('wp_enqueue_scripts', 'my_remove_scripts',99999999); function my_remove_scripts(){ if(is_user_logged_in()){ $uid = get_current_user_id(); if( is_vendor_dashboard() && is_user_mvx_vendor($uid) && is_user_logged_in() ){ wp_dequeue_style( 'aora-style' ); wp_dequeue_style( 'aora-child-style' ); wp_dequeue_style( 'aora-vendor' ); } } }
CopyAnd fixed vendor dashboard tabs error issue by modifying some code in our mvx pro plugin. we will fix this in our next update, for now use our fixed plugin download from your site plugin folder.
Regards,
-
AuthorPosts