catuyen
Forum Replies Created
-
@yordansoares Thank you for reply
Do you mean the premium template can do this job?
Forum: Fixing WordPress
In reply to: How to complete this math?I know but could you please help complete this code?
<?php echo intdiv($item[‘order_price’], $item[‘quantity’]); ?>
Is it correct?
@themehigh Please confirm
Is this feature available on the pro version? for radio select button?
I found the database URL, it does not display in the config anymore. The author should update this in the tutorial. You can view the database name in this picture https://prnt.sc/hLLvOMTweWWQ
and the database URL will be like this: https://databasename.firebaseio.com
However, it does not send the notification when I test to place a new order.
In “All registered devices” I clicked “Send test notification” and it works. But when a client places an order, nothing will display, no notification.
Please fix the plugin.
Thanks
Is this feature available on the pro version? for radio select button?
- This reply was modified 2 years, 6 months ago by catuyen.
I got it working
Just get the Name from the custom field and input it into the code above, then it will work. Like this
/*
* goes in theme functions.php or a custom plugin
*
* Subject filters:
* woocommerce_email_subject_new_order
* woocommerce_email_subject_customer_processing_order
* woocommerce_email_subject_customer_completed_order
* woocommerce_email_subject_customer_invoice
* woocommerce_email_subject_customer_note
* woocommerce_email_subject_low_stock
* woocommerce_email_subject_no_stock
* woocommerce_email_subject_backorder
* woocommerce_email_subject_customer_new_account
* woocommerce_email_subject_customer_invoice_paid
**/
add_filter(‘woocommerce_email_subject_new_order’, ‘change_admin_email_subject’, 1, 2);function change_admin_email_subject( $subject, $order ) {
global $woocommerce;$blogname = wp_specialchars_decode(get_option(‘blogname’), ENT_QUOTES);
$subject = sprintf( ‘[%s] New Customer Order (# %s) from Name %s %s %s’, $blogname, $order->id, $order->billing_first_name, $order->billing_last_name, $order->billing_customname );
return $subject;
}Forum: Plugins
In reply to: [WooCommerce Unit Of Measure] Plugin translation does not work.I would like to translate the text “Unit of Measure” in the back-end but can’t translate with the loco translate plugin.
My post is not a question. I just want to share my experience so I guess don’t need to post my “sire” ??
Forum: Plugins
In reply to: [WP Search with Algolia] How to create cronjob for auto reindex?Thank you for your respond
The command below will do the job
/usr/local/bin/wp --path='/home/mywebsites/web/example.com/public_html' algolia reindex --all
I guess the problem is from the API. I removed the old and and create a new one and it’s working well now.
Here you are: https://batdongsanmekong.com/
Thanks for the reply. I will change the topic status to “Resolved”.
Thank you for your reply but it does not help resolve the problem.
First, I install the demo starter site from your theme so can’t download those files.
Second, My VPS has a lot of free space up to 200GB
Not sure why.
Thanks anyway,
Forum: Developing with WordPress
In reply to: A lot of warnings from the code, please helpAmazing @thakkarhardik
It worked and the warnings are gone.
God bless you ??
- This reply was modified 2 years, 8 months ago by catuyen.
Forum: Plugins
In reply to: [Redis Object Cache] Redis did not switch from TCP to SocketI found the reason, php-redis extension is not installed.
sudo apt install php8.0-redis
Will do the job.
Cheers,