Search found 152 matches

Search found 152 matches

Re: Display cart total on product page

Add in product controller:

Code: Select all

$data['total_products'] = $this->cart->countProducts();
and then in .tpl

Code: Select all

<?php echo $total_products; ?>

Jump to post
  • Sun Dec 13, 2015 4:22 am
  • Replies 7
  • Views 823
Re: Incorrect Totals value in Customer Orders List

Try download Open Cart 2.0.1.1 and compare your file with the downloaded.

Jump to post
  • Sun Dec 13, 2015 3:23 am
  • Replies 8
  • Views 828
Re: Incorrect Totals value in Customer Orders List

I'm now download Open Cart 2.0.1.1 from Download page and the code for getOrders is public function getOrders($data = array()) { $sql = "SELECT c.customer_id, CONCAT(c.firstname, ' ', c.lastname) AS customer, c.email, cgd.name AS customer_group, c.status, o.order_id, SUM(op.quantity) as products, SU...

Jump to post
  • Sun Dec 13, 2015 3:03 am
  • Replies 8
  • Views 828
Re: Incorrect Totals value in Customer Orders List

Try change this in admin/model/report/customer.php public function getOrders($data = array()) { $sql = "SELECT c.customer_id, CONCAT(c.firstname, ' ', c.lastname) AS customer, c.email, cgd.name AS customer_group, c.status, o.order_id, SUM(op.quantity) as products, SUM(DISTINCT o.total) AS total FROM...

Jump to post
  • Sun Dec 13, 2015 1:05 am
  • Replies 8
  • Views 828
Re: Discount prices are not working

The price 38,325 is for one product or two?

Jump to post
  • Thu Dec 10, 2015 7:52 pm
  • Replies 7
  • Views 499
Re: "Official" 2.1.0.1 BUG topic

Why you edit shipped order? You can add an hidden field to the cart table in order edit page with paid price and then pass this price to the cart class. Then in cart class with one session var replace current price with the passed price. But the problem come when you try to add new product which is ...

Jump to post
  • Wed Dec 09, 2015 8:38 pm
  • Replies 53
  • Views 13846
Re: no place to put coupon code in front

Go to Extensions -> Order Totals and look if coupon total is enabled.

Jump to post
  • Wed Dec 09, 2015 6:06 pm
  • Replies 7
  • Views 800
Re: "Official" 2.1.0.1 BUG topic

You can fix this, but the problem is when you add new product, which is already in the order. Which price is now ok, the new or the old and how the cart distinguish the new one from the old. The add function in cart search, if is already there a product with equal data and then insert or update a pr...

Jump to post
  • Wed Dec 09, 2015 1:17 pm
  • Replies 53
  • Views 13846
Re: Strange behavior on edit/delete orders (admin side)

It may happen that errors occur. But it is a very small chance that both admin and customer at same time edit cart. I do not like the new cart so for my site i wrote a new cart and fix this.

Jump to post
  • Wed Dec 09, 2015 1:37 am
  • Replies 15
  • Views 4787
Re: Featured Products - Autocomplete issues

There is the problem: ELECT * FROM oc_product p LEFT JOIN oc_product_description pd ON (p.product_id = pd.product_id) WHERE pd.language_id = '1' AND pd.name LIKE '%test%' GROUP BY p.product_id ORDER BY pd.sort_order ASC LIMIT 0,5 pd.sort_order You need to change pd.sort_order to p.sort_order. ELECT ...

Jump to post
  • Thu Dec 03, 2015 10:22 pm
  • Replies 4
  • Views 355
Re: customer table token field - what is it used for?

Is used when admin login in customer account.

Jump to post
  • Sun Nov 29, 2015 3:00 am
  • Replies 1
  • Views 398
Re: SyntaxError: Unexpected Token

The second error image i think is related to checkout.tpl file and how it pass post values to controller. I can't say what is wrong without see the code.

Jump to post
  • Wed Nov 11, 2015 4:05 pm
  • Replies 5
  • Views 487
Re: SyntaxError: Unexpected Token

This error refer to this $this->session->data['comment'] = strip_tags($this->request->post['comment']); in catalog/controller/checkout/shipping_method.php line 131. Check in your shipping_method.tpl file if is there textarea or input with name "comment" and if in checkout.tpl $(document).delegate('#...

Jump to post
  • Wed Nov 11, 2015 3:57 pm
  • Replies 5
  • Views 487
Re: Option description to long on invoice

In admin/controller/sale/order.php public function invoice() change this

Code: Select all

'value' => $value
to

Code: Select all

'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)

Jump to post
  • Wed Nov 11, 2015 12:31 pm
  • Replies 4
  • Views 265
Re: How to redirect checkout/cart to checkout/checkout

Can you send me by PM the copy of code that you change. I don't understand, for me is working.

Jump to post
  • Wed Nov 11, 2015 6:43 am
  • Replies 12
  • Views 1560
Re: How to redirect checkout/cart to checkout/checkout

Are you have installed some extension for cart?

Jump to post
  • Wed Nov 11, 2015 6:19 am
  • Replies 12
  • Views 1560
Re: How to redirect checkout/cart to checkout/checkout

Then you just add after public function index() {

Code: Select all

$this->response->redirect($this->url->link('checkout/checkout', '', true));

Jump to post
  • Wed Nov 11, 2015 5:23 am
  • Replies 12
  • Views 1560
Re: How to redirect checkout/cart to checkout/checkout

If you apply direct redirect from checkout/cart to checkout/checkout, when the cart is empty you get an loop from checkout/cart to checkout/checkout and back.

Jump to post
  • Wed Nov 11, 2015 5:15 am
  • Replies 12
  • Views 1560

Search found 152 matches