Ok, in trying to make it generic I think I made it less so based on this specific use, and tag name need to be the same as the filter/prefix as it uses the prefix to double check the tag.
You should either replace the ‘[:OrderTagName]’ with ‘Metade’ or set the prefix and filter to be the same as the tag name.
I think that the best would be ask to Emre, if he has the chance, and thinks its worth, modify the code to get the price even if its set a prefix and a filter… becuase that gives the opportunity to have different prices (wich we could retrieve) depending on the filter…
I have two with the same name, but they are ment for differente pizza sices… one for GRANDE and one for FAMILIA… this will happen allways… since all halfs are called the same… differs only sice and price…
Again, I think we should ask nicely and polite to emre… he may solve this… in a simple way… and would help us a lot…
Arrr, that’s it, that was why I set it in a way where tag name and filter needed to be the same to remove the possibility of duplicates.
Expanding the script would easily work arround this, I was aiming for a more general script but can make more specific to your need with a SQL join.
If you want to wait on emre let me know or if you want adjusted script I’ll sort something if you want.
Prefix on an order tag means the tag price is returned as blank.
Gerlandog is hoping you’ll just work arround to return the tag price regardless of prefix.
My though was if prefix had a rate field similar to the tag itself to set tag price from order price except for prefix it would be more of a multiplier than a rate so a prefix of ‘double’ could have a multiplier of 2 making the tag price x2 or ‘no’ prefix could have -1 if you wanted to minus the tag value of it was a no prefix and taken off.
So, I would like to thank to: damian for starting this topic Shivan for adding ideas sukasem for adding ideas JTRTech for the bright idea and the sleppless nights in seattle!!! kendash and QMcKay for helping us out as allways @emre Emre for moking and making us look bad… buuuuuuu (LOL)!!!
I am going to try to go one step further and when all half pizzas are unselected, try to go back to original price… that would be the cherry…
Now I can say my pizza configuration is 35% complete, LOL!!!, nono nono I think I amn in the 95%… the only thing missing here are nice graphics to compare reports…
yes… I know…
I think that this would be the time to ask Emre for a tag with the original price, so we dont mess up with scripts… LOL!!! on a second tought… it may be there, and we dont know…
So, The TAG [:OrderTagPrice] is empty, the TAG [:ParentPrice] is empty, and the TAG {PRICE} has the NEW value… wich is correct… but, could we have the original price somewhere? Does it make any sence having it?