Kiran
Forum Replies Created
-
AuthorPosts
-
Hello Martin,
Which theme you are using. I have tested with Directory Starter with iOS mobile browser and scroll is working horizontally & vertically.
See video captured here: https://ppldb.com/kiran/gd/2557-invoice-history.webm
Kiran
Hello Martin,
– The „From“-part works almost perfectly already. But I do not want to show my Email-Address.
1. How can I hide it?Add following css snippet at Invoicing > Settings > Misc > Custom CSS > Invoice Template CSS.
.wpinv-print .wpinv-from-address .email_from { display: none !important; }
2: be able leave the city/state field blank, or at least not shown in the final invoice.
We have fixed this, now city/state fields can be optional. Here is patch: https://github.com/AyeCode/invoicing/pull/190/commits/5a5e2b12e3bc8324da76ea99f3964a608af0e316
3: be given a customer name entry field
Can you clarify this, because there are already fields to enter first name/last name?
4: Show the customer’s company name in the final invoice
If company name saved in checkout form then it will be displayed on invoice.
5: show the Zip-Code ahead of the city name, as it ist required for invoices in Germany.
6: hide the customer’s Email-Adress as wellAdd following PHP snippet to implement this.
function wpi_snippet_190122_display_to_address( $output, $invoice ) { $billing_details = $invoice->get_user_info(); $output = '<div class="to col-xs-2"><strong>' . __( 'To:', 'invoicing' ) . '</strong></div>'; $output .= '<div class="wrapper col-xs-10">'; ob_start(); do_action( 'wpinv_display_to_address_top', $invoice ); $output .= ob_get_clean(); $output .= '<div class="name">' . esc_html( trim( $billing_details['first_name'] . ' ' . $billing_details['last_name'] ) ) . '</div>'; if ( $company = $billing_details['company'] ) { $output .= '<div class="company">' . wpautop( wp_kses_post( $company ) ) . '</div>'; } $address_row = ''; if ( $address = $billing_details['address'] ) { $address_row .= wpautop( wp_kses_post( $address ) ); } $address_fields = array(); if ( !empty( $billing_details['city'] ) ) { $address_fields[] = $billing_details['city']; } $billing_country = !empty( $billing_details['country'] ) ? $billing_details['country'] : ''; if ( !empty( $billing_details['state'] ) ) { $address_fields[] = wpinv_state_name( $billing_details['state'], $billing_country ); } if ( !empty( $billing_country ) ) { $address_fields[] = wpinv_country_name( $billing_country ); } if ( !empty( $address_fields ) ) { $address_fields = implode( ", ", $address_fields ); if ( !empty( $billing_details['zip'] ) ) { $address_fields = $billing_details['zip'] . ', ' . $address_fields; } $address_row .= wpautop( wp_kses_post( $address_fields ) ); } if ( $address_row ) { $output .= '<div class="address">' . $address_row . '</div>'; } if ( $phone = $invoice->get_phone() ) { $output .= '<div class="phone">' . wp_sprintf( __( 'Phone: %s', 'invoicing' ), esc_html( $phone ) ) . '</div>'; } // Hide email form To address. //if ( $email = $invoice->get_email() ) { // $output .= '<div class="email">' . wp_sprintf( __( 'Email: %s' , 'invoicing'), esc_html( $email ) ) . '</div>'; //} ob_start(); do_action( 'wpinv_display_to_address_bottom', $invoice ); $output .= ob_get_clean(); $output .= '</div>'; return $output; } add_filter( 'wpinv_display_to_address', 'wpi_snippet_190122_display_to_address', 10, 2 );
7. Open a new window if a customer clicks on print invoice right after the payment confirmation. Because otherwise the displayed invoice might be the only page that is open on his browser and the only way to return to his profile is the browser’s back button.
Please provide url or screenshot, on which page you want this update?
If you want to disable VAT feature and want to show company fields then try the snippet provided here: https://wpinvoicing.com/support/topic/collect-company-info-even-when-not-required/#post-1077
Invoice page using templating system, so you can also do customization via template. You can copy template file \invoicing\templates\wpinv-invoice-print.php to your THEME OR CHILD THEME DIRECTORY/invoicing/wpinv-invoice-print.php
Let us know.
Thanks,
KiranThis reply has been marked as private.Hello,
Thanks for providing credentials.
I have tested by creating one test listing with Non-Profit Member package and done payment via sandbox account. Listing expire date was set 2019-10-17.
Now i manually set expire date to 2018-10-21 to test renew listing. Then i clicked renew listing link from front end and followed checkout process. Now as expected the listing shows status “pending”.One thing if packages are auto renewal then no need to renew it again.
Let us know.
Thanks,
KiranThis reply has been marked as private.This reply has been marked as private.This reply has been marked as private.Hello,
I have tested on my test site:
– Created one listing (with 365 days plan) which expires on 2018-10-15 (5 days left)
– From listing page clicked on “Renew Listing”
– Clicked on “Review Your Listing” and it goes to preview page
– From preview page clicked on “Checkout to Renew Now” and it goes to checkout page
– I have submitted Invoice
Now what i see
Invoice status = pending
Listing Status = publish
Expire Date = 2018-10-15 (5 days left)So until invoice marked paid the listing expire date will be 2018-10-15. It will be extended only after invoice marked paid.
Now i have marked invoice as paid and expire date extended 365 + 5 from today.Let us know if this not happening on your site.
Thanks,
KiranHello,
If customer left the renewal process without completing the payment then listing already should be unpublished. It only publishes the listing after payment received.
Please provide admin credentials if this not happening on your site.
Kiran
Hello,
If listing upgraded to another package then new expire date will be counted from today (payment date).
If listing is renewed with same package then it will add remaining days to new expire date. Ex: 5 days remaining days to expire and if listing renewed for 30 days then new expire will be 30 + 5 = 35 days from todayKiran
Hello,
1) Expiry notification to the user 15 and 30 days before the expiry
Correct 🙂
2) Allow user to renew the listing with credit card on Paypal, without registration ( i’ve disabled the recurrency function on the price packages and i have only the paypal standard gateway enabled).
For standard payment(non recurring) user do not required to have a PayPal account.
Thanks,
KiranHello,
Listing with non recurring package will be expired on expire date and can be renewed from front end.
If pre-expiry feature enabled then it also sends pre-expiry notification for the listing that going to expire in near time(if expire date falls in pre-expiry period).
Let us know.
Thanks,
KiranHi Sandro,
It is required to have a PayPal account to pay for recurring payments or subscription payments.
See https://wpgeodirectory.com/support/topic/paypal-requires-sign-up-for-paypal-account/#post-376766
Kiran
Hi Sandro,
You have saved snippet without changing language code in the snippet. I have changed it to “IT”.
Kiran
Hello,
Use following snippet to set language for PayPal payment request:
function _wpi_custom_change_paypal_language( $paypal_args, $purchase_data, $invoice ) { $paypal_args['lc'] = 'US'; /* language code, see supported locale codes https://developer.paypal.com/docs/classic/api/locale_codes/#supported-locale-codes */ return $paypal_args; } add_filter( 'wpinv_paypal_args', '_wpi_custom_change_paypal_language', 10, 3 );
Kiran
-
AuthorPosts