marktrader
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Remove Order Number from customer emailsHi @shameemreza, thanks for the links. I managed to sort it out.
I overrode & edited the template, basically displaying only what I want in the email template.
Here’s an example of the template. Maybe it can help someone in need:
<?php
// Check if the order object is available
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
do_action( 'woocommerce_email_header', $email_heading, $email );
// Get order items
$items = $order->get_items();
?>
<div style="margin: 0 auto; padding: 0; width: 100%; max-width: 600px;">
<p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $order->get_billing_first_name() ) ); ?></p>
<p><?php printf( esc_html__( 'We have received your order and it is now being processed. One of our consultants will be in touch with you shortly.', 'woocommerce' ) ); ?></p>
<!-- Start creating the custom order details table -->
<h2 style="margin: 0 0 16px; padding: 0;"><?php echo __( 'Order Details', 'woocommerce' ); ?></h2>
<table cellspacing="0" cellpadding="6" style="border: 1px solid #eee; width: 100%; max-width: 100%; margin: 0 auto; border-collapse: collapse;">
<thead>
<tr>
<th style="text-align:left; border: 1px solid #eee; padding: 12px;"><?php echo __( 'Product', 'woocommerce' ); ?></th>
<th style="text-align:left; border: 1px solid #eee; padding: 12px;"><?php echo __( 'Quantity', 'woocommerce' ); ?></th>
<th style="text-align:left; border: 1px solid #eee; padding: 12px;"><?php echo __( 'Price', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
<?php
// Loop through the order items
foreach ( $items as $item_id => $item ) {
$product = $item->get_product();
$product_name = $product ? $product->get_name() : $item->get_name();
$quantity = $item->get_quantity();
$price = $item->get_total();
?>
<tr>
<td style="text-align:left; border: 1px solid #eee; padding: 12px;"><?php echo esc_html( $product_name ); ?></td>
<td style="text-align:left; border: 1px solid #eee; padding: 12px;"><?php echo esc_html( $quantity ); ?></td>
<td style="text-align:left; border: 1px solid #eee; padding: 12px;"><?php echo wc_price( $price ); ?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<?php
// Footer
do_action( 'woocommerce_email_footer', $email );
?>Here’s the output
Forum: Plugins
In reply to: [MapGeo - Interactive Geo Maps] Slow loading on MobileHi @carlosmoreirapt. Thanks for the response.
I’m also not too sure what could be causing it. I’ve noticed that some elements load just fine (In this case, the menu toggle bar and page background), but everything else just waits.
I’ll play around with it and also see if a cache plugin works once we’re on the production server.
If I win, I’ll post an update
Forum: Fixing WordPress
In reply to: Searchable Coverage Checker MapHi @bcworkz, thanks for that quick response.
Most of what you’ve said there is way above my current expertise, so I’m going to have to upskill myself a bit.I’ve found a few tricks I can use to get the same general result using some plugins, but I’m still customizing it. I’ll update this post when I’ve made decent headway.
Thanks again for offering a starting point.
Hi @teepeenomad
1) So the link I sent is broken down as follows:
[yourdomain.com/] – Your domain.
[community/] – Your Forum Base URL. It’s “Community” by default but You may have changed this to something else in your wpforo settings.
[?foro=signup] – Links to the wpforo signup form within the forum page.This is the WPforo registration form (looks something like this – https://wpforo.com/wp-content/uploads/2020/04/wpForo-User-Registration-Form-Email-Confirmation-Enabled-and-Disabled.png) and it’s what was allowing those bot registrations on my site.
2) When you install WPForo it creates the “Forum” Page, which is where your forum is displayed. I used UM to restrict that page to users who are logged in. In that way, anyone who wants to view the forum (Including the standard WPforo registration form) has to sign up using Ultimate Member.
I hope I was a little clearer this time and it helps.
All the best
@thisisirene thank you for your quick response.
I’ve submitted the above as a ticket through the link you sent.So it turns out my fake accounts were coming through from wpForo’s registration form.
(yourdomain.com/community/?foro=signup).I had hidden this form from the menu and had WpForo set to use a custom login URL, but when you type the URL above in your browser, it sends you to the WpForo registration form somehow. Then these registrations are automatically set to “approved” by Ultimate Member.
I fixed it by doing the following.
1) Added a redirect so that the above link is permanently redirected to the proper login form.
2) Added ReCaptcha to that WpForo form anyways and set it to 10, just in case some of the bots got through somehow.
3) Made the whole Forum page restricted through Ultimate Member.Not sure which of the 3 changes did the trick (I suspect 1 & 3), but haven’t had a bot registration since.
I’m having the same issue.
Almost 10k fake accounts were instantly approved in about 2 weeks.
I had the following installed:
– Ultimate Member
– WPForo
– WordfenceI have the website set to approve members manually so this is really troubling.
What should I do here?Thank you @champsupertramp !! This works perfectly.
Reakky appreciate the help.Hi. Couldn’t really resopve the issue but I figured out what was wrong.
The problem was some html text formatting I had in the field labels. This caused an issue so ended up recreating the forms with no formatting.
Hi Kriti
I created an export using the plugin’s export button.
Here is the son file.https://trexdigital.co.za/filehub/index.php/s/qasKYdSCgs6NLWL
Please let me know if this will suffice.
Thanks
Hello
Thanks for your quick reply. Please see the video in the link below.
The whole sticky header is jumpy and not smooth.https://trexdigital.co.za/filehub/index.php/s/J3BWqADX6nrsbWs
I shape this clarifies what I’m referring to.
Regards