• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Auchi
#1 Posted : Thursday, February 15, 2007 12:41:08 PM(UTC)
Auchi

Rank: Member

Joined: 1/8/2007(UTC)
Posts: 79

Easy question:


Is it any way or code I can write for an E-mail Template to auto-insert the content of a policy?



Thanks for all the help you've been giving me this last days.



Auchi.- :turn:
Nick Alberti
#2 Posted : Thursday, February 15, 2007 12:54:13 PM(UTC)
Nick Alberti

Rank: Member

Joined: 9/27/2004(UTC)
Posts: 1,099

Do you have access to the full source code?
Auchi
#3 Posted : Thursday, February 15, 2007 1:28:14 PM(UTC)
Auchi

Rank: Member

Joined: 1/8/2007(UTC)
Posts: 79

Which one?
The source of the Template or the source of the policy.



My idea was in the e mail template editor (under the BVAdmin) add a line code that shows any policy byBin or byName, as I do when I create my own Custom Policy
Auchi
#4 Posted : Thursday, February 15, 2007 3:24:51 PM(UTC)
Auchi

Rank: Member

Joined: 1/8/2007(UTC)
Posts: 79

I add you another question about email templates.
When a client makes a return of an order, this goes to the returns of the BVAdmin.

There, if I choose to approve or reject the return request, it should send an e mail to the client with the result, shouldn't it?

I ask this senseless question, because i've made like 15 returns testing it, and i've accepted and rejected them, but i still cant find the way to send the mail, may be I'm not doing it propperly or I might have any important check box or option disabled -I've tested almost all the functions of this amazing soft, and there's a probability for me to have disabled it somewhere- if you can guide me of how should this be working fine... cause after so much trying, I've gave me up with this problemm (so, here I am, asking for your help).

And again: Thanks!
Nick Alberti
#5 Posted : Thursday, February 15, 2007 5:41:23 PM(UTC)
Nick Alberti

Rank: Member

Joined: 9/27/2004(UTC)
Posts: 1,099

If you have the full source code for BV Commerce 5, you can easily add your own tags. It might look something like:

Code:

Dim policy As Content.Policy = Content.Policy.FindByBvin("2ABF8529-DDA9-4d3f-B514-3C7F8573E342")

For Each block As Content.PolicyBlock In policy.Blocks
result.Add(New EmailTemplateTag("[[Content.MyPolicy]]", block.Description))
Next


In the example above, we add a new tag named “[[Content.MyPolicy]]”. When you add this to a template, the policy that matches the “BVIN” above will get displayed. You can grab the “BVIN” of a policy from the URL when editing or create a policy. You could get fancier with it but that would do the trick.

Yes, the email templates for returns should automatically go out. I will check to see if this issue exists on our development stores.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012