Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration
You are here: Home

Olik

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

Forum Replies Created

Viewing 9 posts - 16 through 24 (of 24 total)
← 1 2
  • Author
    Posts
  • May 30, 2016 at 2:07 pm in reply to: eMember – WP login and eMember login #52947
    Olik
    Member

    for the future readers – if I understand it correctly, now eMember does have the option to login using email and password, with an extra addon. Right?

    April 29, 2016 at 1:16 pm in reply to: How to cancel a subscription or recurring payment #31481
    Olik
    Member

    And what is the merchant id we should put as an alias?

    April 28, 2016 at 10:51 pm in reply to: How to cancel a subscription or recurring payment #31479
    Olik
    Member

    what if we have several products-subscriptions, several membership levels user can be a member in simultaneously, and the user wants to cancel only one of them, – how can we define, for which product (membership level) it is, in the canceling shortdode:

    [wp_eMember_cancel_subscription_link alias="XYZ"]?

    and for the user himself, what will PayPal do, when clicking on that button – cancel all subscriptions he has with us, or give him a choice?

    and what is PayPal merchand id that should be put as alias, is it our paypal email address?

    thank you!

    April 26, 2016 at 3:22 pm in reply to: eStore – Email Settings – how to use for multilangauge site #68049
    Olik
    Member

    Actually, for emails there can be a very simple solution, not requiring any code changes anywhere: the email bodies can just contain texts in both languages, and these combined texts can be entered in Settings for TTHQ plugins (I’ll call them “your plugins” here).

    But that’s not the solution I wanted to suggest. Since I value very highly seamless integration, and therefore not changing your plugins code, what I was thinking, when trying to find a solution, was how I could hack the path, on which your plugins get these values. And I found the way.

    The trick is in using filters. Your plugins get these values with get_option, and fortunately, we have not only option filter, but even pre_option filter, that is called before going to database.

    So, the algorithm roughly is like the following:

    1. in Plugin Organizer, load Polylang first

    2. in your own (client) functions define filters for all get_option that eStore & … use. It is simple to find them all at: wp-admin/options.php

    3. redefine the option filter for language, too, using conversion from Polylang values to eStore file names, like in the example code below.

    For WP eMember:

    all is in eMember_configs, so replace emails there,

    all messages (that content is not available, for example, and so on) define in shortcode attributes and your own text (for each page), or use your __(),

    in forms hide fields text is stubborn in, and add yours with same links,

    (you can always use jQuery as well! if Polylang vars are not available there, pass them with wp_localize_script, and then replace everything in page as you like.

    interesting to use wp_localize_script by its direct purpose, too :)

    why: you cannot (you better not) change the eStore code, where they create those forms, to insert there your text. But you can hide elements with css and then append or replace text and show, with jQuery)

    for the rest hope it’s more or less international :) ♥

    For eStore:

    for the eStore_cart_language define pre_option filter applying conversion like in the following (what you’re interested in, is only the file names):

    `else if (ICL_LANGUAGE_CODE == “en”){

    $language_file = “languages/eng.php”;

    }

    else if (ICL_LANGUAGE_CODE == “de”){

    $language_file = “languages/ger.php”;

    }

    else if (ICL_LANGUAGE_CODE == “fr”){

    $language_file = “languages/fr.php”;

    }`

    like it’s said at https://support.tipsandtricks-hq.com/forums/topic/multilanguage-support/page/2#post-28494

    and define pre_option filters for all emails, returning them accordingly to your language.

    For WP Affiliate:

    thank God all is available as for eStore: wp_aff_language & email bodies, too.

    Interesting how pages in affiliate center are created. Maybe changing wp_aff_language will take care of it.

    That’s it.

    It is not all in one place, but you will be able to update eStore &… plugins easily and surely, directly uploading zip files (just change permissions recursively after, if your hosting has rules that don’t suit you).

    What’s exciting, is that GetResponse integration can be changed accordingly so that it would send your contact language as a custom field (tag) to GR, so that even there, at GR, using their if-then-else, emails can be sent in a language, matching the contact.

    Good luck & ease to us all. :)

    April 25, 2016 at 11:04 pm in reply to: eStore – Email Settings – how to use for multilangauge site #68047
    Olik
    Member

    Actually, I might have a solution for this, both the labels, and the emails. Without changing TipsAndTricks plugins. Are you interested to see it?

    April 13, 2016 at 9:00 pm in reply to: Affiliate Platform – Retrieving Affiliate ID (Showing affiliate ID) #46716
    Olik
    Member

    Oh, how wonderful!! Thank you!!

    April 6, 2016 at 10:09 pm in reply to: Affiliate Platform – Retrieving Affiliate ID (Showing affiliate ID) #46714
    Olik
    Member

    I wonder why swilliams didn’t ask – what you referred him to, was showing the affiliate id of the referrer (right?), and not “show a logged in affiliate their affiliate id”.

    How can we show a logged in affiliate their own affiliate id? Not sending him or us to the affiliate center to find that.

    Thank you!

    April 5, 2016 at 10:17 pm in reply to: eMember – How to replace CSS, to customize the look, for login and registration #72942
    Olik
    Member

    Thank you! :)

    Regarding the removing – I just wanted to make it hand-free, as much as possible, for the future. When I dequeue it, the code of dequeuing is in my child theme files, so I won’t need to update anything again, when I install new versions of the plugin.

    November 27, 2015 at 2:57 pm in reply to: PDF Stamper – PHP version changed #71967
    Olik
    Member

    Thank you very much!

  • Author
    Posts
Viewing 9 posts - 16 through 24 (of 24 total)
← 1 2

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ