Search found 24 matches

Search found 24 matches

Re: [SOLVED] - Customer orders duplicating on checkout

Okay thanks!
I will check into the error log.

Jump to post
  • Thu May 16, 2024 9:56 pm
  • Replies 11
  • Views 3977
Re: [SOLVED] - Customer orders duplicating on checkout

I tried these fixes but still have this problem from time to time. ??? Main problem is that when it happens the item stock gets reduced twice. If it's a large order, I annull it so it only gets reduced once. If it's a smaller order I can manually update the stock for the item or items. At least the...

Jump to post
  • Mon May 13, 2024 7:21 pm
  • Replies 11
  • Views 3977
Re: [SOLVED] - Customer orders duplicating on checkout

I tried these fixes but still have this problem from time to time. ??? Main problem is that when it happens the item stock gets reduced twice. If it's a large order, I annull it so it only gets reduced once. If it's a smaller order I can manually update the stock for the item or items. At least ther...

Jump to post
  • Fri May 10, 2024 5:10 pm
  • Replies 11
  • Views 3977
Re: How to change wishlist add behavior

Thanks. I tried all the cache clearning but they didn't work. But it gave me some ideas. https://forum.opencart.com/viewtopic.php?t=216444 Here it says how to remove the scroll effect. Then I changed in stylesheet.css to add this .alert-dismissible { position:fixed; top: 0; z-index: 500; } Then the ...

Jump to post
  • Thu Apr 11, 2024 9:15 pm
  • Replies 4
  • Views 627
How to change wishlist add behavior

Version 3.0.2.0 A customer told me they find it annoying to have the page scroll up when the click "add to wishlist". So I wanted to change that. I tried changing /template/account/wishlist.twig to include "div style="position:fixed;" in the div, but it seems that file is ca...

Jump to post
  • Thu Apr 11, 2024 4:41 pm
  • Replies 4
  • Views 627
Re: I can't change the emails Opencart sends to customers

I struggled with this too.
Eventually decided to just rename the file order_edit to order_edit2, and in order.php change this line like this
$mail->setText($this->load->view('mail/order_edit2', $data));
It seems to get cached again, so change it to order_edit3 if you need to change again.

Jump to post
  • Mon Jan 30, 2023 6:05 pm
  • Replies 7
  • Views 1454
Re: Has captcha been compromised ?

I also got a lot of spam despite captcha, there is a bot that is good at cracking captchas. Eventually I just hardcoded my own spam protection by adding a field in the contact page that asks a question that needs to be answered with the letters APA. So far no spam. First I tried to have users answer...

Jump to post
  • Wed Jul 07, 2021 6:15 pm
  • Replies 15
  • Views 1274
Re: How to show the number of items sold

The query you could use on the product page is $data['sold_count'] = $this->db->query("SELECT SUM(op.quantity) AS quantity FROM " . DB_PREFIX . "order_product op LEFT JOIN `" . DB_PREFIX . "order` o ON (op.order_id = o.order_id) WHERE o.order_status_id > '0' AND op.product_...

Jump to post
  • Tue Jul 06, 2021 7:22 pm
  • Replies 9
  • Views 10727
Edit modification cache directly

I've made som changes to the modifications and so I can't click on "refresh" in modification, otherwise everything will go back to how it was and some things will break in the webshop. But how can I change the modifications now? Is it in the datebase or is there some cached file I can edit...

Jump to post
  • Thu Mar 12, 2020 7:13 pm
  • Replies 2
  • Views 290
Re: Prevent adding same item twice in basket

Nope, doesn't work. I still have customers placing double orders, it happens at least once a month. And there is no alternatives. https://i.imgur.com/fTYiAQi.jpg https://i.imgur.com/k5aey2W.jpg I mean seriously, what is this shit? This is from the last month alone. If I had known that OpenCart is su...

Jump to post
  • Fri Dec 13, 2019 6:12 pm
  • Replies 15
  • Views 2878
Exception when having text box value field in admin

OpenCart 3 There will be an exception when trying to save a product that has a value field that is a textbox. Sorry if I can't explain it, my store is in Swedish. I mean this: https://i.imgur.com/HtPU4Gh.jpg So what I did was to add this hack in admin/model/catalog/product.php line 194 try { $this->...

Jump to post
  • Thu Aug 29, 2019 5:45 pm
  • Replies 1
  • Views 614
Re: Prevent adding same item twice in basket

found it: https://forum.opencart.com/viewtopic.php?f=201&t=211273 That's great! Which of the posts exactly should I implement? Do I need to edit all those files? I would prefer something simple. Also, is this verified to work if a customer adds 1 item ABC with extra selection ("blue")...

Jump to post
  • Fri Aug 16, 2019 8:46 pm
  • Replies 15
  • Views 2878
Re: Prevent adding same item twice in basket

I don't know how it is possible either but it has happened in my shop several times now. I can't recreate it either. I don't know what the costumers do. If you had only a couple cases like this, I suggest you to ignore. Just disable checkout for out-of-stock items in store settings and be happy. It...

Jump to post
  • Fri Aug 16, 2019 7:53 pm
  • Replies 15
  • Views 2878
Re: Prevent adding same item twice in basket

letxobnav wrote:
Fri Aug 16, 2019 7:20 pm
Thank you I will try this and see what customers say.
It won't prevent users from adding the same item twice bug, but at least it won't be possible to add items out of stock, I hope.

Jump to post
  • Fri Aug 16, 2019 7:50 pm
  • Replies 15
  • Views 2878
Re: Prevent adding same item twice in basket

I can't even imagine, how can one have 2 same items in the cart. When you add the same item, its quantity is simply increases. This is a standard behavior for all webshops. I don't know how it is possible either but it has happened in my shop several times now. I can't recreate it either. I don't k...

Jump to post
  • Fri Aug 16, 2019 6:53 pm
  • Replies 15
  • Views 2878
Re: Prevent adding same item twice in basket

Thank you. I'm thinking it might be best to have the logic in the checkout rather than in the cart. I found there is already some logic: controller/checkout.php // Validate minimum quantity requirements. $products = $this->cart->getProducts(); foreach ($products as $product) { $product_total = 0; fo...

Jump to post
  • Fri Aug 16, 2019 6:50 pm
  • Replies 15
  • Views 2878
Prevent adding same item twice in basket

OC 3.0.2.0. I have some modules but it shouldn't matter. In the last few days, two customers made orders that included the same item twice. I think it might be that they added the item first without being logged in, but I don't know. In the second case, the item now has a stock value of -1. This sho...

Jump to post
  • Fri Aug 16, 2019 4:33 pm
  • Replies 15
  • Views 2878
Re: vqmod/checked.cache.php bug

No ... the solution I have posted right here ... https://forum.opencart.com/viewtopic.php?f=199&t=209660#p759517 Alright, but I tried that and it didn't work. It was already set to Off. Seems like this is a known problem: https://github.com/vqmod/vqmod/issues/135 https://github.com/vqmod/vqmod/...

Jump to post
  • Thu Jul 11, 2019 1:43 am
  • Replies 14
  • Views 5301
Re: vqmod/checked.cache.php bug

What I'm doing now is to delete (or rename) the cache file in vqmod/checked.cache but it seems to fill up to its max 26 MB in about 3 weeks and then my web server stops functioning. Is there anything I can do to prevent this? Yes ... the solution has been posted on the above about it ... Do you mea...

Jump to post
  • Thu Jul 11, 2019 1:18 am
  • Replies 14
  • Views 5301
Re: vqmod/checked.cache.php bug

See this solution: https://forum.opencart.com/viewtopic.php?f=202&t=212346&p=759308#p759308 . How do I disable product count in opencart 3? Maybe that will help (if I haven't already done so). Admin - > Systems - > Settings - > Add / Edit Settings page. Thank you! I see this was already set...

Jump to post
  • Wed Jul 10, 2019 8:53 pm
  • Replies 14
  • Views 5301

Search found 24 matches