Jump to content

Show Message To Certain Product Groups


DavidBee

Recommended Posts

Hi,

 

we are looking to display a two separate messages to our shared and reseller hosting clients.

 

I have been trying many combinations if conditional stalemates but unable to get it to work.

 

Any assistance would be appreciated.!

You could:

 

a) Use "Welcome Email" feature. It's the best option but idk what kind of message you are trying to send. Maybe a welcome email? Renewal notice?

b) Use Smarty in email templates for conditional display

{if $client_group_id eq "1"}

Dear {$client_name},

You have a shared hosting!

{$signature}

{else}

Dear {$client_name},

You have a reseller account!

{$signature}

{/if}

Link to comment
Share on other sites

I don't understand where you want to display this message. Anyway let's say that you want to display it in viewcart.tpl. Open it, add {debug} and look for the array which contains che gid (group id) that you are looking for. Finally use the if statement with Smarty.

{if $whatever.gid eq '10'}Group ID 10 has been selected{/if}

Link to comment
Share on other sites

In this case create a php, let's say checker.php, where you make a query to database to test if the logged user has the specific product "Active" under his account. Then send the output with your message (you can also make it in multi-language) to checker.tpl and include it in header.tpl or footer.tpl or wherever you want to display it. Short and simple.

Link to comment
Share on other sites

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