Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Check if item is in pricing.asc



******    message to minivend-users from "Mats Andersson" <Mats@brain.syh.fi>     ******

> > How can I check if an item is present in pricing.asc? I would like to
> > only show the Quantity price link if there really is quantity pricing
> > for that item?
> > - Mats
Ok I was a bit unclear but it was very late. I'll try again. My 
pricing.asc looks like

code    q2      q5      q6      q10     q12     q25     q100
D-1     3.40    3.40    3       3       2.90    2.90    2.90
FR-1    23.56   23.56   23.56   20      20      20      20            

Normal quantity pricing works OK. In the basket and in other pages I 
would like code like 

[if data pricing::code::D-1]
<BR>[page quantity [item-code]]
<FONT SIZE=1 COLOR=RED>QUANTITY PRICING
</FONT></A>
[/if]		    

Does it make sense? It does not work anyway. Of course I would 
substitute D-1 for [item-code]. In a nutshell, if there are quantity 
pricing available for an item, display the link to quantity.html.

An other problem regarding quantity pricing. I have read various 
schemes in the mailing list about adding and subtracting from the 
quantity field in the basket. In my humble opinion the logical way is 
thus:
Customer buys 3 cans of beer. He finds out that he can get 6 cans for 
the price of 4. So he clicks on 6 in quantity pricing.html. Then he 
should end up with 6 cans of beer in the basket. Not 3 or 9. 

Ie I would like to REPLACE the quantity in the basket with the new 
quantity. Can it be done??? HOW???

Many thanks in advance. I hope to be able to contribute something to 
the list soon. But I'm still too much of a newbie on Minivend.

> 
> Maybe this
> 
> 
> [if-data table column]
>      If the database field column in table table is non-blank, the
> following text up to the [/if_data] tag is substituted. This can be used
> to substitute IMG or
>      other tags only if the corresponding source item is present. Also
> accepts a [else]else text[/else] pair for the opposite condition. 
> 
>      NOTE: This tag does not nest with other [if-data ...] tags. 
> 
> [if-data ! table column]
>      Reverses sense for [if-data]. 
> 
> [/if-data]
>      Terminates an [if_data table column] element. 
> 
> is what you want?
> 
> Regards,
> 
> 	Joachim
> 
> -- 
> -------------Hans-Joachim Leidinger---------------------
> 
> 
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list



- Mats

Soft Brains Ab Oy
0500-661356

Pie Iesu domine, dona eis requiem....[bonk]
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: