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

Thread: Social Share Add On

  1. #1
    Classic_Exotic is offline Member
    Join Date
    Dec 2009
    Location
    Troy, MI USA
    Posts
    82

    Default Social Share Add On

    We purchased an add-on from Compunix: Social Share http://www.ecommercecartmods.com/p-1...torefront.aspx. Am not certain where to input the code in the XML package since there are four references to images and am hoping someone can help:

    All pages on our website use the product.simpleproduct.xml.config package for product layout. I would like to have the four social media icons appear on our pages just below the words 'view larger image' which is just below the item photo.

    For reference, here's a page from our website: http://www.classicandexotic.com/stor...j-oil-pan.aspx

    Does anyone know where exactly the code provided with the add-on should be inserted in order to appear in the location noted above?

    Thank you.
    Last edited by Classic_Exotic; 10-17-2012 at 11:30 AM.
    Classic & Exotic Service, Inc.
    Specialty Parts For Prewar Cars
    www.classicandexotic.com

  2. #2
    Skriver is offline Senior Member
    Join Date
    Apr 2012
    Posts
    188

    Default

    Post you product.simpleproduct.xml.config and I can tell you where it goes.

  3. #3
    Classic_Exotic is offline Member
    Join Date
    Dec 2009
    Location
    Troy, MI USA
    Posts
    82

    Default

    Thank you - your help is appreciated. Code for that page is:

    <?xml version="1.0" standalone="yes" ?>
    <package version="2.1" displayname="Simple Product" debug="false" includeentityhelper="true">

    <!-- ################################################## ################################################## ## -->
    <!-- Copyright AspDotNetStorefront.com, 1995-2009. All Rights Reserved. -->
    <!-- http://www.aspdotnetstorefront.com -->
    <!-- For details on this license please visit the product homepage at the URL above. -->
    <!-- THE ABOVE NOTICE MUST REMAIN INTACT. -->
    <!-- -->
    <!-- ################################################## ################################################## ## -->

    <query name="Products" rowElementName="Product" runif="showproduct">
    <sql>
    <![CDATA[
    exec dbo.aspdnsf_ProductInfo @ProductID, @CustomerLevelID, 1, 0, @affiliateID
    ]]>
    </sql>
    <queryparam paramname="@ProductID" paramtype="request" requestparamname="ProductID" sqlDataType="int" defvalue="0" validationpattern="^\d{1,10}$" />
    <queryparam paramname="@CustomerLevelID" paramtype="runtime" requestparamname="CustomerLevelID" sqlDataType="int" defvalue="0" validationpattern="" />
    <queryparam paramname="@affiliateID" paramtype="system" requestparamname="AffiliateID" sqlDataType="int" defvalue="0" validationpattern="" />
    </query>


    <query name="Products" rowElementName="Product" runif="edit">
    <sql>
    <![CDATA[
    exec dbo.aspdnsf_EditOrderProduct @ShoppingCartRecID, @CustomerLevelID
    ]]>
    </sql>
    <queryparam paramname="@ShoppingCartRecID" paramtype="request" requestparamname="CartRecID" sqlDataType="int" defvalue="0" validationpattern="^\d{1,10}$" />
    <queryparam paramname="@CustomerLevelID" paramtype="system" requestparamname="CustomerLevelID" sqlDataType="int" defvalue="0" validationpattern="" />
    </query>

    <PackageTransform>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:aspdnsf="urn:aspdnsf" exclude-result-prefixes="aspdnsf" xmlns:fb="urn:fb" xmlns:g="http://base.google.com/ns/1.0">
    <xslutput method="html" omit-xml-declaration="yes" />

    <xslaram name="LocaleSetting" select="/root/Runtime/LocaleSetting" />
    <xslaram name="WebConfigLocaleSetting" select="/root/Runtime/WebConfigLocaleSetting" />
    <xslaram name="XmlPackageName" select="/root/System/XmlPackageName" />
    <xslaram name="SecID">
    <xsl:choose>
    <xsl:when test="count(/root/QueryString/sectionid) &gt; 0"><xsl:value-of select="/root/QueryString/sectionid" /></xsl:when>
    <xsltherwise>0</xsltherwise>
    </xsl:choose>
    </xslaram>


    <xslaram name="CatID">
    <xsl:choose>
    <xsl:when test="count(/root/QueryString/categoryid) &gt; 0"><xsl:value-of select="/root/QueryString/categoryid" /></xsl:when>
    <xsltherwise>0</xsltherwise>
    </xsl:choose>
    </xslaram>

    <xsl:template match="/">
    <xsl:comment>Copyright 1995-2009 AspDotNetStorefront.com</xsl:comment>
    <xsl:choose>
    <xsl:when test="count(root/Products/Product) &gt; 1">
    <xsl:for-each select="/root/Products/Product[position()=1]">
    <xsl:call-template name="MultiVariant"/>
    </xsl:for-each>
    </xsl:when>
    <xsltherwise>
    <xsl:apply-templates select="/root/Products/Product" />
    </xsltherwise>
    </xsl:choose>
    </xsl:template>


    <!-- this could obviously be expanded to properly handle multi-variant products -->
    <xsl:template name="MultiVariant">

    <xslaram name="pName" select="aspdnsf:GetMLValue(Name)"></xslaram>
    <xslaram name="pDescription" select="aspdnsf:GetMLValue(Description)"></xslaram>
    <xslaram name="pSEAltText" select="aspdnsf:GetMLValue(SEAltText)"></xslaram>
    <xslaram name="AltText">
    <xsl:choose>
    <xsl:when test="$pSEAltText=''"><xsl:value-of select="$pName" /></xsl:when>
    <xsltherwise><xsl:value-of select="$pSEAltText" /></xsltherwise>
    </xsl:choose>
    </xslaram>



    <table border="0" width="100%" cellpadding="4" cellspacing="0">
    <tr>
    <td align="left" valign="top">
    <xsl:value-of select="aspdnsf:LookupProductImage(ProductID, ImageFilenameOverride, SKU, 'medium', 0, $AltText)" disable-output-escaping="yes" />
    </td>
    <td align="left" valign="top" width="100%">
    <div>
    <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
    <td width="100%" align="left" valign="middle">
    <span class="ProductNameText">
    <xsl:value-of select="$pName" disable-output-escaping="yes" />
    </span>
    </td>
    <td align="right" valign="Middle">
    <xsl:if test="boolean(/root/Runtime/showproduct)">
    <nobr>
    <xsl:value-of select="aspdnsf:ProductNavLinks(ProductID, /root/Runtime/EntityID, /root/Runtime/EntityName, /root/EntityHelpers/*[name()=/root/Runtime/EntityName]/descendant::Entity[EntityID=/root/Runtime/EntityID]/SEName, 0, 1, 1)" disable-output-escaping="yes" />
    </nobr>
    </xsl:if>
    </td>
    </tr>
    </table>
    </div>
    <div>
    <br />
    </div>
    <div>
    <b>
    <font color="red">
    Display of multi-variant products is not supported by this XmlPackage.<br /><br />XmlPackage=<xsl:value-of select="$XmlPackageName" />
    </font>
    </b>
    </div>
    </td>
    </tr>
    </table>

    </xsl:template>


    <xsl:template match="Product">

    <xslaram name="pName" select="aspdnsf:GetMLValue(Name)"></xslaram>
    <xslaram name="pDescription" select="aspdnsf:GetMLValue(Description)"></xslaram>
    <xslaram name="pSalesPromptName" select="aspdnsf:GetMLValue(SalesPromptName)"></xslaram>
    <xslaram name="AltText">
    <xsl:choose>
    <xsl:when test="aspdnsf:GetMLValue(SEAltText)=''"><xsl:value-of select="aspdnsf:GetMLValue(Name)" /></xsl:when>
    <xsltherwise><xsl:value-of select="aspdnsf:GetMLValue(SEAltText)" /></xsltherwise>
    </xsl:choose>
    </xslaram>

    <xsl:choose>
    <xsl:when test="IsAKit=1">
    <table border="0" width="100%" cellpadding="4" cellspacing="0">
    <tr>
    <td align="left" valign="top">
    <xsl:value-of select="aspdnsf:LookupProductImage(ProductID, ImageFilenameOverride, SKU, 'medium', 1, $AltText)" disable-output-escaping="yes"/>
    </td>
    <td align="left" valign="top" width="100%">
    <div>
    <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
    <td width="100%" align="left" valign="middle">
    <span class="ProductNameText"><xsl:value-of select="$pName" disable-output-escaping="yes" /></span>
    </td>
    <td align="right" valign="Middle">
    <nobr>
    <xsl:value-of select="aspdnsf:ProductNavLinks(ProductID, /root/Runtime/EntityID, /root/Runtime/EntityName, /root/EntityHelpers/*[name()=/root/Runtime/EntityName]/descendant::Entity[EntityID=/root/Runtime/EntityID]/SEName, 0, 1, 1)" disable-output-escaping="yes" />
    </nobr>
    </td>
    </tr>
    </table>
    </div>
    <div><br /></div>
    <div><b><font color="red">Display of Kit Products is not supported by this XmlPackage.<br /><br />XmlPackage=<xsl:value-of select="$XmlPackageName" /></font></b></div>
    </td>
    </tr>
    </table>
    </xsl:when>
    <xsl:when test="IsAPack=1">
    <table border="0" width="100%" cellpadding="4" cellspacing="0">
    <tr><td align="left" valign="top">
    <xsl:value-of select="aspdnsf:LookupProductImage(ProductID, ImageFilenameOverride, SKU, 'medium', 1, $AltText)" disable-output-escaping="yes"/>
    </td>
    <td align="left" valign="top" width="100%">
    <div>
    <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
    <td width="100%" align="left" valign="middle">
    <span class="ProductNameText"><xsl:value-of select="$pName" disable-output-escaping="yes" /></span>
    </td>
    <td align="right" valign="Middle">
    <nobr>
    <xsl:value-of select="aspdnsf:ProductNavLinks(ProductID, /root/Runtime/EntityID, /root/Runtime/EntityName, /root/EntityHelpers/*[name()=/root/Runtime/EntityName]/descendant::Entity[EntityID=/root/Runtime/EntityID]/SEName, 0, 1, 1)" disable-output-escaping="yes" />
    </nobr>
    </td>
    </tr>
    </table>
    </div>
    <div><br /></div>
    <div><b><font color="red">Display of Pack Products is not supported by this XmlPackage.<br /><br />XmlPackage=<xsl:value-of select="$XmlPackageName" /></font></b></div>
    </td>
    </tr>
    </table>
    </xsl:when>
    <xsltherwise>
    <table border="0" width="100%" cellpadding="4" cellspacing="0">
    <tr><td align="left" valign="top">
    <xsl:value-of select="aspdnsf:LookupProductImage(ProductID, ImageFilenameOverride, SKU, 'medium', 1, $AltText)" disable-output-escaping="yes"/>
    </td>
    <td align="left" valign="top" width="100%">
    <div>
    <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
    <td width="100%" align="left" valign="middle"><font size="2" face="Arial">
    <span class="ProductNameText"><xsl:value-of select="$pName" disable-output-escaping="yes" /></span></font>
    <br/><font size="3" face="Arial">
    <xsl:value-of select="aspdnsf:EmailProductToFriend(ProductID, $CatID)" disable-output-escaping="yes"/></font>
    <br/><div id="google_translate_element"></div><script>
    function googleTranslateElementInit() {
    new google.translate.TranslateElement({
    pageLanguage: 'en'
    }, 'google_translate_element');
    }
    </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
    <fb:like href="{/root/System/StoreUrl}{aspdnsf:ProductLink(ProductID, SEName, 0)}" layout="standard" show_faces="false" width="225" action="like" colorscheme="light" /><br/>
    <xsl:value-of select="aspdnsf:ProductSpecsLink(ProductID, SpecsInline, SpecTitle, SKU, SpecCall)" disable-output-escaping="yes" />
    </td>
    <td align="right" valign="Middle">
    <nobr>
    <xsl:value-of select="aspdnsf:ProductNavLinks(ProductID, /root/Runtime/EntityID, /root/Runtime/EntityName, /root/EntityHelpers/*[name()=/root/Runtime/EntityName]/descendant::Entity[EntityID=/root/Runtime/EntityID]/SEName, 0, 1, 1)" disable-output-escaping="yes" />
    </nobr>

    <xsl:if test="aspdnsf:AppConfigBool('PayPal.Promo.Enabled' )='true'">
    <xsl:if test="Price &lt;= aspdnsf:AppConfig('PayPal.Promo.CartMaximum') and Price &gt;= aspdnsf:AppConfig('PayPal.Promo.CartMinimum')">
    <p>
    <a target="_blank">
    <xsl:attribute name="href">
    <xsl:value-of select="aspdnsf:AppConfig('PayPal.Promo.LearnMoreU RL')"/>
    </xsl:attribute>
    <img>
    <xsl:attribute name="src">
    <xsl:value-of select="aspdnsf:AppConfig('PayPal.Promo.BannerURL' )"/>
    </xsl:attribute>
    </img>
    </a>
    </p>
    </xsl:if>
    </xsl:if>
    </td>
    </tr>
    </table>
    </div>
    <div><br /></div>
    <div><xsl:value-of select="$pDescription" disable-output-escaping="yes"/></div>
    <div><br /></div>
    <xsl:choose>
    <!--
    Showing of inventory table also goes through the rules of DisplayOutOfStock appconfig if enabled..
    -->
    <xsl:when test="aspdnsf:AppConfigBool('ShowInventoryTable')= 'true'">
    <div>
    <xsl:value-of select="aspdnsf:ShowInventoryTable(ProductID, VariantID)" disable-output-escaping="yes" />
    </div>
    </xsl:when>
    <xsltherwise>
    <xsl:if test="aspdnsf:AppConfigBool('DisplayOutOfStockProd ucts') = 'true'">
    <div>
    <xsl:value-of select="aspdnsfisplayProductStockHint(ProductID, VariantID, 'Product')" disable-output-escaping="yes" />
    </div>
    </xsl:if>
    </xsltherwise>
    </xsl:choose>
    <xsl:if test="number(CustomerEntersPrice)=0">
    <div>
    <span>
    <xsl:attribute name="id">VariantPrice_<xsl:value-of select="VariantID"/></xsl:attribute>
    <font size="2" face="Arial"><xsl:value-of select="aspdnsf:GetVariantPrice(VariantID, number(HidePriceUntilCart), Price, SalePrice, ExtendedPrice, Points, $pSalesPromptName, TaxClassID)" disable-output-escaping="yes" /><br/><br/> <xsl:value-of select="aspdnsf:GetMLValue(SKU)" disable-output-escaping="yes" /></font>
    </span>
    </div>
    <br />
    </xsl:if>
    <div>
    <xsl:value-of select="aspdnsf:ShowQuantityDiscountTable(ProductI D)" disable-output-escaping="yes"/><br/>
    <xsl:value-of select="aspdnsf:AddtoCartForm(ProductID, VariantID, 1)" disable-output-escaping="yes"/><script type="text/javascript" src="jscripts/formValidate.js"></script>
    </div>
    </td>
    </tr>
    </table>
    <xsl:if test="boolean(/root/Runtime/showproduct)">
    <xsl:value-of select="aspdnsf:XmlPackage('news.xml.config')" disable-output-escaping="yes"/>
    <xsl:value-of select="aspdnsf:StrReplace(aspdnsf:ShowUpsellProdu cts(ProductID),'Upsellproducts.gif','Relatedproduc ts.gif')" disable-output-escaping="yes"/>
    <xsl:value-of select="aspdnsf:RelatedProducts(ProductID)" disable-output-escaping="yes"/>
    <xsl:value-of select="aspdnsf:RecentlyViewed(ProductID)" disable-output-escaping="yes"/>
    <xsl:value-of select="aspdnsf:AlsoBought(ProductID, VariantID)" disable-output-escaping="yes"/>
    <xsl:value-of select="aspdnsf:ProductSpecs(ProductID, 1, SpecsInline, SpecCall, 400)" disable-output-escaping="yes"/>
    <xsl:value-of select="aspdnsf:ProductRatings(ProductID, 0, 0, 0, 1)" disable-output-escaping="yes"/>
    </xsl:if>
    </xsltherwise>
    </xsl:choose>

    </xsl:template>

    </xsl:stylesheet>
    </PackageTransform>
    </package>
    Classic & Exotic Service, Inc.
    Specialty Parts For Prewar Cars
    www.classicandexotic.com

  4. #4
    jsimacek is offline Senior Member
    Join Date
    Dec 2008
    Location
    Phoenix, AZ
    Posts
    373

    Default

    Hello, did you consider getting the installation option at www.ecommercecartmods.com so we could install the module for you?

    To install our plugin how you need, though, simply paste the following line from the reame file:

    <xsl:value-of select="aspdnsf:XmlPackage('Compunix.SocialShare.x ml.config')" disable-output-escaping="yes" />


    right below the following line in your product.simpleproduct.xml.config:

    <xsl:value-of select="aspdnsf:LookupProductImage(ProductID, ImageFilenameOverride, SKU, 'medium', 0, $AltText)" disable-output-escaping="yes" />
    Jan Simacek - Compunix, LLC
    AspDotNetStorefront trusted Devnet Partner and Reseller since 2005

    AspDotNetStorefront Mods and Add-Ons at http://www.ecommercecartmods.com/
    - Searching, Filtering and Sorting (like cSearch, Dealer Locator, Price Ranges, Blog)
    - Reports (like Cart Abandonment and Net Sales)
    - Customer Experience (like Question/Answers)
    - Site and Data Management (like Entity Product Mapper, Bulk Updaters, Make/Model/Year filters)

  5. #5
    Classic_Exotic is offline Member
    Join Date
    Dec 2009
    Location
    Troy, MI USA
    Posts
    82

    Default

    We inserted the snippet in that very spot and it did not appear on our pages. All files that came with the add-on were dropped in the correct place on the server.
    Classic & Exotic Service, Inc.
    Specialty Parts For Prewar Cars
    www.classicandexotic.com

  6. #6
    jsimacek is offline Senior Member
    Join Date
    Dec 2008
    Location
    Phoenix, AZ
    Posts
    373

    Default

    When I do a search for the word share in the html source (which should come up many times) it doesn't come up so it wasn't installed correctly. Please email me your FTP login so I can install it properly for you: jsimacek@compunix.us
    Jan Simacek - Compunix, LLC
    AspDotNetStorefront trusted Devnet Partner and Reseller since 2005

    AspDotNetStorefront Mods and Add-Ons at http://www.ecommercecartmods.com/
    - Searching, Filtering and Sorting (like cSearch, Dealer Locator, Price Ranges, Blog)
    - Reports (like Cart Abandonment and Net Sales)
    - Customer Experience (like Question/Answers)
    - Site and Data Management (like Entity Product Mapper, Bulk Updaters, Make/Model/Year filters)

  7. #7
    jsimacek is offline Senior Member
    Join Date
    Dec 2008
    Location
    Phoenix, AZ
    Posts
    373

    Default

    Issue has been resolved for client. Thank you.
    Jan Simacek - Compunix, LLC
    AspDotNetStorefront trusted Devnet Partner and Reseller since 2005

    AspDotNetStorefront Mods and Add-Ons at http://www.ecommercecartmods.com/
    - Searching, Filtering and Sorting (like cSearch, Dealer Locator, Price Ranges, Blog)
    - Reports (like Cart Abandonment and Net Sales)
    - Customer Experience (like Question/Answers)
    - Site and Data Management (like Entity Product Mapper, Bulk Updaters, Make/Model/Year filters)