Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › eStore – change to php file not taking effect?
- This topic has 5 replies, 2 voices, and was last updated 6 years, 11 months ago by dnesmith.
-
AuthorPosts
-
December 15, 2017 at 2:54 am #14598dnesmithSpectator
I am using wp_Estore plugin v8.0.1, and it works fine. We use only the manual gateway for payment (since all “orders” are 0 value).
The seller would like to have each notification email to them include the transaction id in the Subject line (I think otherwise, their email program is creating a single thread with all the orders, and it makes it hard to find an individual one).
In the code for eStore_manual_gateway_form_processing_code (in eStore_manual_gateway_functions.php), I added these lines just before the notification email is sent:
eStore_payment_debug(‘1 n_subject = ‘.$n_subject, true);
$n_subject = $n_subject . ” ” . $payment_data;
eStore_payment_debug(‘2 n_subject = ‘.$n_subject, true);
just before the line
wp_eStore_send_wp_mail($notify_email, $n_subject, $seller_email_body, $headers);
After making the change, I tried deactivating/activating, deleting and reinstalling the plugin, and nothing changes. I don’t get the added debug output and the notification emails still have an unchanged subject. Is there something else I need to get the change to take effect?
December 16, 2017 at 10:09 pm #76906adminKeymasterYou change looks good to me. You just need to make sure you are overwriting the existing file with the updated file correctly. Are you editing the file from the WP plugin editor or are you updating the file then uploading via FTP?
December 19, 2017 at 10:56 pm #76907dnesmithSpectatorI”ve tried both methods. I can see the changes in the WP Plugins Editor (which shows at the top of the window “Editing wp-cart-for-digital-products/eStore_manual_gateway_functions.php (active)”.
I tried downloading, converting to ASCII, and re-uploading again with no change.
The wp_Estore_post_payment_debug.log shows, e.g.,
[12/19/2017 10:11 PM] – SUCCESS :Incremental counter value: 160
[12/19/2017 10:11 PM] – SUCCESS :Value of current cart item:
[12/19/2017 10:11 PM] – SUCCESS :Checking if membership inegration is being used. Reference Text Value:
[12/19/2017 10:11 PM] – SUCCESS :Applying filter – eStore_notification_email_body_filter
[12/19/2017 10:11 PM] – SUCCESS :Buyer email sending is enabled. Sending email to buyer.
[12/19/2017 10:11 PM] – SUCCESS :Updating Products and Customers Database Tables with Sales Data.
[12/19/2017 10:11 PM] – SUCCESS :Product ID: 7.Current available copies value: Sales count value: 6
[12/19/2017 10:11 PM] – SUCCESS :New available copies value: New sales count value: 7
[12/19/2017 10:11 PM] – SUCCESS :Products, Customers, Sales and Coupons Database Tables Updated.
[12/19/2017 10:11 PM] – SUCCESS :WP Affiliate Platform capability is not present.
I think some of these entries may be coming from the eStore Manual Checkout Form Builder plugin.
I’m not using any cache plugin, but maybe hostgator is caching things behind my back. Still puzzled.
December 20, 2017 at 2:42 am #76908adminKeymasteroh you are using the manual checkout form builder. In that case you need to modify the following file of that addon:
estore-manual-checkout-form-builder/estore-co-form-builder.php
Look in the “estore_co_form_builder_process_submission” function.
December 20, 2017 at 9:40 pm #76909dnesmithSpectatorThanks, I will try that after Christmas (right now could be disruptive).
December 27, 2017 at 11:33 pm #76910dnesmithSpectatorOkay, I modified estore_co_form_builder_process_submission to add the lines below just before the seller-notification email is sent.
eStore_payment_debug('Notify seller subject before: ' . $n_subject, true);
$n_subject = eStore_apply_post_payment_dynamic_tags($n_subject, $payment_data, $cart_items);
eStore_payment_debug('Notify seller subject after: ' . $n_subject, true);
Now I can put tags like the {transaction_id} into the subject line and it works great. Thanks.
-
AuthorPosts
- You must be logged in to reply to this topic.