Ejemplo n.º 1
0
        _e('Shipping cost', 'cart66');
        ?>
</th>
        		<th><?php 
        _e('Actions', 'cart66');
        ?>
</th>
        	</tr>
        </thead>
        <tbody>
          <?php 
        foreach ($rules as $rule) {
            ?>
            <?php 
            $method = new Cart66ShippingMethod();
            $method->load($rule->shipping_method_id);
            ?>
           <tr>
             <td><?php 
            echo Cart66Common::currency($rule->min_amount);
            ?>
</td>
             <td><?php 
            echo $method->name ? $method->name : "<span style='color:red;'>Please select a method</span>";
            ?>
</td>
             <td><?php 
            echo Cart66Common::currency($rule->shipping_cost);
            ?>
</td>
             <td>
 public function setShippingMethod($id)
 {
     $method = new Cart66ShippingMethod();
     if ($method->load($id)) {
         $this->_shippingMethodId = $id;
         Cart66Common::log('[' . basename(__FILE__) . ' - line ' . __LINE__ . "] Set shipping method id to: {$id}");
     } elseif (Cart66Setting::getValue('require_shipping_validation')) {
         $this->_shippingMethodId = 'select';
     }
 }