Re: Check if a cart has a voucher (hasVoucher)
Dear Straightlight,
thanks a lot for the quick reply. I adapted the code a little and it works like a charm!
Thank you so much for your help.
Have a great day,
Torge
- Thu Oct 29, 2020 12:06 pm
- Replies 2
- Views 503
Check if a cart has a voucher (hasVoucher)
Dear OC community, I would like to have free shipping on all carts that have a voucher. My idea was to edit if ($this->cart->getSubTotal() < $this->config->get('shipping_free_total')) { $status = false; } in "/catalog/model/extension/shipping/free.php" to something like if (!$this->cart->h...
Jump to post- Thu Oct 29, 2020 12:17 am
- Replies 2
- Views 503
Re: Having 100+ items in the basket gives "error_stock" message
Dear sw!tch, thanks a lot for your reply. You are right in that when I edit the line accordingly the warnings in the product table disappear. However, this is the same outcome I could achieve by changing the setting in admin (that availability is just not checked anymore). The underlying problem is ...
Jump to post- Wed Oct 21, 2020 6:57 pm
- Replies 11
- Views 1284
Re: Having 100+ items in the basket gives "error_stock" message
Hi all, I finally come around to work on this again. I am still having this problem. However, I found that @letxobnav was right fun that there was a modification that lead to my changes not showing up. In fact, when I change the hasStock function in the cart library to this public function hasStock(...
Jump to post- Tue Oct 20, 2020 9:28 pm
- Replies 11
- Views 1284
Re: Having 100+ items in the basket gives "error_stock" message
Dear letxobnav, yes, I edited the correct code and still get the same message. Funny thing is: Everything works as expected. Meaning that when a product has an availability of 35 the checkout works with 35 and throws an error beginning at 36. This works correct for all products. Only when I put a pr...
Jump to post- Wed Sep 04, 2019 5:13 pm
- Replies 11
- Views 1284
Re: Having 100+ items in the basket gives "error_stock" message
re: letxobnav Darn, I posted the wrong code, sorry. In fact even when I delete the lines you posted I still get the same error message.... :-\ I already search all my code (incl. extensions) for another "$stock = false" but there is no such line anywhere else. Any other idea on how to bugf...
Jump to post- Thu Aug 29, 2019 6:49 pm
- Replies 11
- Views 1284
Re: Having 100+ items in the basket gives "error_stock" message
Thanks for your help! Even when I delete if ($option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $cart['quantity']))) { $stock = false; } } from the cart class the problem does still exist. Also I noticed that in the DB pr...
Jump to post- Wed Aug 28, 2019 11:00 pm
- Replies 11
- Views 1284
Having 100+ items in the basket gives "error_stock" message
Dear OC community, whenever someone wants to purchase more than 99 of the same products in my shop the cart shows the "error_stock" message ("Products marked with *** are not available in the desired quantity or not in stock!"). This happens for all my products. The quantity for ...
Jump to post- Wed Aug 28, 2019 8:26 pm
- Replies 11
- Views 1284
Filters not checked on result page
Dear OC-community, I checked the forums but couldn't find a similar question. I am using the standard opencart filters on my site (OC 3.0.2.0 running with a BurnEngine theme and among others the Complete SEO mod). The filters are working fine however on the result page the boxes are not checked. For...
Jump to post- Mon Dec 10, 2018 8:55 pm
- Replies 1
- Views 582
Re: Main image disappears after editing product
I found the problem! I imported the product and product_description tables from my old shop into this dev and I just saw that some external module altered the structure of the product_description table. The indices for the table had the additional line ALTER TABLE `oc_product_description` ADD FULLTE...
Jump to post- Thu Aug 23, 2018 7:20 pm
- Replies 6
- Views 949
Re: Main image disappears after editing product
First off: Thank you very much for taking the time to help me! I did what you said and the array reads: Array ( [product_description] => Array ( [2] => Array ( [name] => Berglauch [description] => <p>Berglauch ist im Kräutergarten eine wahre Zierde. Wird zwar nur 20 Zentimeter hoch, blüht dafür herr...
Jump to post- Thu Aug 23, 2018 1:51 am
- Replies 6
- Views 949
Re: Main image disappears after editing product
Dear Straightlight, thanks a lot for getting back to me and sorry for not mentioning it right away, but: both logs (OC log and server log) are not showing any error. They're empty. I actually wish I had more information but I don't. Sorry :( I am just hoping someone had this problem before and has a...
Jump to post- Wed Aug 22, 2018 10:56 am
- Replies 6
- Views 949
Main image disappears after editing product
Hej OC-community, whenever I edit a product in the backend and save it the main image of this product gets deleted from the database. I have had this problem in an OC shop (v 2.3.0.2) for some time now but assumed that this had something to do with putting the images to a subdomain (which I did arou...
Jump to post- Tue Aug 21, 2018 10:42 pm
- Replies 6
- Views 949
Re: Setting Language based on Domain
Hej opencartmart,
thank you very much for your reply. Unfortunately it doesn't seem to do the trick. Would it have to be HTTPS_Host? Or do you have any other idea as to why this wouldn't work?
Thanks & best,
Torge
- Wed Dec 14, 2016 6:42 pm
- Replies 3
- Views 2602
Setting Language based on Domain
Hej guys, I would like to set the customers language based on the current domain (I have modded my OC so that form one core I got 2 languages running on separate domains). Unfortunately I am a php noob. My solution would be to attach ?language=de or ?language=en to the customers landing page via JS....
Jump to post- Wed Dec 07, 2016 11:39 pm
- Replies 3
- Views 2602
Re: Trying to integrate "Purchase through Amazon" button
Ok, I guess I got a bit closer to the solution. I now have the following code as vqmod: <modification> <id>Add Amazon checkout button</id> <version>1.0</version> <vqmver>2.5.0</vqmver> <author>Torge Kahl</author> <file name="catalog/controller/product/product.php"> <operation> <search posi...
Jump to post- Fri Jun 17, 2016 12:42 am
- Replies 1
- Views 1615
Trying to integrate "Purchase through Amazon" button
Hej guys, I am trying to build a vqmod that adds a button on the product page next to or below the add to basket button. The button should say "Buy at Amazon" and deeplink into the respective Amazon product page. Unfortunately I am not a coder, I have some knowledge of html/css but very li...
Jump to post- Wed Jun 15, 2016 12:57 pm
- Replies 1
- Views 1615
Data Layer on confirmation.tpl
Hi OC-community, I want to add a data Layer to the confirmation.tpl so that I could fire the GA e-commerce tag via the Tag Manager once the customer clicks on "Confirm". I tried using this code: <script> dataLayer = [{ 'transactionId': '<?php echo $order_id ?>', 'transactionTotal'...
Jump to post- Fri Dec 11, 2015 11:30 pm
- Replies 0
- Views 956
Re: I would like to open a page in a box like T&Cs
Hi OpenTeam,
in a word: WOW! This does the trick perfectly. Thank you so very much. The only thing I change was the width in the JS to width: '80%'. Perfect.
Thanks!
- Thu Dec 03, 2015 6:34 pm
- Replies 12
- Views 2117
Re: I would like to open a page in a box like T&Cs
Hej jimmyphong,
I tried that already and it doesn't work unfortunately. See: https://www.diestadtgaertner.de/pflanzen/erdbeerminze. Just retried to make sure but still no luck. Any further ideas?
Thanks & best,
Torge
- Thu Dec 03, 2015 2:32 pm
- Replies 12
- Views 2117