|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Restafval Smarty n00b
Joined: 18 Mar 2021 Posts: 4
|
Posted: Thu Mar 18, 2021 1:54 pm Post subject: Driving me nuts. How to exclude results on match. |
|
|
[removed for privacy reasons]
Last edited by Restafval on Wed Mar 24, 2021 7:27 am; edited 3 times in total |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Mar 18, 2021 5:11 pm Post subject: |
|
|
Why do you use strstr at all to begin with? |
|
Back to top |
|
Restafval Smarty n00b
Joined: 18 Mar 2021 Posts: 4
|
Posted: Fri Mar 19, 2021 8:13 am Post subject: |
|
|
[removed for privacy reasons]
Last edited by Restafval on Wed Mar 24, 2021 7:27 am; edited 2 times in total |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Sat Mar 20, 2021 4:19 pm Post subject: |
|
|
Are the email contents reflective of what was actually subscribed to, or is this a marketing email describing what is available?
If a summary of what was subscribed to, does the array $configoption contain the actual purchased plan? |
|
Back to top |
|
Restafval Smarty n00b
Joined: 18 Mar 2021 Posts: 4
|
Posted: Mon Mar 22, 2021 12:11 pm Post subject: |
|
|
[removed for privacy reasons]
Last edited by Restafval on Wed Mar 24, 2021 7:27 am; edited 1 time in total |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Wed Mar 24, 2021 3:45 am Post subject: |
|
|
You said:
Quote: | On the order form there is an option called "Performance model", which has 4 options (Slow, Medium, Normal and Fast).
If you select "slow" or "medium" it will show a new option field with two options "No extra core (1 core total)" and "Yes, from 1 to 2 cores".
When you select "normal" or "fast" it will show a new option field with three options "No extra cores (2 cores total)", "Yes, from 2 to 3 cores" and "Yes, from 2 to 4 cores". |
So, this order form on a web page is probably javascript-powered. The javascript sees the primary choice and rewrites the second-level and possibly the third-level choices.
I honestly do not know if email clients allow any included javascript to run. I would hope not.
But even so, Smarty's involvement ends once the email template has been compiled (and eventually) dispatched.
Your solution is to write the javascript to power the selectors. And hope the email client allows that javascript to execute. |
|
Back to top |
|
Restafval Smarty n00b
Joined: 18 Mar 2021 Posts: 4
|
Posted: Wed Mar 24, 2021 7:26 am Post subject: |
|
|
Well created a simple Smarty workaround based on the current situation. I shouldn't have created a thread about this here apparently... |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|