Post by MSDCode » Fri Jan 15, 2021 3:16 am

My featured products sidebars are showing the products out of stock, when they are in stock.

I had this issue also with my main products but was able to fix it, last issue I have not been able to find a solution.

Site:
http://phpstack-524998-1671014.cloudwaysapps.com/
Opencart Version 3.0.3.6
Limo Theme
https://themeforest.net/item/limo-multi ... e/23246542

(Additional) Installed Extension(s)
Swiper
---
PS. DEV Info: Megnor Themes are partly also offered in the OC Extension Section, it's
therefore not just simply an 'Outside OC' matter, that's, why I placed the topic here. Ernie
https://www.opencart.com/index.php?rout ... n_id=28024

Newbie

Posts

Joined
Fri Jan 15, 2021 3:07 am

Post by by mona » Fri Jan 15, 2021 3:36 am

Contact the theme developer - Opencart default does not have out of stock functionality on featured products.

PS - so in this case it is !

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by MSDCode » Fri Jan 15, 2021 4:30 am

Any idea on how I could figure it out, or point me in the right direction of were its controlled?"

Other then contacting the theme developer. I know this theme is not compatible with the new version, but I have managed to fix everything other then this last bit.

Newbie

Posts

Joined
Fri Jan 15, 2021 3:07 am

Post by straightlight » Fri Jan 15, 2021 4:45 am

MSDCode wrote:
Fri Jan 15, 2021 4:30 am
Any idea on how I could figure it out, or point me in the right direction of were its controlled?"
Other then contacting the theme developer. I know this theme is not compatible with the new version, but I have managed to fix everything other then this last bit.
You could always contact an Opencart partner to contact me directly via PM to get this fixed as a custom job.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by MSDCode » Fri Jan 15, 2021 9:24 pm

Ive partially figured out the issue, or atleast a temporary work around.

I was able to find the files controling it.

Looks like it has to do with this string.
<div class="{% if product.qty > 0 %}image{% else %}image outstock{% endif %}">

Its not reading the quanity, if i remove the else, it works. but would love to know if maybe this syntax changed on the new opencart version?

Newbie

Posts

Joined
Fri Jan 15, 2021 3:07 am

Post by straightlight » Fri Jan 15, 2021 9:30 pm

That line is nowhere to be seen in the core. As mentioned on the above, simply contact the extension developer to resolve this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by MSDCode » Fri Jan 15, 2021 9:33 pm

Yes its not, I found this in an extension for the limo theme here /template/extension/module/featured.twig and /template/extension/module/latest.twig

Some reason it can't detect the stock, if anyone has any resource's on how I could fix this properly, It would be much appreciated, if not this will do for now :)

Newbie

Posts

Joined
Fri Jan 15, 2021 3:07 am

Post by straightlight » Fri Jan 15, 2021 9:40 pm

MSDCode wrote:
Fri Jan 15, 2021 9:33 pm
Yes its not, I found this in an extension for the limo theme here /template/extension/module/featured.twig and /template/extension/module/latest.twig

Some reason it can't detect the stock, if anyone has any resource's on how I could fix this properly, It would be much appreciated, if not this will do for now :)
Contact the developer or create a new Service Request. The issue you are reporting is not supported on the forum.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 5 guests