Web Connection
Web Store
Gravatar is a globally recognized avatar based on your email address. Web Store
  Jim Monte
  All
  Nov 24, 2015 @ 05:18am
The below code is from the web store.. doesn't the new way use something different? anyway it errored saying wwipstuff not found.. I included setpaths.prg in my project.. then it found wwipstuff... shouldn't setpaths be included by default into newly created projects in beta 6?


*** Send Email Confirmation
IF !llPrintOnly
loIP = CREATE("wwIPStuff")
loIP.cMailServer=Config.cMailServer
loIP.cSenderEmail=Config.cMailFromEmail
loIP.cSenderName=Config.cMailFrom
loIP.cCCList = Config.cMailCC
loIP.cRecipient = oCust.Email
loIP.cSubject = "West Wind Technologies Order Confirmation: " + oInv.Invno

*** Mail Confirmation has custom HTML text and embeds invoice
loIP.cMessage = loEval.MergeText(File2Var(Config.cHTMLPagePath + "templates\mailconfirmation.wc") )

loIP.cContentType = "text/html"
loIP.SendMailAsync()

Response.ExpandTemplate( Config.cHTMLPagePath + "orderconfirmation.wws")
ELSE
Response.ExpandTemplate( Config.cHTMLPagePath + "printorder.wws")


Gravatar is a globally recognized avatar based on your email address. Re: Web Store
  Rick Strahl
  Jim Monte
  Nov 24, 2015 @ 08:55am

Change the class to wwSmtp and it will likely work as is...

+++ Rick ---



The below code is from the web store.. doesn't the new way use something different? anyway it errored saying wwipstuff not found.. I included setpaths.prg in my project.. then it found wwipstuff... shouldn't setpaths be included by default into newly created projects in beta 6?


*** Send Email Confirmation
IF !llPrintOnly
loIP = CREATE("wwIPStuff")
loIP.cMailServer=Config.cMailServer
loIP.cSenderEmail=Config.cMailFromEmail
loIP.cSenderName=Config.cMailFrom
loIP.cCCList = Config.cMailCC
loIP.cRecipient = oCust.Email
loIP.cSubject = "West Wind Technologies Order Confirmation: " + oInv.Invno

*** Mail Confirmation has custom HTML text and embeds invoice
loIP.cMessage = loEval.MergeText(File2Var(Config.cHTMLPagePath + "templates\mailconfirmation.wc") )

loIP.cContentType = "text/html"
loIP.SendMailAsync()

Response.ExpandTemplate( Config.cHTMLPagePath + "orderconfirmation.wws")
ELSE
Response.ExpandTemplate( Config.cHTMLPagePath + "printorder.wws")



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Web Store
  Jim Monte
  Rick Strahl
  Nov 24, 2015 @ 12:24pm
Thanks Rick...

Change the class to wwSmtp and it will likely work as is...

+++ Rick ---



The below code is from the web store.. doesn't the new way use something different? anyway it errored saying wwipstuff not found.. I included setpaths.prg in my project.. then it found wwipstuff... shouldn't setpaths be included by default into newly created projects in beta 6?


*** Send Email Confirmation
IF !llPrintOnly
loIP = CREATE("wwIPStuff")
loIP.cMailServer=Config.cMailServer
loIP.cSenderEmail=Config.cMailFromEmail
loIP.cSenderName=Config.cMailFrom
loIP.cCCList = Config.cMailCC
loIP.cRecipient = oCust.Email
loIP.cSubject = "West Wind Technologies Order Confirmation: " + oInv.Invno

*** Mail Confirmation has custom HTML text and embeds invoice
loIP.cMessage = loEval.MergeText(File2Var(Config.cHTMLPagePath + "templates\mailconfirmation.wc") )

loIP.cContentType = "text/html"
loIP.SendMailAsync()

Response.ExpandTemplate( Config.cHTMLPagePath + "orderconfirmation.wws")
ELSE
Response.ExpandTemplate( Config.cHTMLPagePath + "printorder.wws")



Gravatar is a globally recognized avatar based on your email address. Re: Web Store
  Rick Strahl
  Jim Monte
  Nov 24, 2015 @ 05:11pm
I probably should update the store to work with current tools, but it's been so long since any work was done on it and there's been very little interest in it I'm not sure it's worth it. The code for most of the store is fine, but all the UI stuff is - welll out of date to say the least :-)

+++ Rick ---



Thanks Rick...

Change the class to wwSmtp and it will likely work as is...

+++ Rick ---



The below code is from the web store.. doesn't the new way use something different? anyway it errored saying wwipstuff not found.. I included setpaths.prg in my project.. then it found wwipstuff... shouldn't setpaths be included by default into newly created projects in beta 6?


*** Send Email Confirmation
IF !llPrintOnly
loIP = CREATE("wwIPStuff")
loIP.cMailServer=Config.cMailServer
loIP.cSenderEmail=Config.cMailFromEmail
loIP.cSenderName=Config.cMailFrom
loIP.cCCList = Config.cMailCC
loIP.cRecipient = oCust.Email
loIP.cSubject = "West Wind Technologies Order Confirmation: " + oInv.Invno

*** Mail Confirmation has custom HTML text and embeds invoice
loIP.cMessage = loEval.MergeText(File2Var(Config.cHTMLPagePath + "templates\mailconfirmation.wc") )

loIP.cContentType = "text/html"
loIP.SendMailAsync()

Response.ExpandTemplate( Config.cHTMLPagePath + "orderconfirmation.wws")
ELSE
Response.ExpandTemplate( Config.cHTMLPagePath + "printorder.wws")






Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Web Store
  Jim Monte
  Rick Strahl
  Nov 24, 2015 @ 05:28pm
I think this little store is excellent... just little things like the cart qty/total in the leftsidebar didn't work.. "I use an AJAX call to update the leftsidebar cart info now on $(document).ready .. a few typos here and there.. nothing big..and its using all the beta6 classes.. you fixed sessions... It took me probably a day to convert the look to bootstrap/jquery also bootstrap-table..
Honestly, my boss wanted to do this in meteor/mongo.. I convinced him I could do it just as fast with the west-wind store... He actually really likes this little store.... http://70.61.231.5/wwstore and it wont take long to make it a SPA app.. or just 2 or 3 pages..

Thanks
JimM


I probably should update the store to work with current tools, but it's been so long since any work was done on it and there's been very little interest in it I'm not sure it's worth it. The code for most of the store is fine, but all the UI stuff is - welll out of date to say the least :-)

+++ Rick ---



Thanks Rick...

Change the class to wwSmtp and it will likely work as is...

+++ Rick ---



The below code is from the web store.. doesn't the new way use something different? anyway it errored saying wwipstuff not found.. I included setpaths.prg in my project.. then it found wwipstuff... shouldn't setpaths be included by default into newly created projects in beta 6?


*** Send Email Confirmation
IF !llPrintOnly
loIP = CREATE("wwIPStuff")
loIP.cMailServer=Config.cMailServer
loIP.cSenderEmail=Config.cMailFromEmail
loIP.cSenderName=Config.cMailFrom
loIP.cCCList = Config.cMailCC
loIP.cRecipient = oCust.Email
loIP.cSubject = "West Wind Technologies Order Confirmation: " + oInv.Invno

*** Mail Confirmation has custom HTML text and embeds invoice
loIP.cMessage = loEval.MergeText(File2Var(Config.cHTMLPagePath + "templates\mailconfirmation.wc") )

loIP.cContentType = "text/html"
loIP.SendMailAsync()

Response.ExpandTemplate( Config.cHTMLPagePath + "orderconfirmation.wws")
ELSE
Response.ExpandTemplate( Config.cHTMLPagePath + "printorder.wws")






© 1996-2024