Announcement

Collapse
No announcement yet.

I need help to write a mvt:if statement please

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: I need help to write a mvt:if statement please

    The javascript is in this snippet:

    Code:
    <div class="checkout-button"><input type="button" value="Checkout" onclick="window.location = '&mvt:global:secure_sessionurl;Screen=OINF&amp;Store_Code=&mvta:store:code;';" class="shadow_button" /></div>
    I'd replace it with a graphic button of some sort, and a regular html link, like so:
    Code:
    <div class="checkout-button"><a href="&mvt:global:secure_sessionurl;Screen=OINF&amp;Store_Code=&mvta:store:code;"><img src="graphics/00000001/mybutton.gif" alt="Checkout" /></a></div>
    For your prices, just wrap the price with this conditional to hide it if it's 0.00
    Code:
    Product:
    <mvt:if expr="l.settings:item:price NE '0.00'">
    &mvt:item:formatted_price;
    </mvt:if>

    Comment


      #17
      Re: I need help to write a mvt:if statement please

      P.S. Javascript has it's place, and it's useful to know at least some basics. It's just not a good idea to rely on it for important functionality like being able to check out, particularly since you've said your target market isn't especially web savvy.

      Comment


        #18
        Re: I need help to write a mvt:if statement please

        Hi Leanne

        I know you sent me some code to get rid of the $0.00 zero values in my basket contents, because I received e-mail notification to that effect. However, I cannot find your message here in the Forum. This happened before. You might remember telling me that you had replied some time earlier, but I was unaware.

        When I check my posts for replies, I come into the Forum, then click on UserCP > Subscribed threads ... is this correct?

        Perhpas you would be so kind as to point me to your remedy for the $0.00 issue.

        Many thanks, James

        Comment


          #19
          Re: I need help to write a mvt:if statement please

          Hi James,

          I think perhaps you are not clicking through to see page 2 of the thread...our conversation has gone on long enough to create 2 pages :)

          Comment


            #20
            I need help to write a mvt if statement please

            Hi

            I have a statement somthing like this


            Code:sSQL="SELECT FROM tbllinks where tbllinks.Active = Y and Name like " & sKeywords & "" & _"or URL like " & sKeywords & "" & _"or Description LIKE " & sKeywords & "" & _"or Keywords LIKE " & sKeywords & "" & _"or Contact_Name LIKE " & sKeywords & "" & _"or Contact_Email LIKE " & sKeywords & "" & _"or hit LIKE " & sKeywords & " order by hit desc;"

            its supposed to select only those who have Y value in Active colum however it also selects those who have N value.

            I also tried this one:


            Code: sSQL="SELECT tbllinks.ID,tbllinks.Name,tbllinks.URL,tbllinks.De scription,tbllinks.Keywords,tbllinks.Contact_Name, tbllinks.Contact_Email,tbllinks.hit FROM tbllinks where tbllinks.Active = Y and Name like " & sKeywords & "" & _"or URL like " & sKeywords & "" & _"or Description LIKE " & sKeywords & "" & _"or Keywords LIKE " & sKeywords & "" & _"or Contact_Name LIKE " & sKeywords & "" & _"or Contact_Email LIKE " & sKeywords & "" & _"or hit LIKE " & sKeywords & " order by hit desc;"

            what is wrong in this statement?
            dating singles

            Comment

            Working...
            X