hchautrung
Forum Replies Created
-
Hi Jordy,
Any updates regarding this. I have tried to setup fresh WordPress installation and it happens the same.
Thanks.
Yes, I used the latest version. Here is info
Media File Renamer: version 2.3.2
Wordpress: version 4.2.3Yes I totally agree with Jordy Meow because I want to find the fastest way to fix my problem on yesterday I used bulk rename, it’s very dangerous. I have modified a bit to update title for WPML translation title. I put this code in “action_update_slug” function
if(!function_exists(‘icl_object_id’)) return; // to check whether WPML has been installed.
$translation_id = icl_object_id($post[‘ID’],’attachment’,false); // find translation id
if(!isset($translation_id)) return;
$query = $wpdb->prepare( “UPDATE $wpdb->posts SET post_title = ‘%s’, post_name = ‘%s’ WHERE ID = ‘%d'”, $post[‘post_title’], $newslug, $translation_id );
$wpdb->query( $query );NOTE: this one isn’t the final version. When I finish I might a make a tiny plugin to handle WPML and upload to github.
Thanks.
I have checked the code, need to add one more SQL command to modify post_title in wp_posts then it works fine for WPML in secondary language.
Another issue is some plugins (happened in my case) save relative path of images in meta_value field of wp_postmeta table. But the original code update this table using full URL so it fails to update. I also add another SQL like this
$query = $wpdb->prepare( “UPDATE $wpdb->postmeta SET meta_value = replace(meta_value, ‘%s’,’%s’);”, $old_filename, $new_filename );
$old_filename and $new_filename are only file name without extension. This tweak also work fine for me.
Hope my tweak might be useful!
Hi Jordy Meow,
I also got the problem with WPML. Filename and link can be changed in Vietnamese but it’s still keep the old title (link has been updated) in English.
Yes it is. Exactly what I want. Thanks
Is there any option to rename title only not updating file name.
ThanksForum: Plugins
In reply to: [PayPal for WooCommerce] Custom CSS for Place Order buttonPlease close this thread. Thank you!
Forum: Plugins
In reply to: [PayPal for WooCommerce] Custom CSS for Place Order buttonOk, thanks
Forum: Plugins
In reply to: [PayPal for WooCommerce] Checkout button disappearedThanks, it resolve my problem.
Trung.Forum: Plugins
In reply to: [PayPal for WooCommerce] Checkout button disappearedBut i have tested some transactions. It almost happen error “Payment has already been made for this InvoiceID”. Paypal advice “change your order ID format by adding a prefix or a suffix to your order IDs”. How can do this? Thanks,
Trung.Forum: Plugins
In reply to: [PayPal for WooCommerce] Checkout button disappearedYes, it works. Need to save setting even if I don’t adjust any options.
Thanks.Forum: Plugins
In reply to: [PayPal for WooCommerce] Hide Woocommerce Bundle Product title in PaypalOk, Thank you very much.
Trung.Forum: Plugins
In reply to: [PayPal for WooCommerce] Hide Woocommerce Bundle Product title in PaypalReally appreciate.
when I cancel from paypay, the layout will be broken (I also try to move the total to the bottom)
https://coreapp.cloudapp.net/layout_break.jpg
Here the code I have changed: https://coreapp.cloudapp.net/cart.rar
Please notice to my comments
<!– MODIFIED TO SHOW THE QUANTITY AND TOTAL AT THE BOTTOM –>
and
// MODIDIFIED CARD TO GIVE TO PAYPALSorry, the code look quite messy.
Forum: Plugins
In reply to: [PayPal for WooCommerce] Hide Woocommerce Bundle Product title in PaypalHopefully, This one not make confusing for customer. I have tried to changed code (woocommerce/template/cart/cart.php) to remove like this.
1. build an array to store the two products.
2. remove the cart
3. Add the two products to cart again.But there is a problem with total amount with my cart when I cancel payment from paypal and return back to my cart page.
Any suggestion for this one. Thanks
Trung.