latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: keyhanjun

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To


Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
s2Member / Translate: "We Accept PayPal®"

By:  keyhanjun in: Community Forum

voices: 3
replies: 5

4 years, 6 months ago  Jason (Lead Developer)

Checkout page / Your Profile / Create Profile

By:  keyhanjun in: Community Forum

voices: 2
replies: 2

4 years, 8 months ago  keyhanjun

Viewing 3 topics - 1 through 3 (of 3 total)

My Latest Replies (From Various Topics)

Viewing 11 replies - 1 through 11 (of 11 total)
Author Replies
Author Replies
Posted: Sunday Jun 17th, 2012 at 12:22 pm #16730
keyhanjun
Username: keyhanjun

It seems you are right. Using Poedit I have no problems finding these strings.

But since “CodeStyling Localization” is recommended in the FAQ & far more user-friendly maybe it could be fixed in a future version of s2Member.

Thank you Eduan. ;)

Posted: Friday Jun 8th, 2012 at 10:34 pm #16025
keyhanjun
Username: keyhanjun

Hi Jason,

just a reminder/feedback:

Using Version 120608 now it is still not translatable via the plugin “CodeStyling Localization”.

Thanks.

  • This reply was modified 4 years, 7 months ago by  keyhanjun.
Posted: Sunday May 6th, 2012 at 7:59 am #12755
keyhanjun
Username: keyhanjun

Finally I succeeded! :)

Here is the code I modified of the file “paypal-sp-checkout-form.php” which I copied in the root folder of my theme:

<?php
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
	exit("Do not access this file directly.");
?>

<form name="mailer" id="s2member-pro-paypal-sp-checkout-form" class="s2member-pro-paypal-form s2member-pro-paypal-sp-checkout-form" method="post" action="%%action%%">
	
	<!-- Response Section ( this is auto-filled after form submission ). -->
	<div id="s2member-pro-paypal-sp-checkout-form-response-section" class="s2member-pro-paypal-form-section s2member-pro-paypal-sp-checkout-form-section s2member-pro-paypal-form-response-section s2member-pro-paypal-sp-checkout-form-response-section">
		<div id="s2member-pro-paypal-sp-checkout-form-response-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-response-div s2member-pro-paypal-sp-checkout-form-response-div">
			%%response%%
		</div>
		<div style="clear:both;"></div>
	</div>
	
	<!-- Checkout Description ( this is the desc="" attribute from your Shortcode ). -->
	<div id="s2member-pro-paypal-sp-checkout-form-description-section" class="s2member-pro-paypal-form-section s2member-pro-paypal-sp-checkout-form-section s2member-pro-paypal-form-description-section s2member-pro-paypal-sp-checkout-form-description-section">
		<div id="s2member-pro-paypal-sp-checkout-form-description-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-description-div s2member-pro-paypal-sp-checkout-form-description-div">
			%%description%%
		</div>
		<div style="clear:both;"></div>
	</div>
	
	<!-- Coupon Code ( this will ONLY be displayed if your Shortcode has this attribute: accept_coupons="1" ). -->
	<div id="s2member-pro-paypal-sp-checkout-form-coupon-section" class="s2member-pro-paypal-form-section s2member-pro-paypal-sp-checkout-form-section s2member-pro-paypal-form-coupon-section s2member-pro-paypal-sp-checkout-form-coupon-section">
		<div id="s2member-pro-paypal-sp-checkout-form-coupon-section-title" class="s2member-pro-paypal-form-section-title s2member-pro-paypal-sp-checkout-form-section-title s2member-pro-paypal-form-coupon-section-title s2member-pro-paypal-sp-checkout-form-coupon-section-title">
			<?php echo _x ("Coupon Code", "s2member-front", "s2member"); ?>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-coupon-response-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-coupon-response-div s2member-pro-paypal-sp-checkout-form-coupon-response-div">
			%%coupon_response%% <!-- A Coupon response ( w/Discounts ) will be displayed here; based on the Coupon Code that was entered. -->
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-coupon-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-coupon-div s2member-pro-paypal-sp-checkout-form-coupon-div">
			<label for="s2member-pro-paypal-sp-checkout-coupon" id="s2member-pro-paypal-sp-checkout-form-coupon-label" class="s2member-pro-paypal-form-coupon-label s2member-pro-paypal-sp-checkout-form-coupon-label">
				<span><?php echo _x ("Have a Coupon Code? ( please enter it here )", "s2member-front", "s2member"); ?></span><br />
				<input type="text" maxlength="100" autocomplete="off" name="s2member_pro_paypal_sp_checkout[coupon]" id="s2member-pro-paypal-sp-checkout-coupon" class="s2member-pro-paypal-coupon s2member-pro-paypal-sp-checkout-coupon" value="%%coupon_value%%" tabindex="1" />
			</label>
			<input type="button" id="s2member-pro-paypal-sp-checkout-coupon-apply" class="s2member-pro-paypal-coupon-apply s2member-pro-paypal-sp-checkout-coupon-apply" value="<?php echo esc_attr (_x ("Apply Coupon", "s2member-front", "s2member")); ?>" tabindex="-1" />
		</div>
		<div style="clear:both;"></div>
	</div>
	
	<!-- Contact Info/Details ( Name, Email ). -->
	<!-- Some of this information will be prefilled automatically when/if a User/Member is already logged-in. -->
	<!-- Name fields will NOT be hidden automatically here; even if your Registration/Profile Field options dictate this behavior. -->
	<div id="s2member-pro-paypal-sp-checkout-form-registration-section" class="s2member-pro-paypal-form-section s2member-pro-paypal-sp-checkout-form-section s2member-pro-paypal-form-registration-section s2member-pro-paypal-sp-checkout-form-registration-section">
		<div id="s2member-pro-paypal-sp-checkout-form-registration-section-title" class="s2member-pro-paypal-form-section-title s2member-pro-paypal-sp-checkout-form-section-title s2member-pro-paypal-form-registration-section-title s2member-pro-paypal-sp-checkout-form-registration-section-title">
			<?php echo _x ("Contact Info", "s2member-front", "s2member"); ?>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-first-name-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-first-name-div s2member-pro-paypal-sp-checkout-form-first-name-div">
			<label for="s2member-pro-paypal-sp-checkout-first-name" id="s2member-pro-paypal-sp-checkout-form-first-name-label" class="s2member-pro-paypal-form-first-name-label s2member-pro-paypal-sp-checkout-form-first-name-label">
				<span><?php echo _x ("First Name", "s2member-front", "s2member"); ?> *</span><br />
				<input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_paypal_sp_checkout[first_name]" id="s2member-pro-paypal-sp-checkout-first-name" class="s2member-pro-paypal-first-name s2member-pro-paypal-sp-checkout-first-name" value="%%first_name_value%%" tabindex="10" />
			</label>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-last-name-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-last-name-div s2member-pro-paypal-sp-checkout-form-last-name-div">
			<label for="s2member-pro-paypal-sp-checkout-last-name" id="s2member-pro-paypal-sp-checkout-form-last-name-label" class="s2member-pro-paypal-form-last-name-label s2member-pro-paypal-sp-checkout-form-last-name-label">
				<span><?php echo _x ("Last Name", "s2member-front", "s2member"); ?> *</span><br />
				<input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_paypal_sp_checkout[last_name]" id="s2member-pro-paypal-sp-checkout-last-name" class="s2member-pro-paypal-last-name s2member-pro-paypal-sp-checkout-last-name" value="%%last_name_value%%" tabindex="20" />
			</label>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-email-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-email-div s2member-pro-paypal-sp-checkout-form-email-div">
			<label for="s2member-pro-paypal-sp-checkout-email" id="s2member-pro-paypal-sp-checkout-form-email-label" class="s2member-pro-paypal-form-email-label s2member-pro-paypal-sp-checkout-form-email-label">
				<span><?php echo _x ("Email Address", "s2member-front", "s2member"); ?> *</span><br />
				<input type="text" aria-required="true" data-expected="email" maxlength="100" autocomplete="off" name="s2member_pro_paypal_sp_checkout[email]" id="s2member-pro-paypal-sp-checkout-email" class="s2member-pro-paypal-email s2member-pro-paypal-sp-checkout-email" value="%%email_value%%" tabindex="30" />
			</label>
		</div>
		<div style="clear:both;"></div>
	</div>
	
	<!-- Billing Method ( Customers can use a Credit/Debit card, or PayPal® w/Express Checkout ). -->
	<div id="s2member-pro-paypal-sp-checkout-form-billing-method-section" class="s2member-pro-paypal-form-section s2member-pro-paypal-sp-checkout-form-section s2member-pro-paypal-form-billing-method-section s2member-pro-paypal-sp-checkout-form-billing-method-section">
		<div id="s2member-pro-paypal-sp-checkout-form-billing-method-section-title" class="s2member-pro-paypal-form-section-title s2member-pro-paypal-sp-checkout-form-section-title s2member-pro-paypal-form-billing-method-section-title s2member-pro-paypal-sp-checkout-form-billing-method-section-title">
			<?php echo _x ("Billing Method", "s2member-front", "s2member"); ?>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-card-type-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-card-type-div s2member-pro-paypal-sp-checkout-form-card-type-div">
			%%card_type_options%%
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-card-number-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-card-number-div s2member-pro-paypal-sp-checkout-form-card-number-div">
			<label for="s2member-pro-paypal-sp-checkout-card-number" id="s2member-pro-paypal-sp-checkout-form-card-number-label" class="s2member-pro-paypal-form-card-number-label s2member-pro-paypal-sp-checkout-form-card-number-label">
				<span><?php echo _x ("Card Number ( no dashes or spaces )", "s2member-front", "s2member"); ?> *</span><br />
				<input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_paypal_sp_checkout[card_number]" id="s2member-pro-paypal-sp-checkout-card-number" class="s2member-pro-paypal-card-number s2member-pro-paypal-sp-checkout-card-number" value="%%card_number_value%%" tabindex="110" />
			</label>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-card-expiration-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-card-expiration-div s2member-pro-paypal-sp-checkout-form-card-expiration-div">
			<label for="s2member-pro-paypal-sp-checkout-card-expiration" id="s2member-pro-paypal-sp-checkout-form-card-expiration-label" class="s2member-pro-paypal-form-card-expiration-label s2member-pro-paypal-sp-checkout-form-card-expiration-label">
				<span><?php echo _x ("Card Expiration Date ( mm/yyyy )", "s2member-front", "s2member"); ?> *</span><br />
				<input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_paypal_sp_checkout[card_expiration]" id="s2member-pro-paypal-sp-checkout-card-expiration" class="s2member-pro-paypal-card-expiration s2member-pro-paypal-sp-checkout-card-expiration" value="%%card_expiration_value%%" tabindex="120" />
			</label>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-card-verification-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-card-verification-div s2member-pro-paypal-sp-checkout-form-card-verification-div">
			<label for="s2member-pro-paypal-sp-checkout-card-verification" id="s2member-pro-paypal-sp-checkout-form-card-verification-label" class="s2member-pro-paypal-form-card-verification-label s2member-pro-paypal-sp-checkout-form-card-verification-label">
				<span><?php echo _x ("Card Verification Code ( 3-4 digits )", "s2member-front", "s2member"); ?> * <a href="http://en.wikipedia.org/wiki/Card_security_code" target="_blank" tabindex="-1" rel="external nofollow"><?php echo _x ("need help?", "s2member-front", "s2member"); ?></a></span><br />
				<input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_paypal_sp_checkout[card_verification]" id="s2member-pro-paypal-sp-checkout-card-verification" class="s2member-pro-paypal-card-verification s2member-pro-paypal-sp-checkout-card-verification" value="%%card_verification_value%%" tabindex="130" />
			</label>
		</div>
		<!-- This is displayed only when Maestro®/Solo® cards are selected as the Payment Method. -->
		<div id="s2member-pro-paypal-sp-checkout-form-card-start-date-issue-number-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-card-start-date-issue-number-div s2member-pro-paypal-sp-checkout-form-card-start-date-issue-number-div">
			<label for="s2member-pro-paypal-sp-checkout-card-start-date-issue-number" id="s2member-pro-paypal-sp-checkout-form-card-start-date-issue-number-label" class="s2member-pro-paypal-form-card-start-date-issue-number-label s2member-pro-paypal-sp-checkout-form-card-start-date-issue-number-label">
				<span><?php echo _x ("Card Start Date ( mm/yyyy ), or Issue Number", "s2member-front", "s2member"); ?> *</span><br />
				<input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_paypal_sp_checkout[card_start_date_issue_number]" id="s2member-pro-paypal-sp-checkout-card-start-date-issue-number" class="s2member-pro-paypal-card-start-date-issue-number s2member-pro-paypal-sp-checkout-card-start-date-issue-number" value="%%card_start_date_issue_number_value%%" tabindex="140" />
			</label>
		</div>
		<div style="clear:both;"></div>
	</div>
	
	<!-- Billing Address ( hidden dynamically when/if PayPal® is selected as the Payment Method ). -->
	<div id="s2member-pro-paypal-sp-checkout-form-billing-address-section" class="s2member-pro-paypal-form-section s2member-pro-paypal-sp-checkout-form-section s2member-pro-paypal-form-billing-address-section s2member-pro-paypal-sp-checkout-form-billing-address-section">
		<div id="s2member-pro-paypal-sp-checkout-form-billing-address-section-title" class="s2member-pro-paypal-form-section-title s2member-pro-paypal-sp-checkout-form-section-title s2member-pro-paypal-form-billing-address-section-title s2member-pro-paypal-sp-checkout-form-billing-address-section-title">
			<?php echo _x ("Billing Address", "s2member-front", "s2member"); ?>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-street-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-street-div s2member-pro-paypal-sp-checkout-form-street-div">
			<label for="s2member-pro-paypal-sp-checkout-street" id="s2member-pro-paypal-sp-checkout-form-street-label" class="s2member-pro-paypal-form-street-label s2member-pro-paypal-sp-checkout-form-street-label">
				<span><?php echo _x ("Street Address", "s2member-front", "s2member"); ?> *</span><br />
				<input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_paypal_sp_checkout[street]" id="s2member-pro-paypal-sp-checkout-street" class="s2member-pro-paypal-street s2member-pro-paypal-sp-checkout-street" value="%%street_value%%" tabindex="200" />
			</label>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-city-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-city-div s2member-pro-paypal-sp-checkout-form-city-div">
			<label for="s2member-pro-paypal-sp-checkout-city" id="s2member-pro-paypal-sp-checkout-form-city-label" class="s2member-pro-paypal-form-city-label s2member-pro-paypal-sp-checkout-form-city-label">
				<span><?php echo _x ("City / Town", "s2member-front", "s2member"); ?> *</span><br />
				<input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_paypal_sp_checkout[city]" id="s2member-pro-paypal-sp-checkout-city" class="s2member-pro-paypal-city s2member-pro-paypal-sp-checkout-city" value="%%city_value%%" tabindex="210" />
			</label>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-state-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-state-div s2member-pro-paypal-sp-checkout-form-state-div">
			<label for="s2member-pro-paypal-sp-checkout-state" id="s2member-pro-paypal-sp-checkout-form-state-label" class="s2member-pro-paypal-form-state-label s2member-pro-paypal-sp-checkout-form-state-label">
				<span><?php echo _x ("State / Province", "s2member-front", "s2member"); ?> *</span><br />
				<input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_paypal_sp_checkout[state]" id="s2member-pro-paypal-sp-checkout-state" class="s2member-pro-paypal-state s2member-pro-paypal-sp-checkout-state" value="%%state_value%%" tabindex="220" />
			</label>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-country-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-country-div s2member-pro-paypal-sp-checkout-form-country-div">
			<label for="s2member-pro-paypal-sp-checkout-country" id="s2member-pro-paypal-sp-checkout-form-country-label" class="s2member-pro-paypal-form-country-label s2member-pro-paypal-sp-checkout-form-country-label">
				<span><?php echo _x ("Country", "s2member-front", "s2member"); ?> *</span><br />
				<select aria-required="true" name="s2member_pro_paypal_sp_checkout[country]" id="s2member-pro-paypal-sp-checkout-country" class="s2member-pro-paypal-country s2member-pro-paypal-sp-checkout-country" tabindex="230">
					%%country_options%%
				</select>
			</label>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-zip-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-zip-div s2member-pro-paypal-sp-checkout-form-zip-div">
			<label for="s2member-pro-paypal-sp-checkout-zip" id="s2member-pro-paypal-sp-checkout-form-zip-label" class="s2member-pro-paypal-form-zip-label s2member-pro-paypal-sp-checkout-form-zip-label">
				<span><?php echo _x ("Postal / Zip Code", "s2member-front", "s2member"); ?> *</span><br />
				<input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_paypal_sp_checkout[zip]" id="s2member-pro-paypal-sp-checkout-zip" class="s2member-pro-paypal-zip s2member-pro-paypal-sp-checkout-zip" value="%%zip_value%%" tabindex="240" />
			</label>
		</div>
		<div id="s2member-pro-paypal-sp-checkout-form-ajax-tax-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-ajax-tax-div s2member-pro-paypal-sp-checkout-form-ajax-tax-div">
			<!-- Sales Tax will be displayed here via Ajax; based on state, country, and/or zip code range. -->
		</div>
		<div style="clear:both;"></div>
	</div>
	
	<!-- Captcha ( A reCaptcha section, with a required security code will appear here; if captcha="1" ). -->
	%%captcha%%
	
	<!-- Checkout Now ( this holds the submit button, and also some dynamic hidden input variables ). -->
	<div id="s2member-pro-paypal-sp-checkout-form-submission-section" class="s2member-pro-paypal-form-section s2member-pro-paypal-sp-checkout-form-section s2member-pro-paypal-form-submission-section s2member-pro-paypal-sp-checkout-form-submission-section">
		<div id="s2member-pro-paypal-sp-checkout-form-submission-section-title" class="s2member-pro-paypal-form-section-title s2member-pro-paypal-sp-checkout-form-section-title s2member-pro-paypal-form-submission-section-title s2member-pro-paypal-sp-checkout-form-submission-section-title">
			<?php echo _x ("Checkout Now", "s2member-front", "s2member"); ?>
		</div>
		%%opt_in%% <!-- s2Member will fill this when/if there are list servers integrated, and the Opt-In Box is turned on. -->
		<div id="s2member-pro-paypal-sp-checkout-form-submit-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-sp-checkout-form-div s2member-pro-paypal-form-submit-div s2member-pro-paypal-sp-checkout-form-submit-div">
			%%hidden_inputs%% <!-- Auto-filled by the s2Member software. Do NOT remove this under any circumstance. -->
			<input type="submit" id="s2member-pro-paypal-sp-checkout-submit" class="s2member-pro-paypal-submit s2member-pro-paypal-sp-checkout-submit" value="<?php echo esc_attr (_x ("Submit Form", "s2member-front", "s2member")); ?>" tabindex="500" />
		</div>
		<div id="acceptagb" class="agb">
		<input type="Checkbox" name="agb" value="inhalt"> Ich akzeptiere die AGBs.
		</div>
		<div style="clear:both;"></div>
</div>
	
	
	
</form>

<script type="text/javascript">
(function($)
    {
        $('form#s2member-pro-paypal-sp-checkout-form').submit (function()
            {
                if (document.mailer.agb.checked==false)
                    {
                        alert('Please check the box that you agree!');
                        return false;
                    }
                else
                    return true;
            });
    })(jQuery);
</script>
  • This reply was modified 4 years, 8 months ago by  keyhanjun.
Posted: Saturday May 5th, 2012 at 7:51 am #12664
keyhanjun
Username: keyhanjun

Hi,

please check out this little but helpful WP plugin called: “WP Show IDs ( simple, yet elegant )”.

>>> http://wordpress.org/extend/plugins/wp-show-ids/

Hope this helps. ;)

Posted: Saturday May 5th, 2012 at 7:24 am #12661
keyhanjun
Username: keyhanjun

Thanks for you quick reply. ;)

In your mentioned thread s_d_p said:

Aha. The custom field DOES appear on my registration form for my site. But this is not the solution to my questions. I want to add a custom field (terms/conditions) to my PRO FORM when a user buys access to a specific page/post. So I guess I’m restating my question: can I add a custom field to my pro form?

This is exactly what I am trying too.

Jason Caldwell answered to him:

What you CAN do though, is create a custom template for Specific Post/Page Access, and build a checkbox for T&C into your template. Then specify your custom template in the Pro Form Shortcode for s2Member.

[s2Member-PayPal-Pro-Form ... template="my-template.php" /]

( This Shortcode is abbreviated for clarity in this regard )

Is it possible to modify the PayPal® and/or Authorize.Net® Pro Form templates?
Usually not necessary. But yes, if you really need to. Please check your /s2member-pro/includes/templates/forms/ directory. You can take the default templates, and place some ( or all of them ) into your own WordPress® theme directory. s2Member Pro will automatically find your custom templates there. By placing custom templates into your theme directory, you can be sure they won’t get overwritten in a future upgrade. Either that, or you can just use the default templates like they are, and customize them with your own CSS rules inside the Stylesheet for your WordPress® theme ( i.e. style.css ). If you’re using a PriMo Theme ( for instance, the s2Clean Theme ), check your Theme Options Panel, under: Custom CSS / Style Sheet.

So, in your case, take this file:
/s2member-pro/includes/templates/forms/paypal-sp-checkout-form.html
Make a copy in your WordPress theme directory and modify it however you like. If you rename the template file, be sure to specify the new name in the template=”” Attribute of your Shortcode.

Ok I will follow this tip. Seems no problem. :)

Then s_d_p asked this:

This is great. Exactly what I was looking for. One follow-up question…
I need to make my “Terms and Conditions” checkbox mandatory. Can you point me to the script that handles the form? (The template file has a %%action%% shortcode)

Jason Caldwell answered:

Very welcome.
Add an submission handler to the Pro Form.

Something like this at the bottom of your template file perhaps:

<script type="text/javascript">
(function($)
    {
        $('form#s2member-pro-authnet-sp-checkout-form').submit (function()
            {
                if (/* Run your conditional here. */)
                    {
                        alert('Please check the box that you agree!');
                        return false;
                    }
                else
                    return true;
            });
    })(jQuery);
</script>

Question:

Can you please give an example of the needed syntax of this mentioned “/* Run your conditional here. */” ?

I guess the conditional logic I would need would be:

if the user has not checked the Terms & Condition box >>> show the alert / else >>> do not show the alert

Thanks. ;)

  • This reply was modified 4 years, 8 months ago by  keyhanjun.
  • This reply was modified 4 years, 8 months ago by  keyhanjun.
Posted: Friday May 4th, 2012 at 5:35 pm #12611
keyhanjun
Username: keyhanjun

Request:
I highly second this request. Please add this feature to use our self defined “Custom Registration/Profile Fields” in all pro forms asap. ;)

Question:

Since it is not possible right now can you please explain how you got this checkbox (single) with the content: “Yes, I want to receive updates from s2Member® via email!” under the “Checkout Now” section on this page?

https://www.s2member.com/unlimited-site-co/?s2-ssl=yes

You should see it when you are logged in & still do not have bought/upgrade it.

That would be a nice workaround in the meantime if I could change it to: “Yes, I have read & agree to these Terms & Conditions”. ;)

Thanks.

  • This reply was modified 4 years, 8 months ago by  keyhanjun.
  • This reply was modified 4 years, 8 months ago by  keyhanjun.
  • This reply was modified 4 years, 8 months ago by  keyhanjun.
Posted: Thursday May 3rd, 2012 at 2:11 pm #12498
keyhanjun
Username: keyhanjun

Thank you very much for clarification. Will try it out soon – now with Pro power! ;)

Posted: Thursday May 3rd, 2012 at 12:56 pm #12480
keyhanjun
Username: keyhanjun

Read a bit further. Isn’t this an option/possibility for you?

Although not ideal, it’s also possible to integrate s2Member® Pro Forms with only PayPal® Express Checkout (no PayPal® Pro account required). If you are unable to obtain a PayPal® Pro account, and you’re unable to obtain an Authorize.Net® account, you can still use s2Member® Pro Forms with the free version of PayPal®, by following these instructions:

Ask PayPal® to activate Express Checkout for you (which is free, and usually enabled by default). PayPal® Express Checkout will give you API Credentials, and you’ll enter these into your WordPress® Dashboard, under: s2Member® -> PayPal Options.
In your s2Member® Pro Form Shortcode for WordPress®, change this: accept_via_paypal=”paypal” to: accept_via_paypal=”paypal,visa,mastercard,amex,discover,maestro,solo”. This way all customers are ultimately passed over to PayPal® Express Checkout to complete their purchase. You won’t have the ability to process on-site credit cards if you only have PayPal® Express Checkout, but for some site owners that’s not an issue.

  • This reply was modified 4 years, 8 months ago by  keyhanjun.
Posted: Thursday May 3rd, 2012 at 12:07 pm #12475
keyhanjun
Username: keyhanjun

Hi,

here is what I found in the faq:

>>> http://www.s2member.com/faqs/#s2-faqs-paypal-pro-not-required

Hope this helps. ;)

Posted: Wednesday May 2nd, 2012 at 8:32 am #12367
keyhanjun
Username: keyhanjun

Hi,

@boudewijn lutgerink

this is not quite correct regarding the Login form using the free plugin. Please check out this video tutorial for a better understanding:

>>> http://www.s2member.com/videos/85E41C40550808C2/

Regarding the “Registration Form” you are right. Only available through the Paypal Pro forms.

Hope this helps. ;)

  • This reply was modified 4 years, 8 months ago by  keyhanjun.
  • This reply was modified 4 years, 8 months ago by  keyhanjun.
  • This reply was modified 4 years, 8 months ago by  keyhanjun.
  • This reply was modified 4 years, 8 months ago by  keyhanjun.
  • This reply was modified 4 years, 8 months ago by  keyhanjun.
Posted: Tuesday May 1st, 2012 at 4:13 pm #12315
keyhanjun
Username: keyhanjun

Hi,

please check out this topic:

>>> http://www.s2member.com/forums/topic/buddypress-with-s2member-pro/

Hope this helps. ;)

Viewing 11 replies - 1 through 11 (of 11 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.