GoogleBase Feed URL Access

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
napacabs
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 45
Joined: Mon Jan 14, 2008 2:58 pm
Location: Chino, California
Contact:

GoogleBase Feed URL Access

Post by napacabs » Sun Oct 31, 2010 1:53 pm

With version 7.0.3 we were able to provide Sales Comparison Sites such as Pricegrabber and Nextaq the URL of the GoogleBaseData.txt product feed accessible at:

http://www.site.com/Admin/marketing/fee ... seData.txt

They would then pick-up the feed daily and update product listings. However, with version 7.0.5, it's been moved to

http://www.site.com/App_Data/Feeds/GoogleBaseData.txt

and now I'm unable to access the url. The App_Data folder will NOT render out any contents on the web. How can I access the Google, Shopping.com and Yahoo URL feeds? Or a url location to view output?


Thank You for any help.

AussieInSeattle
Ensign (ENS)
Ensign (ENS)
Posts: 6
Joined: Wed Sep 15, 2010 11:06 am

Re: GoogleBase Feed URL Access

Post by AussieInSeattle » Wed Dec 22, 2010 4:31 am

I just ran into this issue - not sure if you managed to fix it or not, but I "simply" created a virtual directory in IIS at the root of my AC site that points to App_data/feeds - I'm assuming there are no security ramifications with this approach, but now the feed is accessible from /feeds/GoogleBaseData.txt

Hope this helps.
Regards,
Matt

Endeavour
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Wed Dec 15, 2010 2:17 pm

Re: GoogleBase Feed URL Access

Post by Endeavour » Fri Apr 01, 2011 4:43 pm

We have AC version 7.0.4. What is the URL where the GoogleBaseData feeds are stored? I tried the two URLs mentioned by napacabs but pricegrabber still tells me the feeds are empty. I think Matt's solution of creating a virtual directory is beyond my abilities.

User avatar
david-ebt
Captain (CAPT)
Captain (CAPT)
Posts: 253
Joined: Fri Dec 31, 2010 10:12 am

Re: GoogleBase Feed URL Access

Post by david-ebt » Tue Apr 05, 2011 11:36 am

The location for the feeds (App_Data/Feeds) is not accessible from the outside world because the App_Data folder has restricted access by default under IIS.

Mazhar explains how to modify the data feed source code so you can put the generated feed files into another folder that is accessible. The forum post is:
viewtopic.php?f=42&t=13477&p=58069&hilit=feeds#p58069

We added a little code to our feed pages so the administrator could download them directly when the feed was completed.

We modified the ASPX to add a hyperlink:

Code: Select all

<asp:Panel ID="MessagePanel" runat="server" CssClass="contentPanel">
    <div class="contentPanelBody">
        <asp:Label ID="SuccessMessageHeader" runat="server" Text="SUCCESS"></asp:Label>
        <asp:Label ID="FailureMessageHeader" runat="server" Text="FAILED"></asp:Label>
        <asp:BulletedList ID="Messages" runat="server">
        </asp:BulletedList>
        <asp:HyperLink ID="DownloadLink" runat="server"></asp:HyperLink>
        <br />
    </div>
    <asp:Button ID="ContinueButton" runat="server" Text="Click to Continue" OnClick="ContinueButton_Click" />
</asp:Panel>
and we modified one of the code behind functions to:

Code: Select all

protected void UpdateMessagePanel(bool success, List<string> messages)
{
    MessagePanel.Visible = true;
    SuccessMessageHeader.Visible = success;
    FailureMessageHeader.Visible = !success;
    if (success)
    {
        DownloadLink.NavigateUrl = string.Format("/uploads/{0}", FeedFileName.Text);
        DownloadLink.Text = "Download Link (Right click and Save As)";
    }
    PopulateMessages(messages);
}
This was in addition to the FeedDataPath change in the GetPostedOptions function mentioned in the forum post above.
David
http://www.ecombuildertoday.com
Enhanced Reporting for AbleCommerce
Image

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: GoogleBase Feed URL Access

Post by mazhar » Wed Apr 13, 2011 8:43 am

Endeavour wrote:We have AC version 7.0.4. What is the URL where the GoogleBaseData feeds are stored? I tried the two URLs mentioned by napacabs but pricegrabber still tells me the feeds are empty. I think Matt's solution of creating a virtual directory is beyond my abilities.
Its very easy to change the feeds location to somewhere accessible publicly. Let me explain it to you and I think you will be able to do this.

1- In first step create desired folder in your website by using some FTP tool or file browser of your hosting control panel. For example lets say you want your Google Base feeds to be publicly accessible under URL endeavourtoys.com/feeds/GoogleBaseData.txt. Now you can see that in order to support this URL we need a folder having name Feeds on your website root. Go and create folder, you may need to give application write access on this Feeds folder.

2- Now all you need is to tell Google Base to generate feeds under this new Feeds folder instead of putting them under App_Data/Feeds. In order to do this edit your Website/Admin/Marketing/Feeds/GoogleBase.aspx.cs file and locate following line of code

Code: Select all

options.Load(new GoogleBaseOptionKeys());
and replace it with

Code: Select all

options.Load(new GoogleBaseOptionKeys());
options.FeedDataPath = Server.MapPath("~/Feeds");
finally save the file.

That's it jobs done. Now try generating Google Feeds and they will be under feeds folder where anyone can access them through URL.
Finally if you want Shopping.com and Yahoo Shopping feeds to go under this new publiclly accessiable folder then you need to repeat step#2 on Website/Admin/Marketing/Feeds/Shopping.com.aspx.cs and Website/Admin/Marketing/Feeds/YahooShopping.aspx.cs files.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: GoogleBase Feed URL Access

Post by mazhar » Wed May 25, 2011 4:28 am

I posted a mod about automatic Google Base feeds here viewtopic.php?f=47&t=15341

Post Reply