Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact
You are here: Home

kotoko

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 30, 2020 at 1:23 am in reply to: Email line break issues: What is the difference between two mail body fields? #17627
    kotoko
    Participant

    Thank The Assurer for the reply.

    I have read that before so that I looked into wp_mail(text/plain, text/html)matters and then I added <br> thinking it would not work.

    I forgot to writing this:

    I texted these input&output in the mail body field of “Send a Quick Notification Email” at first.

    【Input 1】

    Dear {first_name} {last_name},

    Your account status has been updated! Please login to the member area at the following URL:

    {login_link}

    Thank You

    【Output 1】

    Dear ▲▲ ▲▲,

    Your account status has been updated! Please login to the member area at the following URL:

    domain.com/login/

    Thank You

    【Input 2】

    {last_name} {first_name} 様

    アカウントが更新されました。

    下記のURLからログインし、更新内容をご確認いただけます。

    {login_link}

    よろしくお願いいたします。

    Dear {first_name} {last_name},

    Your account status has been updated! Please login to the member area at the following URL:

    {login_link}

    Thank You

    【Output 2】

    様 アカウントが更新されました。下記のURLからログインし、更新内容をご確認いただけます。domain.com/login/ よろしくお願いいたします。Dear xx, Your account status has been updated! Please login to the member area at the following URL: domain.com/login/ Thank You

     

    I like Simple Membership plugin and all I can do is reporting what happened.

    Email format is crucial to build relationship with users.

    (I know this is off topic, but without-line-break-email-issue happened in Contan Form 7 Plugin before.
    After several months, it was solved. I don’t know it was because of WordPress update or plugin update or something else.)

    I hope the solution will be figured out.

    Best regards.

    April 15, 2019 at 5:38 am in reply to: Stripe Checkout box translation #17902
    kotoko
    Participant

    Hi, I found the code which popup Stripe checkout box was translated successfully!

    Here is the original code in plugins/simple-membership/views/payments/payment-gateway/stripe_button_shortcode_view.php.
    Could you read the key points in this order?: ※1→※2→※3

    	/* === Stripe Buy Now Button Form === */
    	$output = '';
    	$output .= '<div class="swpm-button-wrapper swpm-stripe-buy-now-wrapper">';
    	$output .= "<form action='" . $notify_url . "' METHOD='POST'> ";
    	$output .= "<div style='display: none !important'>";
    
    	$output .= "<script src='https://checkout.stripe.com/checkout.js' class='stripe-button'
    		data-key='" . $publishable_key . "'
    
    ※2 This line was removed because it affected data-locale='auto'. By removing this line, "pay" was translated.
    		data-panel-label='Pay'
    
    		data-amount='{$price_in_cents}'
    		data-name='{$item_name}'";
    
    ※1 I found that web browser didn't read these three lines.
    When these three were put into above $output, web browser read these, and Stripe checkout box was translated successfully except currency and "Pay" translation.
    	$output .= "data-description='{$payment_amount} {$payment_currency}'";
    	$output .= "data-locale='auto'";
    	$output .= "data-label='{$button_text}'"; //Stripe doesn't currenty support button image for their standard checkout.
    
    ※3 This line includes two key points for translating currency symbol. 
    First, this line needed to be put just after data-locale line. Order was important. 
    Second, I think {$payment_currency} output uppercase letters. However data-currency needed lowercase letters. 
    Two key points were needed at the same time in order to translate currency symbol.
    (I didn't know how to change uppercase letters into lowercase letters here, so that I wrote 'jpy' directly at the moment. Could you help me?)
    	$output .= "data-currency='{$payment_currency}'";
    
    		if (!empty($item_logo)) {//Show item logo/thumbnail in the stripe payment window
    			$output .= "data-image='{$item_logo}'";
    		}
    		if (!empty($billing_address)) {//Show billing address in the stipe payment window
    			$output .= "data-billing-address='true'";
    		}
    	$output .= apply_filters('swpm_stripe_additional_checkout_data_parameters', ''); //Filter to allow the addition of extra data parameters for stripe checkout.
    	$output .= "></script>";
    	$output .= '</div>';

    Here is the code Stripe checkout box translated successfully. Transaction worked successfully as well.

    	/* === Stripe Buy Now Button Form === */
    	$output = '';
    	$output .= '<div class="swpm-button-wrapper swpm-stripe-buy-now-wrapper">';
    	$output .= "<form action='" . $notify_url . "' METHOD='POST'> ";
    	$output .= "<div style='display: none !important'>";
    
    	$output .= "<script src='https://checkout.stripe.com/checkout.js' class='stripe-button'
    		data-key='" . $publishable_key . "'
    
    		data-amount='{$price_in_cents}'
    		data-name='{$item_name}'
    		data-description='{$payment_amount} {$payment_currency}'
    		data-locale='auto'
    		data-currency='jpy'
    		data-label='{$button_text}'//Stripe doesn't currenty support button image for their standard checkout.
    			if (!empty($item_logo)) {//Show item logo/thumbnail in the stripe payment window
    				data-image='{$item_logo}'
    			}
    			if (!empty($billing_address)) {//Show billing address in the stipe payment window
    				data-billing-address='true'
    			}
    	";
    
    	$output .= apply_filters('swpm_stripe_additional_checkout_data_parameters', ''); //Filter to allow the addition of extra data parameters for stripe checkout.
    	$output .= "></script>";
    	$output .= '</div>';

    In this code, I wrote data-currency=’jpy’ directly.
    If the issue of this part can be solved and you think this code is okay for everyone, could you consider of including this fix into next plugin update?

    As always, thank you for wonderful plugin (and documentation which is very easy to understand) and your supports.

    Best regards.

    April 14, 2019 at 12:05 pm in reply to: Stripe Checkout box translation #17899
    kotoko
    Participant

    Hi, thank you for the reply.

    I am a little bit confused.

    When I tried this code on my website as stripe suggested on this page, popup Stripe checkout was translated.

    <form action="your-server-side-code" method="POST"><script
        src="https://checkout.stripe.com/checkout.js" class="stripe-button"
        data-key="●●"
        data-amount="999"
        data-name="▲▲"
        data-description="Widget"
        data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
        data-locale="auto"
        data-currency="jpy">
      </script></form>

    I wonder what the difference is.
    Okay, I will ask Stripe.

    Thank you for your help.

    Best regards.

    April 14, 2019 at 9:14 am in reply to: Stripe Checkout box translation #17893
    kotoko
    Participant

    P.S. Is popup Stripe checkout box with Simple Membership supposed to be translated according to location like Paypal?

    April 14, 2019 at 8:44 am in reply to: Stripe Checkout box translation #17891
    kotoko
    Participant

    Hi, thank you for the reply.

    I would like to tell you that my issue is not solved yet.
    (In the last post, I tried to explain the situation.)

    Popup Stripe checkout box is not translated.

    Best regards.

    April 14, 2019 at 7:27 am in reply to: Stripe Checkout box translation #17888
    kotoko
    Participant

    Hi, thank you for the reply.
    (Loco Translation Plugin helped me a lot to translate other parts. Thank you for your help!)

    I created the Stripe Buy now Button following the documentation, and I checked Payment Currency was selected Japanese Yen.

    (The setting works for transaction of Japanese Yen.)

    Best regards.

    April 14, 2019 at 3:01 am in reply to: Stripe Checkout box translation #17884
    kotoko
    Participant

    Thank you for the reply and your help.

    I installed Loco Translate Plugin, clicked Plugin>SimpleWordpressMembership>日本語(Japanese)>Edit, and searched “Pay” text.
    But I could not find it.

    Best regards

    March 15, 2019 at 7:13 am in reply to: a data confirming step(like a table version) before a new register is submitted #17617
    kotoko
    Participant

    Hi, thank you for the reply.

    I hope Simple Membership will be used by many people for a long time. I am looking forward to a new development.

    Thanks again for everyone’s effort.

    Best regards.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
Next Page »

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy