The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Muliplying price by option value

MeristemMeristem Member
in Help edited March 2009
I need the price to be multiplied by the option value.

I'm using MODx and I "think" that the asterisk is being parsed as a placeholder.

I have one tpl that displays a bunch of placeholders so I can build my form on the fly without using any HTML (need to keep this simple for the client). That TPL is displaying perfectly. The option values however are not multplying the price at all.

<select name="[+unit+]">
<option value="1">1 [+unit+] </option>
<option value="2{p*2}">2 [+unit+] </option>
<option value="3{p*3}">3 [+unit+] </option>
<option value="4{p*4}">4 [+unit+] </option>
<option value="5{p*5}">5 [+unit+] </option>
<option value="6{p*6}">6 [+unit+] </option>
<option value="7{p*7}">7 [+unit+] </option>

What am I doing wrong?
  • brettbrett FoxyCart Team
    Huh, that's kind of interesting. Never thought about multiplying a modifier.
    That said... why not set the quantity instead of the price? Just curious. You probably have a good reason.

    If you're using MODx I'd just say to use PHx to multiply the integer by the price and output it like {p:10} {p:20} etc.

    But a multiplication modifier might be neat. Please vote for it at if you'd like. Thanks.
Sign In or Register to comment.