Newbie .SLN question
Newbie .SLN question
I am a new AbleCommerce customer. I have downloaded the source and developer source but am unable to find the .SLN file and the code for the code behinds. I need to make some modifications to the product page, cart page and URL rewrite code. It was my understanding that I should have the "source code" so I could modify these components. I have all the aspx pages of course but none codebehind pages exist in the development copy. How do I modify and compile that DLL without the Visual Studio .SLN file and the code for these objects.
Re: Newbie .SLN question
The code for dlls is not available in standard purchase. Secondly changes you are looking for doesn't seems to require any change in back end. Almost functionality for all store side pages is warped in ConLib controls. For example in order to determine what conlib controls are being used by product page, you can first edit product page by loging as admin to your store and using edit option at page bottom. Then from there edit your desired scriptlet for example if you are interested in page content are edit content scriptlet and check [[ConLib:.....]] statements. Dotted line here represents the control name, read control name check for its files under conlib folder.
Secondly in order to open your website you can use open website option from Visual Studio.
Secondly in order to open your website you can use open website option from Visual Studio.
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Newbie .SLN question
Just wanted to add that our website (the aspx/aspx.cs scripts) is not a web application project. Instead it uses the website project model - for VS2005 it does not use a SLN file. Using Visual Studio 2005 and higher, you should be able to go to open -> Web site and then point to the folder that contains the AbleCommerce files. Some merchants in this forum have reported success at converting over to a web application project - although it involves some customization.
There also exists (in 7.0.3 and higher) the ability to override the default URL rewriting implementation without source code. This requires you to create a custom class that implements the IUrlGenerator and IUrlRewriter interfaces from the CommerceBuilder.Catalog namespace. You can then update the App_Data/ablecommerce.config file to point to the new rewriter. For anyone taking this route, be forewarned that we have decided to combine the two interfaces and also include an abstract base class in the next release. Any customization based on the existing interfaces will have to be recompiled at that time.
There also exists (in 7.0.3 and higher) the ability to override the default URL rewriting implementation without source code. This requires you to create a custom class that implements the IUrlGenerator and IUrlRewriter interfaces from the CommerceBuilder.Catalog namespace. You can then update the App_Data/ablecommerce.config file to point to the new rewriter. For anyone taking this route, be forewarned that we have decided to combine the two interfaces and also include an abstract base class in the next release. Any customization based on the existing interfaces will have to be recompiled at that time.
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Newbie .SLN question
Logan,
Will this enable us to use urls without the product and category id in them?
Thanks
Will this enable us to use urls without the product and category id in them?
Thanks
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
- Logan Rhodehamel
- Developer
- Posts: 4116
- Joined: Wed Dec 10, 2003 5:26 pm
Re: Newbie .SLN question
If you are referring to the custom URL rewrite, then yes. See http://wiki.ablecommerce.com/index.php/ ... ovider_API. Be aware, it's only available in 7.0.3 and up.jmestep wrote:Logan,
Will this enable us to use urls without the product and category id in them?
Thanks
Cheers,
Logan
.com
If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Logan

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.
Re: Newbie .SLN question
We are trying to add a control that sends pages to social bookmarking sites. It was sending page names as Raw URLs, not Rewritten URLs, such as, for example, /product.aspx?ProductId=123&CategoryId=321, rather than the more desirable /I_Love_This_Product-P123C321.aspx.
This post indicates that I can get the Rewritten URL in our 7.0.4 install with the CommerceBuilder.Catalog component, and the Wiki link above offers a sample project for this new method.
Well, Not really understanding the working of C#, I decided to try this by dropping the sample files into my App_Code folder, and calling them as follows:
public string PostUrl
{
get {
string ReturnUrl = Page.Request.Url.ToString();
AbleCommerce.Samples.UrlRewriter.DefaultProvider DPR = new AbleCommerce.Samples.UrlRewriter.DefaultProvider();
ReturnUrl = DPR.RewriteUrl(ReturnUrl);
return Server.UrlEncode(ReturnUrl);
}
}
This attempt is not returning an error, but it is not rewriting the URL either. What am I missing here?
This post indicates that I can get the Rewritten URL in our 7.0.4 install with the CommerceBuilder.Catalog component, and the Wiki link above offers a sample project for this new method.
Well, Not really understanding the working of C#, I decided to try this by dropping the sample files into my App_Code folder, and calling them as follows:
public string PostUrl
{
get {
string ReturnUrl = Page.Request.Url.ToString();
AbleCommerce.Samples.UrlRewriter.DefaultProvider DPR = new AbleCommerce.Samples.UrlRewriter.DefaultProvider();
ReturnUrl = DPR.RewriteUrl(ReturnUrl);
return Server.UrlEncode(ReturnUrl);
}
}
This attempt is not returning an error, but it is not rewriting the URL either. What am I missing here?
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Newbie .SLN question
Unless you are trying to come up with some custom url, you would use .NavigateUrl.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx