Re: out of stock products hidden on latest module
Think I just found a way to do it, I have modified the code on catalog/view/theme/default/template/product/category.tpl After <?php foreach ($products as $product) { ?> I added the following line <?php if ($product['quantity'] < "1") { ?> <div style="display: none;"></div> <?php ...
Jump to post- Thu Aug 08, 2024 1:45 am
- Replies 15
- Views 1143
Re: out of stock products hidden on latest module
I have just managed to sort the issue on the latest module on the homepage and looks to be working all ok. Just need to now hide the out of stock products on the category page, what coding would I need to use to hide the out of stock products that have zero quantity on the category page in opencart ...
Jump to post- Thu Aug 08, 2024 12:40 am
- Replies 15
- Views 1143
Re: out of stock products hidden on latest module
I tried the code AND p.quantity > '0' but don't work, on the category page it replaces the products with zero quantity with empty products that have no id numbers and no names It should not affect the category page at all. Just tested and changes worked fine. Your are can't be making the correct ch...
Jump to post- Wed Aug 07, 2024 5:28 pm
- Replies 15
- Views 1143
Re: out of stock products hidden on latest module
I have not modified the getLatestProducts query in catalog/model/catalog/product.php If you did want to modify it, it's probably the simplest way. Revert your changes. Make the change at https://github.com/opencart/opencart/pull/8178 Then in catalog/model/catalog/product.php chage. $query = $this->...
Jump to post- Tue Aug 06, 2024 10:35 pm
- Replies 15
- Views 1143
Re: out of stock products hidden on latest module
If you modified the getLatestProducts query in catalog/model/catalog/product.php. You will need to make this change as 2.3.0.2 is still using the slower getProducts method. https://github.com/opencart/opencart/pull/8178 If changing the database query and the above then shouldn't need the changes fr...
Jump to post- Tue Aug 06, 2024 8:34 pm
- Replies 15
- Views 1143
Re: out of stock products hidden on latest module
I just checked the storage/modification folder and is no extensions modifying the files Jump to postADD Creative wrote: ↑Tue Aug 06, 2024 4:18 pmCheck your storage/modification directory in case you have extensions that are also modifying the files.
- Tue Aug 06, 2024 5:47 pm
- Replies 15
- Views 1143
Re: out of stock products hidden on latest module
You can add quantity in controller and here $query = $this->db->query("SELECT p.product_id FROM " . DB_PREFIX . "product p LEFT JOIN " . DB_PREFIX . "product_to_store p2s ON (p.product_id = p2s.product_id) WHERE p.status = '1' AND p.date_available <= NOW() AND p2s.store_id ...
Jump to post- Tue Aug 06, 2024 2:11 am
- Replies 15
- Views 1143
Re: Hiding out of stock items on latest module [solved]
Hi I have tried this code for the latest module on the homepage and it's still showing a empty space for a out of stock product. I'm using opencart 2.3.0.2. Should I increase the number 6 to 7 on this line if ($count == 6) break; That would depend on what the module limit is set to. It's set to 9
Jump to post- Mon Aug 05, 2024 8:10 pm
- Replies 5
- Views 4497
out of stock products hidden on latest module
Hi I am trying to get the latest module to hide of stock products, I found similar code that works on opencart 1.5 but not on opencart 2.3. The forum post I found is at https://forum.opencart.com/viewtopic.php?t=147258#p569210 I thought it did work last night but visited the site this morning and is...
Jump to post- Mon Aug 05, 2024 6:13 pm
- Replies 15
- Views 1143
Re: Hiding out of stock items on latest module [solved]
Hi
I have tried this code for the latest module on the homepage and it's still showing a empty space for a out of stock product. I'm using opencart 2.3.0.2.
Should I increase the number 6 to 7 on this line
Code: Select all
if ($count == 6) break;
- Mon Aug 05, 2024 6:08 pm
- Replies 5
- Views 4497
Re: advanced grid title showing product name instead
Adding the code directly will cause the same issue. Best contact the developer. The advanced_grid.php is not part of OpenCart so it is strange that it being modified by another extension. Sorry for just getting back to your reply. No worries I'll contact the developer, thank you for the replies etc...
Jump to post- Tue Jul 23, 2024 5:42 am
- Replies 9
- Views 1595
Re: advanced grid title showing product name instead
Found the modification file that's causing the issue, it's the Google Tag Manager modification file as I disabled each modification one by one and still had the issue until I disabled the Google Tag Manager one and the issue was resolved and was displaying Featured Products instead of a product name...
Jump to post- Fri Jul 19, 2024 12:02 am
- Replies 9
- Views 1595
Re: advanced grid title showing product name instead
It's OK to have the class in the admin and catalog as they are effectively separate applications. I can't see why you should have two admin directories. The file in storage\modification will be used in place of the one in catalog\controller\extension\module\ as it is the same file just with modific...
Jump to post- Thu Jul 18, 2024 11:46 pm
- Replies 9
- Views 1595
Re: advanced grid title showing product name instead
I downloaded a tool called agent ransack and searched the files for ControllerExtensionModuleAdvancedGrid and it found 4 files that has the code in Below is the files it found with the code in admin\controller\extension\module\advanced_grid.php catalog\controller\extension\module\advanced_grid.php i...
Jump to post- Thu Jul 18, 2024 11:23 pm
- Replies 9
- Views 1595
Re: advanced grid title showing product name instead
You could search in all the .php files, including in storage/modification for "ControllerExtensionModuleAdvancedGrid". This should tell you if you have 2 classes with the same name. Thank you, what's the quicker way to do it or do I need to open every php file I find in both the admin and...
Jump to post- Thu Jul 18, 2024 10:04 pm
- Replies 9
- Views 1595
advanced grid title showing product name instead
I'm using a theme called techone and it's mostly working but when I come to using advanced grid module and the products tabs type column it's displaying the product name from the last product in the products grid with carousel instead of the module title name. It should display Featured Categories. ...
Jump to post- Thu Jul 18, 2024 9:03 pm
- Replies 9
- Views 1595
Re: worldpay business gateway redirect back to website help
Good news, got it working. It was because the website was in maintenance mode and the API callback could not be called or something and redirect back to the website, I took the website out of maintenance mode and the payment went through all ok and redirected back to the website Well done for updat...
Jump to post- Tue Jul 02, 2024 1:13 am
- Replies 15
- Views 909
Re: worldpay business gateway redirect back to website help
Good news, got it working. It was because the website was in maintenance mode and the API callback could not be called or something and redirect back to the website, I took the website out of maintenance mode and the payment went through all ok and redirected back to the website Well done. :) Thank...
Jump to post- Mon Jul 01, 2024 3:57 pm
- Replies 15
- Views 909
Re: worldpay business gateway redirect back to website help
Good news, got it working. It was because the website was in maintenance mode and the API callback could not be called or something and redirect back to the website, I took the website out of maintenance mode and the payment went through all ok and redirected back to the website
Jump to post- Mon Jul 01, 2024 6:29 am
- Replies 15
- Views 909
Re: worldpay business gateway redirect back to website help
No probs. It should be fixable. :) Hopefully I was thinking if should get this extension https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=28917 as it might have newer updated code for opencart 2.3.0.2 and php versions as the one I installed was from 2017 and migh...
Jump to post- Mon Jul 01, 2024 2:32 am
- Replies 15
- Views 909