Jump to content

custom message for specific product group


Chad

Recommended Posts

I need to post a custom message for a specific product group (dedicated servers) using some kind of "if" conditional per se.

 

Anyone know how this can be done and what file must be edited? Actually, I want it specifically on the product config page.

 

Thanks

Link to comment
Share on other sites

  • 11 months later...

This would be very helpful. If an active client has ordered a product from a specific group (I.E Web Hosting or Paid Support, or Dedicated Servers) how can I merge a conditional statement to clients in this group.

 

For instance on invoice payment reminders it would be extremely helpful to let these clients know specifically what happens when their account is not renewed within a period of time.

Link to comment
Share on other sites

  • 4 months later...

John,

 

The bottom of the email template page gives the following detail:

Conditional Display

You can use conditionals to display text based on other values - for example:

 

{if $ticket_department eq "Sales"}

Sales only operates Monday-Friday 9am-5pm

{else}

Your ticket has been received and will be answered shortly

{/if}

 

Looping through data

A foreach loop can be used to cycle through values like invoice items:

 

{foreach from=$array_data item=data}

{$data.option}: {$data.value}

{/foreach}

 

It would be extremely helpful to see some actual working examples.

 

For instance, let's talk invoice/product renewal reminders.

The need is to be able to have conditional statements for the specific product(s) in that are up for renewal.

i.e. If you have product "a" what happens if you let it expire or if you have product "b" or "c" what happens when this expires - or even a better scenario is including a coupon code for their specific product that is soon expiring.

 

Perhaps this is all very simple to input on the email templates?

Could you post this here or on the documentation in reference to email templates for easy reference? (looked high and low for this - did I miss it?)

Link to comment
Share on other sites

  • 7 months later...
  • 1 month later...

Could anyone shed light on the best way to loop through a clients list of domains?

 

I've just imported their account with a bunch of domains and would like to send one email with a list of the updated domains in the account

 

How to do this via the foreach command?

Link to comment
Share on other sites

  • 3 months later...

I still haven't managed to get this working.

 

I've emailed support and will post the answer here! :-)

 

 

Basically, I just want to create a new email template that, when selected, will send the customer an email showing a list of their services / products.

 

Here is my code - if anyone can check it and tell me if it works, I'd be grateful (I can't test myself as my test accounts all have dummy domains that don't show in the email as they aren't actually registered)

 

Dear {$client_first_name}

 

Here's a list of your current domains:

 

Domains:

{foreach from=$array_data item=$domain_name}

{$domain_name}: {$domain_expiry_date}

{/foreach}

 

Hosting Products:

{foreach from=$array_data item=$service_product_name}

{$service_product_name}: {$service_next_due_date}

{/foreach}

 

 

I would appreciate some feedback.

Thanks

Sol

Edited by sol2010
Link to comment
Share on other sites

Here's a list of your current domains:

 

Domains:

{foreach from=$array_data item=$domain_name}

{$domain_name}: {$domain_expiry_date}

{/foreach}

 

Hosting Products:

{foreach from=$array_data item=$service_product_name}

{$service_product_name}: {$service_next_due_date}

{/foreach}

 

Of course you could go with the really simple solution

"Dear client, you can access the list of your domains and your products at any time in your client area at http://....." :D

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated