The second one may be familiar, since Chris used it (assuming I typed it correctly) in one of his screencasts.
What I need to do is have the size of the product affect the price of the product. And I would like to do it the same way that Chris did: using a | to delineate the second part of the custom field and the php splitting the custom field at that marker and sending the second half as a option modifier that raises (or lowers) the price.
My custom fields are labeled according to the first set of code.
I'm, basically, trying to combine these two bits of code:
and
The second one may be familiar, since Chris used it (assuming I typed it correctly) in one of his screencasts.
What I need to do is have the size of the product affect the price of the product. And I would like to do it the same way that Chris did: using a | to delineate the second part of the custom field and the php splitting the custom field at that marker and sending the second half as a option modifier that raises (or lowers) the price.
My custom fields are labeled according to the first set of code.
Does any of this make sense to anyone?
Can anyone help?
It seems to work. Can anyone with more php knowledge than I have (not hard that) verify that it seems correct to them?