Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Driving me nuts. How to exclude results on match.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Restafval
Smarty n00b


Joined: 18 Mar 2021
Posts: 4

PostPosted: Thu Mar 18, 2021 1:54 pm    Post subject: Driving me nuts. How to exclude results on match. Reply with quote

[removed for privacy reasons]

Last edited by Restafval on Wed Mar 24, 2021 7:27 am; edited 3 times in total
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Thu Mar 18, 2021 5:11 pm    Post subject: Reply with quote

Why do you use strstr at all to begin with?
Back to top
View user's profile Send private message
Restafval
Smarty n00b


Joined: 18 Mar 2021
Posts: 4

PostPosted: Fri Mar 19, 2021 8:13 am    Post subject: Reply with quote

[removed for privacy reasons]

Last edited by Restafval on Wed Mar 24, 2021 7:27 am; edited 2 times in total
Back to top
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Sat Mar 20, 2021 4:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Restafval
Smarty n00b


Joined: 18 Mar 2021
Posts: 4

PostPosted: Mon Mar 22, 2021 12:11 pm    Post subject: Reply with quote

[removed for privacy reasons]

Last edited by Restafval on Wed Mar 24, 2021 7:27 am; edited 1 time in total
Back to top
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Wed Mar 24, 2021 3:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Restafval
Smarty n00b


Joined: 18 Mar 2021
Posts: 4

PostPosted: Wed Mar 24, 2021 7:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP