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

Thread: Not Pull SKUSuffix

  1. #1
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Default Not Pull SKUSuffix

    Currently our product pages pull the manufacturer product code. however I have changed the code and can not see a logical reason why that is.
    This is a multi variant product.

    C#/VB.NET Code:
    <xsl:choose>
      <
    xsl:when test="aspdnsf:GetMLValue(SKUSuffix) = ''">
          <
    xsl:value-of select="aspdnsf:GetMLValue(SKU)" disable-output-escaping="yes" />
      </
    xsl:when>
      <
    xsl:otherwise>
          <
    xsl:value-of select="aspdnsf:GetMLValue(SKUSuffix)" disable-output-escaping="yes" />
      </
    xsl:otherwise>
    </
    xsl:choose
    Any help please?
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    Are you asking for help in determining why you made the change It looks like it's been modified to pull the SKU if no SKU suffix exists, otherwise just display the SKU suffix.
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  3. #3
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Default

    Yes that is what the code does. However the manufacturer part number is still been called.

    This code is used in place of where the manufacturer part number showed up. Yet still it is used. I have not even called the manufacturer part number in my code. I have tried in different browsers and refreshed my cashe with no joy.

    Our SKU/SKUSuffix is different to our manufacturer part number.
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience

  4. #4
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    There's not a lot of context there to go on. It could be that those lines are in the wrong template in the xmlpackage and are never being called. The could be inside some conditional section (an xsl:if or xsl:choose/when/otherwise) that prevents it from being called. The xmlpackage being used could be a different package than the one you are modifying. You could have the appconfig CacheEntityPageHTML set to true in which case you the change won't take effect until an IIS reset or application pool recycle occurs...clicking Reset Cache in that scenario will have no effect.
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

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

    Default

    u have screenshot and sample product data (skus/suffixes,etc?)
    AspDotNetStorefront
    Shopping Cart

  6. #6
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Default

    C#/VB.NET Code:
                        </h2><br />
                          <
    h2>Product Code: <b><xsl:for-each select="/root/ProductVariants/Variant">
                            <
    xsl:if test="$defaultVariant = VariantID">
                                            <!--
    DPM Start-->
                                            <!--<
    xsl:value-of select="Name"/>-->
                                            <
    span>
                                                <
    xsl:attribute name="id">VariantName_<xsl:value-of select="VariantID"/></xsl:attribute>
                                <
    xsl:choose>
                                  <
    xsl:when test="aspdnsf:GetMLValue(SKUSuffix) = ''">
                                    <
    xsl:value-of select="aspdnsf:GetMLValue(SKU)" disable-output-escaping="yes" />
                                  </
    xsl:when>
                                  <
    xsl:otherwise>
                                    <
    xsl:value-of select="aspdnsf:GetMLValue(SKUSuffix)" disable-output-escaping="yes" />
                                  </
    xsl:otherwise>
                                </
    xsl:choose>
                                            </
    span>
                                            <!--
    DPM Finish-->
                            </
    xsl:if>
                          </
    xsl:for-each>
                          </
    b>
                            </
    h2
    that is the code that pulls and displays the correct product information depending on what is selected.

    I am 100% sure that I am editing the correct xml I have tested other parts by changing wording etc.

    and CacheEntityPageHTML is set to false.

    screen shot is of sample data and why we need to use skusuffix than mpn
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience