Opencart: Disabled product still shows in bestseller - module

Not really sure why this is, but when I disable a product in the admin, it is still showing in the bestseller module. It has been removed everywhere else. There is no product page, there is no listing in any category, and you can not search for it anymore.
Unfortunately the bestseller module isn't on board with the rest of the system. The image, title, and button are still all "active" for the disabled product. Clicking does bring you to a 404 page, but it is strange (And crazy annoying) that a disabled product is still used.
I can't figure the thing out, any ideas on this?
*And why is a bestseller disabled: Supplier stopped supplying them. working with v1.5.5.1 if it matters.

The most likely culprit is going to be a cache file that needs deleting. Open /system/cache/ and find a file starting product.bestseller and delete it. This should fix it. If this doesn't fix it, then it's going to be a modification causing this (vQmod most probably)

Related

Odoo 12 Enterprise Issue in Manufacturing. It is not possible to unreserve more products of "Product Name" than you have in stock

Impacted versions: odoo12
Steps to reproduce: Created a Manufacturing Order. Completed the Work order. Clicking Mark as Done. The error is coming.
Current behavior: Struggling with the error. I duplicated the Manufacturing order and processed it. It closed smoothly without any issue/error.
Expected behavior: Manufacturing order should move to done state as soon as Mark As done is clicked.
Video/Screenshot link (optional): https://ibb.co/Lp5PntS
Follow the below steps to fix the bug for odoo stock issue.
In order to implement it you need to follow below steps:
Debug mode
Technical/server actions
Create
Action name: e.g. fix unreserved qty
model: ir.actions.server
Action to do: “execute python code”
copy/paste the fix underneath the pre-existing code
“save”
“create contextual action”
Refresh page
Action/fix “fix unreserved qty”
Wait for it to load
“remove contextual action”
Action/delete
It happens because the reserved quantity in your inventory does not reflect the one on your pickings. It’s probably due to a small configuration change while some pickings where open.
An easy way to remove it is to create a server action that executes this code
https://gist.github.com/jaa-odoo/8eb0a7250e1cecb2e412563ae6346052
Solution Code.
It should repair all the inconsistencies in your data.
Fix Decimal for stock unreversed issue.
https://gist.github.com/jaa-odoo/a6315513bf7b2d8525a60c6f36c0f897
code

How does –PKGSTYLESHEETMODE=1 work

I created an HP Extreme package without this setting and it cause a huge black box to appear on my output. After packaging with –PKGSTYLESHEETMODE=1 enabled, it seems to have fixed the problem. No one in my area know exactly what this switch does, we were just told to use it when the black box happens.
Can anyone explain what this does and how it affects the actual package?
I was able to find someone with a manual. There are 3 different options for -PKGSTYLESHEETMODE. =1 means that stylesheets will be included to a package regardless of that what approval status the stylesheet is current in. EX: You can do an approved package with a WIP stylesheet and it will still work.

Odoo 9 - cannot load custom module

I am brand new to odoo, just installed version 9 and made a module 'aidentest' using
.>>python odoo.py scaffold aidentest addons
That created the aidentest module in the addons folder. Uncommented everything in the autogenerated files
but when I went to check out my 'Hello World' page at
http://localhost:8069/aidentest/aidentest
I got a 404 not found
So I went to apps to try and load my module, but I could not find it.
Does anyone know what I need to do on Odoo 9 to load up and start coding my custom module?
Briefly: You have to activate developer mode by going to Top right menu>about>activate developer mode
I had basically given up, and was mindlessly clicking about when I hit the 'About' link on the generic-whiteguy dropdown. I had to actually stop thinking before I was able to locate the completely senseless place where they put the thing I need.
The About modal window popped up, and in it was an activate the developer mode button
Some things changed immediately, but I still couldn't find my custom module.
Then I walked away, came back and when I returned I had some auto-generated emails (new things had loaded - slowly). Did this mean that maybe my module had also become accessible? I checked, and sure enough, there it was.
ZERO DOCUMENTATION about this
Please check the config file.Then send the last error it has.

Performance issue with Prestashop

When I click Modules in Admin Panel Back Office, it is taking arround 2mins to view the modules page. I want to know how to find where is the problem.
I have seen the below link for performance issue, but even after emptying the guest table it is taking same time(2mins).
https://www.prestashop.com/forums/topic/266421-500000-rows-on-ps-guest-sounds-too-big/
Kindly suggest to find the root cause of the problem.
Go to file defines.inc.php and value change:
define('_PS_MODE_DEV_', false);
for:
define('_PS_MODE_DEV_', true);
with this active developer mode and you see error in php and server...
define('_PS_DEBUG_PROFILING_', false);
This will show you all hooks and controller executions time with a lot of details, you could probably find where you have a bottleneck with only that.

Partial view never affects site after upload and IIS reset

I'm including a partial view in one of the pages of my MVC4 site which when deployed, even after a restart of the web site and recycling of the app pool, never seems to affect the site
I'm wondering if this is caching coming into play
I ended up including the content of the partial view in the page iteself and that seems to have worked but I'd rather have the partial view as I'd like to use the view in other parts of the site
The question is, does anyone have any suggestions as to why this might be happening? I've been pulling my hair out trying to get a view to post the correct data, only to realise that some of the hidden inputs are just missing because the partial view has not been refreshed
EDIT:
Ok now I have a need to use this partial view in more than once place. On my dev environment the partial is rendering correctly. Uploading to the server doesn't seem to have any effect, but what's worse, deleting the partial view from the server also has the same issue.
My site still thinks the file is there and complains about the model type passed to the view now (I changed the model type in the view - all working fine on my local dev) - why does it still think the file is there?
I deleted one of the parent views to see if the site carried on working, but as soon as I delete any other file, the site is affected. Why is this particular file giving me trouble? It's as if the server has cached it at the file system level and is supplying the wrong file content to ASP.NET
I'm going to try renaming the file next
Ok so renaming the file appears to have worked.
I didn't try Fals suggestion but I might try that next time, strange behaviour I'm not going to try and understand why at this point!