Announcement

Collapse
No announcement yet.

Displaying an Attribute Option Price

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

    Displaying an Attribute Option Price

    I need to show an Attribute Option Price outside of the PROD page? I'm trying to display the first attribute price because the product price is 0

    My initial hack:
    Code:
    <mvt:foreach iterator="attribute" array="attributes">
    <mvt:foreach iterator="option" array="attribute:options">
    &mvt:attribute:options[1]:formatted_price;
    </mvt:foreach>
    </mvt:foreach>
    It displays the correct price, except it displays 3 of them (I assume because there are 3 attributes for the product).


    Code:
    &mvt:attribute:options[1]:formatted_price;
    displays nothing.

    There are products displaying $0.00 - on the CTGY, the Related Products, on the SRCH, etc...

    I'm thinking someone has already done this, but my searches are coming up short.
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: X | Facebook | Pinterest

    #2
    Try
    Code:
     &mvt:attributes[1]:options[1]:formatted_price;
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    Comment

    Working...
    X