GlideAgency
Forum Replies Created
-
@pomegranate okay, can you then confirm how I can disable invoices being generated on certain orders based on either the payment method, or if it’s a free product?
Also to clarify, the invoices are always meant to be visible on the WP admin, but the main issue here is that they are also being attached to the completed order emails that go to the customer, and this is what we want to stop.
This has always been working previously, hence the reason to suspect it has changed due to a plugin update. Either way can you please advise on how we can achieve this?
@champsupertramp thanks so much for that info, that seems to have fixed the redirect issue now. It was just the default setup so I was not aware that should be changed.
I just have one more question – Currently the pages with restricted content are shown as ‘Restricted Content’ in the menu for non-member users?
We still want the page names to show normally but then for users to be redirected if they aren’t logged in.
Is this possible?
@pomegranate I understand where you are coming from, it is hard to debug with that big of code.
However I just want to clarify the required functionality.
Essentially we have 3 different types of orders.
1. Paid Product – Credit Card Order (Invoice is generated and sent as attachment with completed order email)
2. Paid Product – Invoice Order (Invoice should not be attached to completed order email but it currently is)
3. Free Products – Same as aboveWe also have some custom code that auto completes every order.
So without considering any custom code, how would your plugin achieve the above result?
Thanks
@pomegranate yes we are using a custom template for the invoices. The issue is that the functionality has stopped working even though we didn’t make any changes to the template.
For reference the particular line of code that shows this text is:
Total amount (inc GST): $<?php echo $this->order->get_total(); ?><br/>PAID IN FULL
In addition to this in the functions.php file we define the payment method with the following code:
$report_payment_method = $order->get_payment_method() == 'cybersource'?'CC':'Invoice';
So effectively it is meant to check if it is a Credit Card payment or an Invoice Payment, however at the moment it seems to be treating the custom Invoice payments as a Credit Card payment.
Hi @champsupertramp sorry about that, we recently migrated our development sites to a new domain. You can find the site here – https://glideweb.com.au/constable-care/
Hi @dpeyou unfortunately this is not an option since the customers that pay by credit card need to have that field visible as proof of payment.
Hi @champsupertramp here is the screenshot for the UM Pages settings – https://imgur.com/NOOQjkL
Thanks
@sarathacodez my apologies, it seems like the link from the wordpress plugins page was taking me to the wrong location for some reason, I just realized you are not the WP Overnight team. I have contacted them now.
@sarathacodez sorry I don’t understand. The first 2 screenshots are from your plugin – WooCommerce PDF Invoices & Packing Slips Version 2.2.8
Hi @sarathacodez I am not sure I follow you exactly. If it helps here are some screenshots of the plugin settings, do you see any issues with this set up?
And also a screenshot of the Custom Payment Gateway settings
Hi @sarathacodez thanks for your response.
So within our custom invoice template, I can confirm that the first function is there, but not the second one you have mentioned. Is that a problem? Here is the full section of code that displays the text ‘PAID IN FULL’:
<table class="order-data-addresses"> <tbody> <tr> <td style="width:50%;"></td> <td style="width:50%; text-align:right;"> <span style="text-align:left;font-weight:bold;">Total amount (inc GST): $<?php echo $this->order->get_total(); ?><br/>PAID IN FULL</span> </td> </tr> </tbody> </table>
In addition to the above, we are also defining the payment method through the following code if that helps:
$report_payment_method = $order->get_payment_method() == 'cybersource'?'CC':'Invoice';
Hi @sarathacodez I need to re open this request as I have been in contact with the WooCommerce Custom Payment Gateway plugin developers to try and figure out if this issue is related to their plugin.
The current situation is, the invoices are no longer generating on free products which is correct.
However, we also have a custom payment gateway called ‘Invoice Payment’ which customers can select at checkout. This allows them to add a PO number and complete the checkout without payment.
The payment is usually taken at the end of the month, however currently all these Invoice orders are generating an invoice that says ‘Paid In Full’.
Can you please advise on this issue? I am happy to create a WP user for you if required.
Thanks
@champsupertramp apologies for the delay in getting back to you.
Here is a link to the screenshot – https://imgur.com/a/iAvOYpv
Just to clarify, we are only needing to restrict content on certain pages, and in general the rest of the site is accessible to the public.
Let me know if there are any issues with the set up.
@champsupertramp that doesn’t work either. It seems to redirect back to the account/login page which is already stuck in a redirect loop.