Page 1 of 1
Newbie .SLN question
Posted: Wed Aug 19, 2009 6:05 pm
by egarrison
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
Posted: Thu Aug 20, 2009 3:47 am
by mazhar
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.
Re: Newbie .SLN question
Posted: Fri Aug 21, 2009 9:38 am
by Logan Rhodehamel
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.
Re: Newbie .SLN question
Posted: Fri Sep 04, 2009 8:02 am
by jmestep
Logan,
Will this enable us to use urls without the product and category id in them?
Thanks
Re: Newbie .SLN question
Posted: Fri Sep 04, 2009 11:03 am
by Logan Rhodehamel
jmestep wrote:Logan,
Will this enable us to use urls without the product and category id in them?
Thanks
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.
Re: Newbie .SLN question
Posted: Mon Feb 15, 2010 3:35 pm
by mambaza
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?
Re: Newbie .SLN question
Posted: Mon Feb 15, 2010 4:10 pm
by jmestep
Unless you are trying to come up with some custom url, you would use .NavigateUrl.