I am new to asp.net and always worked with linux and php in the past so please excuse my knowledge in this area.
I have taken on a project and successfully migrated a website
www.propertyclever.co.uk to a new host, including the database and all is working well after ironing out a few bugs.
Although as i did not develop the site there are a couple of things that i cannot get my head around which are extras to the 'kit’ i believe. Therefore i wondered if anyone could shed any light onto these issues, it would be much appreciated.
The website has three packages for property ad listings that allow different amount of words, pictures, ad period and of course price. Now throughout
the database i cannot find any reference to the packages other than a number for each ad corresponding package 1,2 or 3. My issue is i need to amend these packages and throughout endless searching throughout the files and database i cannot find were the max
pics, words etc are stored?
Also the website is integrated into WorldPay, i can see that there is a IPN.aspx file although it only has reference to a dll and no content. Therefore does this mean that data with regards to the packages for
payment processing is within this dll? If so can anyone suggest how this may be edited as i can only view them with Visual Studio and not edit or see any data? As i did not create the site i also have no .vb files etc and only the compiled website as you would
find it on the ftp.
Your help is much appreciated and sorry to ask although the original developer is proving to be very unhelpful.Kind
Regards,
Welcome to asp. and first off you should know that the original classifieds starter kit does not come with any payment processing.
Your client has added the reference to WorldPay. So I have no idea there.
As far as the packages or AdTypes it's referenced in two main places.
First in App_Code/Web/Outputformatting file, and also at the top of App_Code/BLL/Ads.vb (Ads.cs if you use Csharp)
As for the max pics, there are two places, first when the app runs it looks for a .xml file. If the app cannot find or access the .xml file it then uses the default.
I had to move the site-config.xml file but I think the original location was in the App_Data folder.
The default backup, is in App_Code/BLL/SiteSettings.vb
Good luck and if you have any more questions don't hesitate to ask.
Daniel
Web:www.Detelli.com Please remember to mark the post as answer that solves your issue.
This will be greatly benificial for other users.
Marked as answer by admob on Feb 16, 2008 05:28 PM
I've done similar things in my website www.love2trade.com , I however developed all the extras myself so I can give you some insight on the thought process that I went through but that does not guarantee that this
is how it was coded on your website.
Regarding the packages. I would start off by looking at the database... sometimes its helpful to go the SQL Server 2005 "Database Diagrams" and print a database schema layout. This will give you a global view for all your tables/fields and their relationships
(assuming FKs & PKs are set correctly).
I would assume that there "should" be a table that contains package information for each package, i hope its not hardcoded :).
There should be a cross reference table that maps each ad to an ad package. The way i have it designed in my website is that i have a designer class that is responsible for knowing the attributes of each ad (design, duration..etc). I would think that this
is probably how its done.
Regarding WorldPay, the dll is your API library, you will not be able to see code for it (You dont need to). But if you see no reference for prices / content in general then i would assume that these prices are pre-defined in your account with worldpay...and
when a user is checking out from the website, you simple tell worldpay to charge for package #1, #2, or #3 depending on what the user selects.
You'll probably get more info on WP's documentations on integrating with ASP.NET i bet it will explain how exactly the dll work.
Im sorry but without knowing the code thats the best i can do.
Hope that helps. Good Luck
** You guys are sure charging good money for these ads :)
The issue i have as mentioned is that i only have site as you would expect to take it of the ftp already compiled. Therefore i do not have the App_Code and thus the .vb files?
I have checked again and there is not a table with the package information and it must of been coded. The only mention in the database is in
classifieds_Ads it has a column
AdOption that is set to 1,2 or 3 (corresponding to the 3 packages option for each ad).
Any idea were the information may be if not in the database?
With WorldPay i have looked in the account and no mention other than the callback file etc and a few settings. It does show it is integrated using Select Junior so that means that the information is being sent
using a form to create a ticket. Although this form is nowhere to be found!
Within the MyAds.aspx is the link that the user clicks redirecting to WorldPay, the only mention within this file is the following:
I now have managed to get the full code out of him and have found the max pics, prices etc in Ads.cs.
As i mentioned i have moved the site from its old host and all appeared to be working great, although an issue has appeared with WorldPay it terms of the user pays, it takes the money etc, although its not activating the ad and posting back, although nothing
has been edited from the old host were it worked. Any ideas were to look and what could cause this? There is an issue with the e-mails are not working properly unless this could be why?
Does anyone know what server and port would need to be set to for GoDaddy hosting:
admob
0 Points
15 Posts
Packages and Payment issues
Jan 23, 2008 10:43 PM|LINK
Hello All,
I am new to asp.net and always worked with linux and php in the past so please excuse my knowledge in this area. I have taken on a project and successfully migrated a website www.propertyclever.co.uk to a new host, including the database and all is working well after ironing out a few bugs. Although as i did not develop the site there are a couple of things that i cannot get my head around which are extras to the 'kit’ i believe. Therefore i wondered if anyone could shed any light onto these issues, it would be much appreciated. The website has three packages for property ad listings that allow different amount of words, pictures, ad period and of course price. Now throughout the database i cannot find any reference to the packages other than a number for each ad corresponding package 1,2 or 3. My issue is i need to amend these packages and throughout endless searching throughout the files and database i cannot find were the max pics, words etc are stored?Also the website is integrated into WorldPay, i can see that there is a IPN.aspx file although it only has reference to a dll and no content. Therefore does this mean that data with regards to the packages for payment processing is within this dll? If so can anyone suggest how this may be edited as i can only view them with Visual Studio and not edit or see any data? As i did not create the site i also have no .vb files etc and only the compiled website as you would find it on the ftp.
Your help is much appreciated and sorry to ask although the original developer is proving to be very unhelpful.Kind Regards,Adam
darkknight18...
Contributor
2674 Points
1040 Posts
Re: Packages and Payment issues
Jan 24, 2008 12:00 AM|LINK
Welcome to asp. and first off you should know that the original classifieds starter kit does not come with any payment processing.
Your client has added the reference to WorldPay. So I have no idea there.
As far as the packages or AdTypes it's referenced in two main places.
First in App_Code/Web/Outputformatting file, and also at the top of App_Code/BLL/Ads.vb (Ads.cs if you use Csharp)
As for the max pics, there are two places, first when the app runs it looks for a .xml file. If the app cannot find or access the .xml file it then uses the default.
I had to move the site-config.xml file but I think the original location was in the App_Data folder.
The default backup, is in App_Code/BLL/SiteSettings.vb
Good luck and if you have any more questions don't hesitate to ask.
Daniel
Please remember to mark the post as answer that solves your issue.
This will be greatly benificial for other users.
ashmetry
Participant
1018 Points
279 Posts
Re: Packages and Payment issues
Jan 24, 2008 01:44 PM|LINK
I've done similar things in my website www.love2trade.com , I however developed all the extras myself so I can give you some insight on the thought process that I went through but that does not guarantee that this is how it was coded on your website.
Regarding the packages. I would start off by looking at the database... sometimes its helpful to go the SQL Server 2005 "Database Diagrams" and print a database schema layout. This will give you a global view for all your tables/fields and their relationships (assuming FKs & PKs are set correctly).
I would assume that there "should" be a table that contains package information for each package, i hope its not hardcoded :).
There should be a cross reference table that maps each ad to an ad package. The way i have it designed in my website is that i have a designer class that is responsible for knowing the attributes of each ad (design, duration..etc). I would think that this is probably how its done.
Regarding WorldPay, the dll is your API library, you will not be able to see code for it (You dont need to). But if you see no reference for prices / content in general then i would assume that these prices are pre-defined in your account with worldpay...and when a user is checking out from the website, you simple tell worldpay to charge for package #1, #2, or #3 depending on what the user selects.
You'll probably get more info on WP's documentations on integrating with ASP.NET i bet it will explain how exactly the dll work.
Im sorry but without knowing the code thats the best i can do.
Hope that helps. Good Luck
** You guys are sure charging good money for these ads :)
Web: www.love2trade.com
Blog: blog.love2trade.com
Please remember to click "Mark as Answer" on this post if it helped you.
admob
0 Points
15 Posts
Re: Packages and Payment issues
Jan 24, 2008 11:06 PM|LINK
Hello,
Thankyou for your response,
The issue i have as mentioned is that i only have site as you would expect to take it of the ftp already compiled. Therefore i do not have the App_Code and thus the .vb files?
Cheers,
Adam
admob
0 Points
15 Posts
Re: Packages and Payment issues
Jan 24, 2008 11:16 PM|LINK
Hello,
Lovely site! Many thanks for your response also.
I have checked again and there is not a table with the package information and it must of been coded. The only mention in the database is in classifieds_Ads it has a column AdOption that is set to 1,2 or 3 (corresponding to the 3 packages option for each ad).
Any idea were the information may be if not in the database?
With WorldPay i have looked in the account and no mention other than the callback file etc and a few settings. It does show it is integrated using Select Junior so that means that the information is being sent using a form to create a ticket. Although this form is nowhere to be found!
Within the MyAds.aspx is the link that the user clicks redirecting to WorldPay, the only mention within this file is the following:
<asp:ImageButton ID="payNow" runat="server" AlternateText="Pay Now!"
OnClick="payNow_Click" ImageUrl="<%# PayNowImageURL %>"
CommandArgument='<%# Eval("Id") %>' />
The payNow_click is linking to something that must contain the information?
I understand that you do not know the code and is hard to understand and help, but any guidance is much appreciated.
Regards,
Adam
darkknight18...
Contributor
2674 Points
1040 Posts
Re: Packages and Payment issues
Jan 25, 2008 12:55 AM|LINK
I think you are going to find problem after problem until you get all the files.
Tell your client you need him to put them into a zip file for you.
If you're interested in what the original classifieds starter kit works like, I would suggest downloading a copy.
http://www.asp.net/downloads/starter-kits/classifieds/
I really think you are going to need to get the whole app, not just off of ftp.
Good Luck
Please remember to mark the post as answer that solves your issue.
This will be greatly benificial for other users.
ashmetry
Participant
1018 Points
279 Posts
Re: Packages and Payment issues
Jan 25, 2008 02:08 AM|LINK
Im assuming when you say "take it of the ftp already compile", you mean that the whole website is pre-compiled.
This means you can do basicly nothing...
Its like somebody giving you an PROGRAM'S EXE and tells you to make modifications to the program.
It does seem like the prices are hardcoded if its not in the application config file (xml).
You will definetly need the source if you need to make any changes.
Web: www.love2trade.com
Blog: blog.love2trade.com
Please remember to click "Mark as Answer" on this post if it helped you.
admob
0 Points
15 Posts
Re: Packages and Payment issues
Jan 30, 2008 04:58 PM|LINK
Hello,
Many thanks for your replies,
I now have managed to get the full code out of him and have found the max pics, prices etc in Ads.cs.
As i mentioned i have moved the site from its old host and all appeared to be working great, although an issue has appeared with WorldPay it terms of the user pays, it takes the money etc, although its not activating the ad and posting back, although nothing has been edited from the old host were it worked. Any ideas were to look and what could cause this? There is an issue with the e-mails are not working properly unless this could be why?
Does anyone know what server and port would need to be set to for GoDaddy hosting:
<mailSettings>
<smtp>
<network host="" port="25" defaultCredentials="true" userName="username" password="password"/>
</smtp>
</mailSettings>
Regards,
Adam
darkknight18...
Contributor
2674 Points
1040 Posts
Re: Packages and Payment issues
Jan 30, 2008 08:33 PM|LINK
As far as the email, I use godaddy and your settings are close, try this.
<mailSettings><
smtp> <network host="relay-hosting.secureserver.net" port="25" defaultCredentials="true"/></
smtp></
mailSettings>That's the setting for basic smtp with godaddy, and I set up in the site settings where to send on reply, and the above works fine.
Please remember to mark the post as answer that solves your issue.
This will be greatly benificial for other users.
ashmetry
Participant
1018 Points
279 Posts
Re: Packages and Payment issues
Jan 30, 2008 08:56 PM|LINK
It's possible that somewhere worldpay is still posting back to the old host.
I'm interested to know more regarding that postback functionality...I know with google, you can specify a url that they can post back to.
Web: www.love2trade.com
Blog: blog.love2trade.com
Please remember to click "Mark as Answer" on this post if it helped you.