How to remove shipping option

tprince

No avatar

2007-03-13 12:11

Hi,

Is it possible to hide the shipping options in the orderform?
I don't use it because I contact the customer before sending a product.
If so, please tell me how to do this.

» Quick.Cart v2.x

tprince

treewood (OpenSolution)

Avatar: treewood

2007-03-13 12:23

tprince - You must know HTML well to do it.
1. edit templates/orders_delivery.tpl and delete this:

<tr id="orderShipping">
  <
th>
    
$lang[Shipping_type]:
  </
th>
  <
td colspan="2">
    <
select name="iCourier" onchange="ordersCouriers( this );">
      <
option value="">$lang[choose]</option>
      
$sCouriersSelect
    
</select>
  </
td>
</
tr>

and this

<tr class="tfoot" id="courierSummary">
  <
th colspan="3">
    
$lang[Delivery_cost]:
  </
th>
  <
th class="priceTotal" id="deliveryCost">
    
0.00
  
</th>
</
tr>
<
tr class="tfoot" id="orderSummary">
  <
th colspan="3">
    
$lang[Summary_cost]:
  </
th>
  <
th class="priceTotal" id="summaryCost">
    
$aList[fSummary]
  </
th>
</
tr>


2. edit templates/orders_summary.tpl and delete this:

<tr class="tfoot" id="courierSummary">
  <
th colspan="3">
    
$lang[Delivery_cost] - $aData[sCourier]:
  </
th>
  <
th class="priceTotal" id="deliveryCost">
    
$aData[fCourierPrice]
  </
th>
</
tr>
<
tr class="tfoot" id="orderSummary">
  <
th colspan="3">
    
$lang[Summary_cost]:
  </
th>
  <
th class="priceTotal" id="summaryCost">
    
$aData[fSummary]
  </
th>
</
tr>


3. edit core/orders.php and go to function checkOrderFields() and delete:

$aExp     explode'|'$aForm['iCourier'] );
$aCourier throwCourier$aExp[0] );

and

&& isset( $aCourier )



Works?

rodney

No avatar

2007-08-07 00:29

The chages removed the shipping options from my order form but it also change the content of the en_sendorderTo Client.tpl email that is sent out. The only line in the email was an order summary and did not include the contact info as did before.

Email after changes:

- Gourmet Lollipops (Quantity: 1, Summary price: 23.40)

Email before changes:

------------------------
Your delivery address
------------------------
First and last name: Rodney Mills
Street: 683 ken
City: montg
State: al
Zip code: 36109
Phone: 3343982108
Email: andreamills@charter.net
Comments: rerererere
------------------------
Below are products from Your order
------------------------
- Gourmet Lollipops (Quantity: 1, Summary price: 23.40)

------------------------
Delivery and summary costs
------------------------
Courier: We will Call You with shipping Cost (Price: 0.00)

Summary cost: 23.40

Any suggestions on how to fix.

Rodney

rodney

treewood (OpenSolution)

Avatar: treewood

2007-08-07 12:41

rodney - maybe i dont understand but if You want delete delivery then edit templates/en_sendOrderToClient.tpl and delete:

|n||n|------------------------
Delivery and summary costs
------------------------
Courier$aCourier[sName] (Price$aCourier[sPrice])



Warning! This topic is about deleting shipping from order form

imees

Avatar: imees

2009-03-29 06:56

Can enyone tell how can I do it (delete for example couriers field) in 1.4 version??

PL: Czy wie ktoś może jak to zrobić (usunąć na przykład opcję kurierów) w wersji 1.4?

z góry dziękuję!

imees

Avatar: imees

2009-03-29 06:57

Znaczy udało mi się usunąć ale wciąż nie można zaakaceptować zlecenia bo formularz wymaga tego pola.

treewood (OpenSolution)

Avatar: treewood

2009-03-30 07:59

imees - edit core/orders.php and delete:
&& isset( $aCourier )
from function: checkOrderFields

and from templates/orders_delivery.tpl delete this:
,Array( 'iCourier', 'simple', '$lang[Choose_courier]' )

Back to top
about us | contact