Andrew Willis

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Variant options on invoice #183806
    Andrew Willis
    Participant

    I’ve added a Trustpilot review.  Currently pending, but should be through soon…

    in reply to: Variant options on invoice #183717
    Andrew Willis
    Participant

    That’s great Taha – and yes, it seems like that does fix the issue…

    in reply to: Variant options on invoice #183467
    Andrew Willis
    Participant

    Thanks for the assistance Taha

    I have made the changes you suggested, but this still works only on some orders.  For others, that whole section of the invoice is blank.  So, something must still be throwing it off balance.  This is my ‘each_item’ code now:

    [each_item]
    <table class=”order-items”>
    <tbody>
    <tr>
    <td style=”width: 15%;text-align: center;vertical-align: middle”>[item_product_image]</td>
    <td style=”width: 46%”>[item_name]
    [if value1="{item_meta key='pa_frame-style'}" operator="not_equal" value2=""][item_meta key=”pa_frame-style” before=”Frame: “][/if]
    [if value1="{item_meta key='pa_mount-colour'}" operator="not_equal" value2=""][item_meta key=”pa_mount-colour” before=”Mount: “][/if]
    [if value1="{item_meta key='pa_orientation'}" operator="not_equal" value2=""][item_meta key=”pa_orientation” before=”Orientation: “][/if]
    </td>
    <td style=”width: 12%”>[item_product_sku]</td>
    <td class=”qty” style=”width: 7%”>[item_qty]</td>
    <td class=”price” style=”width: 10%”>[item_single format=”price”]</td>
    <td class=”price” style=”width: 10%”>[item_total format=”price”]</td>
    </tr>
    </tbody>
    </table>
    [/each_item]

    Can you spot anything wrong?  I suspect it is on orders where one of the attributes isn’t applicable that it fails?

    in reply to: Variant options on invoice #183418
    Andrew Willis
    Participant

    To add to this, I think it only breaks the invoice layout if there is not a valid attribute choice on that product.  So, this seems to work if there is:

    [item_meta key=”pa_frame-style” before=”Frame: ” after=””]

    How do I wrap this in an if statement, checking to see if there is a valid ‘pa_frame-style’ for that product ordered?

Viewing 4 posts - 1 through 4 (of 4 total)