amoozesh3.ir
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] How to search woocommerce orders by username in the adminHello @rur165 ,
Thank you for your response.
In the following function, how can I use a username instead of order_total?function woocommerce_shop_order_search_order_total( $search_fields ) { $search_fields[] = '_order_total'; return $search_fields; } add_filter( 'woocommerce_shop_order_search_fields', 'woocommerce_shop_order_search_order_total' );
Forum: Plugins
In reply to: [WooCommerce] Woocommerce error disappears within 5 seconds after paymentHi @stuartduff,
I mean the following error:
https://s16.picofile.com/file/8412229250/error_woocomerce.pngMy error message is:
<ul class="woocommerce-error" role="alert"> <li> <p>Your payment failed.</p> </li> </ul>
I want woocommerce error to remain on the checkout page but disappears after 5 seconds if I enable create an account option in the checkout form.
- This reply was modified 4 years, 4 months ago by amoozesh3.ir.
Hi @pratik-jain
Thanks for your response.
I want users to not need to buy again if they have already purchased a file like the login system.
Is there a way?Hi @pratik-jain
Thanks for your response.Fatal error: Cannot redeclare _edd_payments_table_columns() (previously declared in C:\wamp\www\abc\wp-content\themes\chelmir\functions.php:78) in C:\wamp\www\abc\wp-content\themes\chelmir\functions.php on line 134 Call Stack # Time Memory Function Location 1 0.0012 241784 {main}( ) ..\index.php:0 2 0.0018 244856 require( 'C:\wamp\www\abc\wp-blog-header.php' ) ..\index.php:17 3 0.0026 265360 require_once( 'C:\wamp\www\abc\wp-load.php' ) ..\wp-blog-header.php:13 4 0.0034 276296 require_once( 'C:\wamp\www\abc\wp-config.php' ) ..\wp-load.php:37 5 0.0043 432448 require_once( 'C:\wamp\www\abc\wp-settings.php' ) ..\wp-config.php:80
Hi @pratik-jain
Thanks for your response.
I use wp sms to send the download link to customers and no need to email.
How can I set the email field to not be required?
I mean that how to make the email field optional?I use below code to remove email required field but I got an error:
function _edd_payments_table_columns( $required_fields ) { unset( $required_fields['edd_email'] ); return $required_fields; } // Here I got an error add_filter( 'edd_purchase_form_required_fields', '_edd_purchase_form_required_fields' );
- This reply was modified 4 years, 11 months ago by amoozesh3.ir.
Hi @pratik-jain
You are a genius.
Thanks for the code.
It works very well.Hi @pratik-jain
Thanks for your response.
Please provide custom code for number 1:
Ans – Yes, It can be done via little custom code.Hi @pratik-jain
You are a genius.
Thanks for the code.
It works correctly without error.- This reply was modified 5 years, 5 months ago by amoozesh3.ir.
Hi @pratik-jain
Thanks for your response.
Please just provide custom code for number 1:
Ans – Yes, It can be done via little custom code.Hi @pratik-jain
Thanks for your response.
Yes I want to only single product at a time to purchase.My site’s products are android apps.
I don’t want to sell an app to one person several times. I just want to sell single item.There is a bug :
When I press the browser back button, and again I click on the same checkout, number of purchase same items added.
as you can see pictured below:
https://s2.picofile.com/file/8370780550/Items.png- This reply was modified 5 years, 6 months ago by amoozesh3.ir.
Hi @pratik-jain and @mehdi24.
Thanks for your response.
I add code @mehdi24 to my theme functions.php but I faced to following warning is shown after upgrading to PHP 7.1:A non-numeric value encountered in /home/emrozsal/public_html/wp-content/themes/chelmir/functions.php.
How can I fix that?
- This reply was modified 5 years, 6 months ago by amoozesh3.ir.
Hi @pratik-jain.
Thanks for your response.
No.I don’t verify at all.
I faced the same thing in Mozilla Firefox and Google Chrome.My website product page:
https://amoozesh3.irThere is a bug :
When I press the browser back button, and again I click on the same checkout, number of purchase same items added.
as you can see pictured below in Google Chrome:
https://s2.picofile.com/file/8370780550/Items.pngHi @pratik-jain.
Thanks for your response.
Yes I have changed the plugin settings “Immediately redirect to checkout after adding an item to the cart” but I’m not satisfied from this state.
Please check it again.My website product page:
https://amoozesh3.ir/There is a bug :
When I press the browser back button, and again I click on the same checkout, number of purchase same items added.
as you can see pictured below:
https://s2.picofile.com/file/8370780550/Items.pngHow can I fix the problem?
Hi @pratik-jain
Although the Rial is the official currency of Iran, in everyday life Iranians employ the monetary unit “Toman”, which is equivalent to 10 Rials.1 Toman = 10 Rial