Rafsun Chowdhury
Forum Replies Created
-
You can use this hook to add custom input fields into the settings form :
<?php do_action( 'dokan_settings_form_bottom', $current_user, $profile_info ); ?>
And then use this action to call your save function :
<?php do_action( 'dokan_store_profile_saved', $store_id ); ?>
- This reply was modified 8 years, 1 month ago by Rafsun Chowdhury.
Forum: Plugins
In reply to: [WooCommerce] Product link problemArchive pages generally only displays posts from one specific category or tag, it might be the reason of the link to be so.
Forum: Plugins
In reply to: [WooCommerce] extract customer list who had not place order last 7 daysYou need to add this functionality manually, it will need a lot’s of code so I just can’t paste it here but I can give you a road map of what to do.
1. WP Query all orders for last 7 days and you will get the customers who placed an order within this period.
2. Now get all customers and extract the odd ones that don’t exist in the previous result.
3. Now list them in a table and you may show them via short-code if you create one.
Hi @alvarenga1,
This pop-up template is new in Dokan 2.5.1 and to add this required fields you simply need to add some code in your theme functions. In your theme
functions.php
file add these lines at the bottom:add_filter( 'dokan_new_product_popup_args', 'rt_888_check_required_fields', 99, 2 ); function rt_888_check_required_fields( $error, $data ) { $required_fields = array( 'feat_image_id' => __( 'Please Upload an Image' , 'dokan' ), '_regular_price' => __( 'Please Set Price' , 'dokan' ), 'post_excerpt' => __( 'Please include a short description' , 'dokan') ); foreach ( $required_fields as $key => $msg ) { if ( empty( $data[$key] ) ) { return new WP_Error( 'required-missing', $msg ); } } return ''; }
And then go to the dokan plugin folder and find
your-site/wp-content/plugins/dokan-plugin/includes/product-functions.php
add these lines on line 46 :
$error = apply_filters( 'dokan_new_product_popup_args' , '' , $data ); if ( is_wp_error( $error ) ) { return $error; }
Do not worry about future updates as your changes will be preserved within the updates.
Have a good day.
Forum: Plugins
In reply to: [WooCommerce] Searching PHP-Codes for Order InfoIf you know how to use action hooks then it’s pretty easy to find the details.
In your custom email template remove the do_action for order details or rename it to something else like this :
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
change it to
do_action( 'my888_custom_email_order_details', $order, $sent_to_admin, $plain_text, $email );
then using that action your will have the
$order
object, if you see the class-wc-order.php then you will see the object structure and from there you need to retrieve the data.Forum: Plugins
In reply to: [WooCommerce] Payment on delivery – instructions in customers emailTry commenting out this line and check if the content still appears or not.
do_action( ‘woocommerce_email_header’, $email_heading, $email );
after that in your themes’s functions.php or wherever you have custom codes search for the action
woocommerce_email_header
and comment out thatadd_action
line.Forum: Plugins
In reply to: [WooCommerce] email alert purchasehi,
AFAIK woocommerce sends you an email whenever an order is created, as you said you can see the order in the backend that means something else went wrong for which the email was not delivered. But even after that if you have the order you should also have details about the customer within the order.
Forum: Plugins
In reply to: [WooCommerce] How to hide variable product price (to and to)You are welcome ??
Forum: Plugins
In reply to: [WooCommerce] Breadcrumbs removed, how to add space single product pagesIt would have been better if you could provide the link to your website.
But try this :
.content { margin-top : 20px; }
Forum: Plugins
In reply to: [WooCommerce] How to hide variable product price (to and to)Add these lines at the very bottom of your theme’s functions.php file :
add_filter( 'woocommerce_variable_sale_price_html', 'rt_remove_variation_price', 10, 2 ); add_filter( 'woocommerce_variable_price_html', 'rt_remove_variation_price', 10, 2 ); function rt_remove_variation_price( $price ) { $price = ''; return $price; }
- This reply was modified 8 years, 2 months ago by Rafsun Chowdhury.
Forum: Plugins
In reply to: [WooCommerce] How to tweak “add to cart” shortcode for variable productsyou are using the wrong shortcode.
Try this :
[product id="99"]
Forum: Plugins
In reply to: [WooCommerce] How to change kg to liters in woocommerce ..?You should Create it as a Variable Product.
Then add an attribute named : Unit and give values like this :
100ml | 200ml | 500ml
then create variations and then on the front-end you will get something like this :
Thanks
- This reply was modified 8 years, 2 months ago by Rafsun Chowdhury.
Forum: Plugins
In reply to: [WooCommerce] email alert purchaseHave you set your email properly in WooCommerce settings??
go to :
yoursite.com/wp-admin/admin.php?page=wc-settings&tab=email
and check what is the Recipient(s) Email set for NEW ORDER emails.
Forum: Plugins
In reply to: [WooCommerce] Price mini cartSeems Like you got the issue fixed already. I can see that in your site the currency is showing as pound properly.
Forum: Plugins
In reply to: [WooCommerce] Conditional Drop-DownIn case you don’t have to utilize database, that is if you can print all your Primary and secondary options in a single page then you can use this jQuery plugin :
https://www.appelsiini.net/projects/chained
just create your custom function to print all the select as shown in the above link and add the scripts as needed.