Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 13 of 13

Thread: Google Base Feed products have HTTPS links

  1. #1
    findingking is offline Junior Member
    Join Date
    Oct 2008
    Posts
    8

    Default Google Base Feed products have HTTPS links

    We have recently submitted our Google Base feed and have noticed our products are showing up in Google Base with links starting with HTTPS instead of HTTP.

    Is there a way to make it point to HTTP pages instead?

    We are currently running AspDotNetStorefront ML 7.0.2.1.

  2. #2
    activee is offline Junior Member
    Join Date
    Jan 2008
    Posts
    16

    Default https feeds

    Have you gotten an answer yet? I would like to know how to fix this too.

  3. #3
    doncote is offline Junior Member
    Join Date
    Oct 2008
    Posts
    11

    Default

    Me as well.

  4. #4
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    asking dev to chime in...
    AspDotNetStorefront
    Shopping Cart

  5. #5
    Rex is offline Banned
    Join Date
    Nov 2007
    Posts
    561

    Default

    I sent you all a PM. Please respond with details being asked for.

    Thanks

  6. #6
    Rex is offline Banned
    Join Date
    Nov 2007
    Posts
    561

    Default

    Hello All,


    Xml packages set /root/System/StoreUrl to use HTTPS if it is available.

    The google feed xml package makes use of this node when generating the links.

    To correct the issue, modify your feed xml package to use the following:


    ~line 47:

    Code:
    <link>
    <xsl:value-of select="concat('http',substring-after(/root/System/StoreUrl,'https'))" />
    </link>
    and ~line 82

    Code:
    <link>
    <xsl:value-of select="concat('http',substring-after(/root/System/StoreUrl,'https'))" />
    <xsl:value-of select="aspdnsf:ProductLink(productid, sename, 0, '')" />
    </link>
    Thank you for bringing this to our attention!

  7. #7
    e12ic is offline Junior Member
    Join Date
    Sep 2008
    Posts
    15

    Default

    Hi there,
    may I know which file should I implement the following changes to?

  8. #8
    osdude is offline Senior Member
    Join Date
    Nov 2007
    Location
    earth
    Posts
    202

    Default

    Your_admin_directory/XMLPackages/feed.googlebase.xml.config

  9. #9
    mimpoz is offline Member
    Join Date
    Jul 2008
    Posts
    53

    Default

    I am running v8 and am having this same problem. The https appears before each link...the googlebase feed does not look the same as the fix posted earlier.

    How would I get around it?

  10. #10
    B-Double-U is offline Member
    Join Date
    Dec 2006
    Posts
    36

    Default

    I am also looking to do this in version 8 but in the email to a friend.

    I tired to replace the tag with a static value but you ends up with an expected end of statement error for the colon.

    Is there an easier way to change this globally than trying to change it here on the notification.emailproduct.xml.config page"

    URL: <a href="{$URL}"><xsl:value-of select="$URL" />
    Thanks!

  11. #11
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    If you have a source, there's a way to change that globally via AspDotNetStorefrontCore.XMLPackages2.InitializeSys temData() method without changing that XMLPackage.

    From:
    Code:
    String SURL = AppLogic.GetStoreHTTPLocation(true).ToLowerInvariant();
    change it to:
    Code:
    String SURL = AppLogic.GetStoreHTTPLocation(false).ToLowerInvariant();

  12. #12
    B-Double-U is offline Member
    Join Date
    Dec 2006
    Posts
    36

    Default

    Alfred, thanks for the fast response.

    Do you know if this will try and redirect to a non secure URL in the cart at all?
    I know I read a few other posts and I thought I came across one similar that stated this was causing their customers to be redirected in the cart process when placing orders. Just wanted to double check!

    Also, will this solve the issue for everything that us pulling {$URL} like the Google base feed passing secure https links and any other feeds?, because that would be REALLY cool!

    Thanks again!
    Last edited by B-Double-U; 09-12-2010 at 10:59 PM.

  13. #13
    bruceg is offline Junior Member
    Join Date
    Dec 2008
    Posts
    10

    Default Changes not working

    I made the changes that you suggested but it is not working right. Here are my lines in my xml.config file:
    <link>
    <xsl:value-of select="concat('http',substring-after(/root/System/StoreUrl,'https'))" />
    </link>

    And

    <link>
    <xsl:value-of select="concat('http',substring-after(/root/System/StoreUrl,'https'))" />
    <xsl:value-of select="aspdnsf:ProductLink(ProductID, sename, 0, '')" />
    </link>

    But the output I get is:
    For the first one:
    <link>http</link>
    And for the second one I get:
    <link>httpp-53-gojo-tfx-1200-ml-touch-free-dispenser.aspx</link>

    What am I doing wrong? Thanks



    Quote Originally Posted by Rex View Post
    Hello All,


    Xml packages set /root/System/StoreUrl to use HTTPS if it is available.

    The google feed xml package makes use of this node when generating the links.

    To correct the issue, modify your feed xml package to use the following:


    ~line 47:

    Code:
    <link>
    <xsl:value-of select="concat('http',substring-after(/root/System/StoreUrl,'https'))" />
    </link>
    and ~line 82

    Code:
    <link>
    <xsl:value-of select="concat('http',substring-after(/root/System/StoreUrl,'https'))" />
    <xsl:value-of select="aspdnsf:ProductLink(productid, sename, 0, '')" />
    </link>
    Thank you for bringing this to our attention!