[ic] Options and order
Jeff Dafoe
jeff at badtz-maru.com
Sat Feb 7 07:39:39 EST 2004
> making it therefor possible for the customer, to actually put the article
in
> the basket, has anybody solved this
> and would be willing to share this info.... ? The customer should see the
> article with a message saying 'out ot stock'
> and he should not be able to click on the buy button.
For your flypage:
[if-item-data options o_matrix]
[query
type=list
sql="
SELECT inventory.sku FROM options, inventory
WHERE options.sku = '[item-code]'
AND options.o_matrix = 1
AND options.code = inventory.sku
AND inventory.quantity IS NOT NULL
AND inventory.quantity>0
"]
[on_match]
<input type="hidden" name="mv_order_quantity" value="1">
[button
name="mv_click"
text="Buy it Now!"
src="__THEME_IMG_DIR__buynow.gif"
hidetext=1
form=flypage
][/button]
[/on_match]
[no_match]
<b>Out Of Stock</b>
[/no_match]
[list]
[/list]
[/query]
[else]
[if-item-data inventory quantity > 0]
<input type="hidden" name="mv_order_quantity" value="1">
[button
name="mv_click"
text="Buy it Now!"
src="__THEME_IMG_DIR__buynow.gif"
hidetext=1
form=flypage
][/button]
[else]
<b>Out Of Stock</b>
<br>
[/else]
[/if-item-data]
[/else]
[/if-item-data]
More information about the interchange-users
mailing list