Skip to content

Commit

Permalink
puts input for quantity on the button
Browse files Browse the repository at this point in the history
  • Loading branch information
illiphilli committed Jul 14, 2011
1 parent 1d32bcc commit 89c000a
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions framework/modules/ecommerce/views/store/show.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -121,24 +121,30 @@
{/if}

{if $product->availability_type == 0 && $product->active_type == 0}
{if $product->minimum_order_quantity > 1}
{control type="text" name="quantity" label="Quantity:" size="5" value="`$product->minimum_order_quantity`"}
{/if}
<button type="submit" class="awesome {$smarty.const.BTN_COLOR} {$smarty.const.BTN_SIZE}" rel="nofollow">{"Add to Cart"|gettext}</button>
<button type="submit" class="awesome {$smarty.const.BTN_COLOR} {$smarty.const.BTN_SIZE}" rel="nofollow">
<input type="text" class="text " size="5" value="{$product->minimum_order_quantity|default:1}" name="quantity">
{"Add to Cart"|gettext}
</button>
{elseif $product->availability_type == 1 && $product->active_type == 0}
{if $product->minimum_order_quantity > 1}
{control type="text" name="quantity" label="Quantity:" size="5" value="`$product->minimum_order_quantity`"}
{/if}
<button type="submit" class="awesome {$smarty.const.BTN_COLOR} {$smarty.const.BTN_SIZE}" rel="nofollow">{"Add to Cart"|gettext}</button>
<button type="submit" class="awesome {$smarty.const.BTN_COLOR} {$smarty.const.BTN_SIZE}" rel="nofollow">
<input type="text" class="text " size="5" value="{$product->minimum_order_quantity|default:1}" name="quantity">
{"Add to Cart"|gettext}
</button>
{if $product->quantity <= 0}<span class="error">{$product->availability_note}</span>{/if}
{elseif $product->availability_type == 2}
{if $user->isAdmin()}
<button type="submit" class="awesome red {$smarty.const.BTN_SIZE}" rel="nofollow">{"Add to Cart"|gettext}</button>
<button type="submit" class="awesome red {$smarty.const.BTN_SIZE}" rel="nofollow">
<input type="text" class="text " size="5" value="{$product->minimum_order_quantity|default:1}" name="quantity">
{"Add to Cart"|gettext}
</button>
{/if}
{if $product->quantity <= 0}<span class="error">{$product->availability_note}</span>{/if}
{elseif $product->active_type == 1}
{if $user->isAdmin()}
<button type="submit" class="awesome red {$smarty.const.BTN_SIZE}" rel="nofollow">{"Add to Cart"|gettext}</button>
<button type="submit" class="awesome red {$smarty.const.BTN_SIZE}" rel="nofollow">
<input type="text" class="text " size="5" value="{$product->minimum_order_quantity|default:1}" name="quantity">
{"Add to Cart"|gettext}
</button>
{/if}
<em class="unavailable">{"Product currently unavailable for purchase"|gettext}</em>
{/if}
Expand Down

0 comments on commit 89c000a

Please sign in to comment.