[ic] Pricing question

Twentys twentys at libero.it
Tue Aug 19 20:56:39 EDT 2003


I usually prepare my scratch.
You can do something like

[seti map_price][item-field map][/seti]
[seti price][item-field price][/seti]
[if type=scratch term=map_price op="=~" compare="/^[scratch price]/i"]
Price: $99.99
[else]
List Price: $150
[/else]
[/if]

I don't know if it's the right way but should be work.....
Why don't you do something like

[if-item-field map]
[item-field map]
[else]
[item-field price]
[/else][/if-item-field]

??????
If you compile map field you show map, else you shoe price....

by


Il 19/08/2003 7.33.47, "Sergei Voyakin" <svoyakin at hotmail.com> ha scritto:

>First post, not quite sure if im doing this right, so excuse any wrong-doing
>
>There are some products in my database which require to show one price, and 
>only once the buyer adds it to the shopping cart can I show the real price 
>(don't ask-rules of the manufacturer).  So I added a different field called 
>map (minimum advertise price) to the products table.  Instead of showing the 
>price, i show map price.
>
>Well, since not all of the products have this map rule, I want to check if 
>the prices are different.  If they are the same, then i can show something 
>like:
>Price: $99.99
>If they are different, then i want to show something like this:
>List Price: $150.  Add to cart to see your price.
>
>Well, seems easy enough, but for some reason I can't compre the two prices.  
>I am comparing with both, the == and eq and nothing comes up:
>[if [item-field map] == (or eq) [item-field price]]
>Price: $99.99
>[else]
>List Price: $150
>[/else]
>[/if]
>
>But it does not work-the If always evaluates to true, even if map and price 
>are different...so I'm asking for a little help.  Thanks!
>
>Sergv
>
>_________________________________________________________________
><b>Get MSN 8</b> and enjoy automatic e-mail virus protection.    
>http://join.msn.com/?page=features/virus
>
>_______________________________________________
>interchange-users mailing list
>interchange-users at icdevgroup.org
>http://www.icdevgroup.org/mailman/listinfo/interchange-users
>





More information about the interchange-users mailing list