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: COD Change Wording

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

    Exclamation COD Change Wording

    We are currently trying to change the wording for COD on the site. We have done what we can with the string resources.

    However on the receipt it still shows up COD I have tracked this down to this bit of code.
    C#/VB.NET Code:
    AppLogic.ro_PMCOD 
    That was found on our checkout1.
    Where can we edit this? We just need to change this one thing to "Pay By Phone" or anything along them lines. It is causing our customers a lot of confusion.

    Thanks in advance.
    =====
    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
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    If it's on the reciept - surely you can control it with your receipt xmlpackage?


    TTFN

    BFG

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

    Default

    Bingo right on the money.
    Looks like this was the best way to do it.

    C#/VB.NET Code:
    <xsl:choose>
    <
    xsl:when test="$CleanPaymentMethod='COD'">
    Pay By Phone
    </xsl:when>
    <
    xsl:otherwise>
    <
    xsl:value-of select="$CleanPaymentMethod/>
    </
    xsl:otherwise>
    </
    xsl:choose
    =====
    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
    nihon is offline Senior Member
    Join Date
    May 2008
    Posts
    150

    Default

    HI am looking to change CHECKBYMAIL .. cant seem to find it anywhere. how can i change this. thanks
    Version (Code/DB):
    AspDotNetStorefront ML 8.1.2.0/8.1.2.0

  5. #5
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Sure, that's possible. Under the GetAvailableHeaders template, look for these section (for the Payment Method line):
    Code:
    <xsl:otherwise>
    <xsl:value-of select="$CleanPaymentMethod" />
    </xsl:otherwise>
    Then just before that section, add these lines:
    Code:
                  <xsl:when test="$CleanPaymentMethod='CHECKBYMAIL'">
                    <xsl:value-of select="'CHECK BY EMAIL'" disable-output-escaping="yes" />
                  </xsl:when>
    You could change the highlighted part with any string. I would recommend a string resource token, though...

  6. #6
    nihon is offline Senior Member
    Join Date
    May 2008
    Posts
    150

    Default

    Brilliant .. It worked perfectly .. your a GOD to me ..
    Thanks for everything..
    Version (Code/DB):
    AspDotNetStorefront ML 8.1.2.0/8.1.2.0

  7. #7
    ESC is offline Junior Member
    Join Date
    Nov 2008
    Posts
    15

    Default

    Where is GetAvailableHeaders template?