Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="dec qtybutton ">-</div>
- <input type="text" value="<?php echo $values['qty'];?>" name="qty[]" id="qty" class="qty minhaj_update test">
- <div class="inc qtybutton " >+</div>
- </div></span>
- </td>
- <td class=" product-subtotal"><span class="money" data-currency-usd="<?php echo $values['subtotal'];?>"><?php echo $values['subtotal'];?></span></td>
- <td class=" product-remove cartrmove" data-id="<?php echo $values['rowid']?>"><a href="javascript:void(0);" ><i class="fa fa-times" aria-hidden="true" ></i></a></td>
- </tr>
- <?php $i++; } ;?>
- </tbody>
- </table>
- </div>
- <div class="row table-responsive_bottom">
- <div class="col-lg-7 col-sm-7 col-md-7">
- <div class="buttons-carts">
- <input class="theme-default-button" type="submit" value="Update Cart">
- <a href="<?=base_url();?>">Continue Shopping</a>
- </div></form>`
- public function update_cartpage()
- {
- $roids=$this->input->post('rowid',true);
- $gty=$this->input->post('qty',true);
- if (!empty($roids)) {
- $data = array(
- 'rowid' => $roids,
- 'qty' => $gty
- );
- /* print_r($data);
- exit; */
- $this->cart->update($data);
- } else{
- echo "sorry";
- exit;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement