Announcement

Collapse
No announcement yet.

price - cost = discount

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

    price - cost = discount



    Hello,

    Forgive me for my relatively simple coding question but...

    I need to take the PRICE (products.d.price) of an item and subtract the COST
    (products.d.cost) of an item. I need this to do a "you save" type of thing.
    I will be using price groups with this also. I did this for a client a while
    back, but can not find the snippet of code that I used. Anyone want to give
    this one an MvShot?

    Over and Out,

    Lee Chakov
    Webmaster
    Lee Net & Co
    [email protected]
    www.leenetweb.com


    #2
    price - cost = discount



    <MvASSIGN NAME="bobo" VALUE="{ products.d.price - products.d.cost }">
    <MvEVAL EXPR="{ bobo }">

    or just
    <MvEVAL VALUE="{ (products.d.price - products.d.cost) }">




    At 12:04 AM 2/23/01, Lee Net & Co wrote:
    >Hello,
    >
    >Forgive me for my relatively simple coding question but...
    >
    >I need to take the PRICE (products.d.price) of an item and subtract the COST
    >(products.d.cost) of an item. I need this to do a "you save" type of thing.
    >I will be using price groups with this also. I did this for a client a while
    >back, but can not find the snippet of code that I used. Anyone want to give
    >this one an MvShot?
    >
    >Over and Out,
    >
    >Lee Chakov
    >Webmaster
    >Lee Net & Co
    >[email protected]
    >www.leenetweb.com
    >

    Comment


      #3
      price - cost = discount



      ooppps. that should have been:

      or just
      <MvEVAL EXPR="{ (products.d.price - products.d.cost) }">
      ^^^^^





      At 12:04 AM 2/23/01, Lee Net & Co wrote:
      >Hello,
      >
      >Forgive me for my relatively simple coding question but...
      >
      >I need to take the PRICE (products.d.price) of an item and subtract the COST
      >(products.d.cost) of an item. I need this to do a "you save" type of thing.
      >I will be using price groups with this also. I did this for a client a while
      >back, but can not find the snippet of code that I used. Anyone want to give
      >this one an MvShot?
      >
      >Over and Out,
      >
      >Lee Chakov
      >Webmaster
      >Lee Net & Co
      >[email protected]
      >www.leenetweb.com
      >

      Comment

      Working...
      X