Search found 7 matches

Page 1 of 1

Search found 7 matches

Re: Refresh subtotal in header

SOLVED The problem was in ajax code and in catalog/controller/module/cart.php For updated subtotal in header i added a new publicfunction in cart.php: public function subtotale() { $this->language->load('module/cart'); $this->load->model('tool/seo_url'); if ($this->request->server['REQUEST_METHOD'] ...

Jump to post
  • Tue May 18, 2010 6:32 pm
  • Replies 1
  • Views 5204
Re: Cart won't work in modded template

SOLVED The problem was in ajax code and in catalog/controller/module/cart.php For updated subtotal in header i added a new publicfunction in cart.php: public function subtotale() { $this->language->load('module/cart'); $this->load->model('tool/seo_url'); if ($this->request->server['REQUEST_METHOD'] ...

Jump to post
  • Tue May 18, 2010 6:30 pm
  • Replies 6
  • Views 2326
Refresh subtotal in header

Hi all! I've a problem with my cart update: if in product page i click on "add to cart" button, animation work fine but the cart subtotal (in header) doesnt' update on click: i've to refresh the entire page to update subtotal. Added line in header.php: $this->data['subtotal'] = $this->currency->form...

Jump to post
  • Mon May 17, 2010 5:06 pm
  • Replies 1
  • Views 5204
Re: Cart won't work in modded template

ok.... i found the problem:
there was 2 data in javascript:

data: $('#product :input'),
data: $('#prodotto :input'),

But cart in header doesn't refresh on click :)

Jump to post
  • Sun May 16, 2010 4:47 am
  • Replies 6
  • Views 2326
Re: Cart won't work in modded template

Hi Xsecrets, thank for reply!!! i've just added the form code to send qty and product_id with this code: <form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="product"> <div class="content"><?php echo $text_qty; ?> <input type="text" name="quant...

Jump to post
  • Sun May 16, 2010 3:55 am
  • Replies 6
  • Views 2326
Cart won't work in modded template

Hi, i've modded the default template (OC 1.4.7) but something went wrong :P The main problem is the following: I put the cart in header.tpl. Jquery animation works fine, but clicking on "Add to cart" button, the products are not included and updated. Javascript added on header.tpl: <script type="tex...

Jump to post
  • Sun May 16, 2010 1:02 am
  • Replies 6
  • Views 2326

Page 1 of 1

Search found 7 matches