Remove quantity column for cart when using print service

mikehamel

Joined: 2006-12-26
Posts: 11
Posted: Tue, 2009-02-24 03:23

Cart module with carbon theme

I always found it confusing to show customers a quantity when using a print service. For one they might be asking quantity of one--jpegs, 8x10, 24x36, then once they are transferred to the print service, they would just have to re-enter the quantities. For that reason I have removed quantity from the cart. They select the photos and enter the quantities at the print service.

To do this, I replaced the following code in ViewCart.tpl

<div class="gbBlock">
  <table class="gbDataTable"><tr>
    <th> {g->text text="Quantity"} </th>
    <th colspan="2" align="center"> {g->text text="Item"} </th>
    <th> {g->text text="Type"} </th>
    <th> {g->text text="Remove"} </th>
  </tr>
  {foreach from=$ViewCart.items item=item}
  <tr class="{cycle values="gbEven,gbOdd"}">
    <td>
      <input type="text" size="3"
       name="{g->formVar var="form[counts][`$item.id`]"}" value="{$form.counts[$item.id]}"/>
    </td><td>
      <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$item.id`"}">

with

<div class="gbBlock">
  <table class="gbDataTable"><tr>
    <th colspan="2" align="center"> {g->text text="Item"} </th>
    <th> {g->text text="Type"} </th>
    <th> {g->text text="Remove"} </th>
  </tr>
  {foreach from=$ViewCart.items item=item}
  <tr class="{cycle values="gbEven,gbOdd"}">
    <td>
      <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$item.id`"}">

________________________________________________________________
http://www.mikehamel.com - Photography by Michael Hamel