Abe
Forum Replies Created
-
I tried this:
// New order notification only for “Pending” Order status
add_action( ‘woocommerce_new_order’, ‘pending_new_order_notification’, 20, 1 );
function pending_new_order_notification( $order_id ) {
// Get an instance of the WC_Order object
$order = wc_get_order( $order_id );// Only for “pending” order status
if( ! $order->has_status( ‘pending’ ) ) return;// Get an instance of the WC_Email_New_Order object
$wc_email = WC()->mailer()->get_emails()[‘WC_Email_New_Order’];## — Customizing Heading, subject (and optionally add recipients) — ##
// Change Subject
$wc_email->settings[‘subject’] = __(‘{site_title} – New customer Pending order ({order_number}) – {order_date}’);
// Change Heading
$wc_email->settings[‘heading’] = __(‘New customer Pending Order’);
$wc_email->settings[‘recipient’] .= ‘,[email protected], [email protected]’;Send “New Email” notification (to admin)
$wc_email->trigger( $order_id );
}BUT I received the following error:
Your PHP code changes were rolled back due to an error on line 198 of file wp-content/themes/ikoin/functions.php. Please fix and try saving again.
syntax error, unexpected ‘”New Email”‘ (T_CONSTANT_ENCAPSED_STRING)
FYI – Lime 198 = Send “New Email” notification (to admin)
- This reply was modified 6 years, 10 months ago by Abe.
Like I said, my knowledge of php is abysmal lol.
Using their example, could you re-do and insert the email address [email protected] in the code for me and then I will test it ??
That would be really helpful for sure. However, I have no idea how to find a reference to the WC function that sends the order confirmation. Any thoughts on that?
I have zero knowledge of pho, but I did find this…do you think this might help?
1. Yes, Woocommerce does make note of that in the backend of the website. I was just thinking that your plugin would also send the customer info to the retailer.
2. It is Woocommerce – and you’re right…it won’t email while the order is pending. The site owner gets a notification in his crypto site that a payment has been made, but he doesn’t know who’s it’s from until the order moves from the pending status…which could take hours….makes for some confusion, especially when hundreds of orders arrive and all in pending status.
The only solution then I guess is for the site owner to log into WP and check the orders in Woocommerce when he receives a notification from his wallet?
Abe
Forum: Plugins
In reply to: [Booster for WooCommerce] Settings not being savedI ended up buying the product and it now works ok.
Forum: Plugins
In reply to: [LocateAnything - Searchable map Plugin] Not all users getting locatedThis is awful support. I posted about this 3 weeks ago and still no response. The website https://www.locate-anything.com/ has a support tab, but a fictitious phone number and email.
How in the world can you charge money for this and not offer any follow-up support?
Abe
Forum: Plugins
In reply to: [LocateAnything - Searchable map Plugin] Not all users getting locatedps…I am using with buddypress
Forum: Plugins
In reply to: [LocateAnything - Searchable map Plugin] Missing BuddyPress TabManaged to find the issue ?? I just needed to style the link color as it was there all along ??
Forum: Plugins
In reply to: [LocateAnything - Searchable map Plugin] Missing BuddyPress TabAs you can see in the example above, the HTML is correct as it shows the word “Profile” as a hyperlink. However, on the tooltip, nothing shows up.
Forum: Plugins
In reply to: [LocateAnything - Searchable map Plugin] Missing BuddyPress TabI tried that also..now no link shows at all , or the word “Profile”
<div style=’float:left;width:70%’>
<p>
|user_firstname|
<br>
<br>
<span>|BP_city|, |BP_stateprovince|, |BP_country|</span>
<br>
<br>
<span>I am |BP_iam|</span>
<br>
<br>
<span>Profile</span>
<br>
</p>
</div>
<div style=’float:left;width:20%’>
|full_avatar|</div>Forum: Plugins
In reply to: [LocateAnything - Searchable map Plugin] Missing BuddyPress Tabsorry for all these posts – this is the code I am using nw actually. Still no joy ??
`<div style=’float:left;width:70%’>
<p>
|user_firstname|
<br>
<br>
<span>|BP_city|, |BP_stateprovince|, |BP_country|</span>
<br>
<br>
<span>I am |BP_iam|</span>
<br>
<br>
<span>|BP_profile_url|</span>
<br>
<span>Profile</span>
</p>
</div>
<div style=’float:left;width:20%’>
|full_avatar|</div>’Forum: Plugins
In reply to: [LocateAnything - Searchable map Plugin] Missing BuddyPress Tab`<div style=’float:left;width:80%’>
<p>
|user_firstname|
<br>
<span>|BP_city|, |BP_stateprovince|, |BP_country|</span>
<br>
<br>
<span>|BP_profile_url|</span>
<br>
<a href=”BP_profile_url”>Profile</a>
</p>
</div>
<div style=’float:left;width:20%’>
|full_avatar|</div>’Forum: Plugins
In reply to: [LocateAnything - Searchable map Plugin] Missing BuddyPress TabOk, I manage to figure out why the city and country wasn’t displaying – I didn’t user the BP_city and BP_country tags.
However, another issue. I have added the BP_usr_url parameter and it displays, but it is not a clickable link. Since your templates support HTML, I thought I could add a hyperlink like this:
<div style=’float:left;width:80%’>
<p>
|user_firstname|
<br>
<span>|BP_city|, |BP_stateprovince|, |BP_country|</span>
<br>
<br>
Profile
</p>
</div>
<div style=’float:left;width:20%’>
|full_avatar|</div>Or is there a better way to hyperlink to the word “Profile”?
Forum: Plugins
In reply to: [LocateAnything - Searchable map Plugin] Missing BuddyPress TabOk, I have purchased the “LocateAnything for Buddypress (order# 12765). I have about 360 members on my website, and things are working as expected…well, almost.
https://potatoesandrice.com/map/
In the admin area, under the options > Default settings, I have the fields City, province or State and Country. I’m not sure what I should choose for “what do you want to localize” as I’m not sure what that even means?
Under the buddy press tab I have the three fields above mapped ie: City <> City etc.
The problem is that my tooltips are not displaying any data except the name and the avatar.
is there something wrong with my tooltip template:
<div style=’float:left;width:70%’>
<p>
|user_firstname|
<br>
<span>|City|,|Country|</span>
<br>
<span>|user_url|</span>
</p>
</div>
<div style=’float:left;width:20%’>
|full_avatar|</div>Help please ??
Forum: Themes and Templates
In reply to: [i-max] My slider suddenly dissappearedthank you