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 3 of 3

Thread: Help Needed - Getting my Social Media Icons working for Kit Products on Multistore

  1. #1
    Bluefish-Andrew is offline Member
    Join Date
    Jun 2009
    Posts
    31

    Default Help Needed - Getting my Social Media Icons working for Kit Products on Multistore

    This site is running on Multistore Version 9.1

    I have added the following html into my SimpleProduct xmlpackage and the icons are working as expected:

    HTML Code:
    <div class="bookmarks">
    <span>Share:</span> 
    <a href="http://www.facebook.com/sharer.php?u=http://www.mysite.com/(!PAGEURL!)" target="_blank" title="Share This Item on Facebook"><img src="/images/facebook.png" alt="facebook" border="0"></img></a>
    <a href="https://twitter.com/share?url=http://www.mysite.com/(!PAGEURL!)" target="_blank" title="Share This Item on Twitter"><img src="/images/twitter.png" alt="twitter" border="0"></img></a>
    </div>
    The links open twitter/facebook and use the url for tweeting or posting to your wall.

    The problem I am having is integrating these few lines into kitproducts.aspx so I can use the same functionality for kit products and normal products.

    The icons are displayed with hyperlinks but the (!PAGEURL!) part is not converted to the current page address on the kit products page and is included in the link. (e.g. http://www.mysite.com/(!PAGEURL!) instead of http://www.mysite.com/p-123-product.aspx)

    What do I need to replace this with so that the links to twitter and facebook use the correct url for these kit products?
    Last edited by Bluefish-Andrew; 10-24-2011 at 09:41 AM.

  2. #2
    ROBB is offline Senior Member
    Join Date
    Jun 2011
    Location
    United States
    Posts
    107

    Default Kit Products

    Andrew,

    Take a look at the 'page.kitheader.xml.config' XML package (can be found in your root xmlpackages directory). This XML package is used to generate the top (product info) of your kit product page. You should be able to insert your HTML inside this XML package.

    Robert

  3. #3
    Bluefish-Andrew is offline Member
    Join Date
    Jun 2009
    Posts
    31

    Thumbs up

    Thanks for your help ROBB, that works perfectly.