Re: Division by zero in currency.php on line 141
Looks like this extension fixes it... https://www.opencart.com/index.php?rout ... d=8&page=4
EDIT: Works perfectly.
- Thu Jan 11, 2018 3:19 am
- Replies 4
- Views 27682
Re: Division by zero in currency.php on line 141
Ah thanks, that's most likely it.
Now to try and find a replacement.
- Thu Jan 11, 2018 3:12 am
- Replies 4
- Views 27682
Re: Division by zero in currency.php on line 141
Well I just switched off Auto Update Currency and no longer get the error so that's answered the second part of my question.
Any idea how to fix the error?
- Tue Jan 09, 2018 4:08 am
- Replies 4
- Views 27682
Division by zero in currency.php on line 141 (SOLVED: yahoo currency update)
I'm getting this warning on the main dashboard page. It doesn't seem to be on any other pages as far as I can tell. Warning: Division by zero in /usr/share/nginx/html/admin/model/localisation/currency.php on line 141 It also seems Auto Update Currency hasn't been working since November, could the tw...
Jump to post- Tue Jan 09, 2018 4:04 am
- Replies 4
- Views 27682
Re: Deploying locally developed OC 3 site - Hosting advice
Does the server have php-mysql installed?
Also, have you moved the storage folders outside the main www directory and gave them the correct permissions?
Because DIR_STORAGE points to inside www.
- Sat Nov 11, 2017 10:48 pm
- Replies 9
- Views 1239
Re: How to show "Out Of Stock" on category pages if quantity <=0 in 3.0.2.0
Well it seems after opening my browser today it all works. I might've forgotten to clear browser cache sometimes. oops. I wasn't clearing modification cache and not sure if that made a difference, I only have a facebook meta tags modification in there. Anyway, all that was needed is catalog/controll...
Jump to post- Sat Nov 11, 2017 10:40 pm
- Replies 24
- Views 21317
Re: How to show "Out Of Stock" on category pages if quantity <=0 in 3.0.2.0
Odd, I don't get that at all.
Like I say I have modified some core files but I don't think I touched anything to do with stock control.
I'll compare a vanilla install with mine to make sure.
- Sat Nov 11, 2017 8:44 am
- Replies 24
- Views 21317
Re: How to show "Out Of Stock" on category pages if quantity <=0 in 3.0.2.0
Still the same with the default theme.
I have modified some core files so I'll try again on a fresh virtual machine over the weekend.
- Sat Nov 11, 2017 8:26 am
- Replies 24
- Views 21317
Re: How to show "Out Of Stock" on category pages if quantity <=0 in 3.0.2.0
Yeah "Availability: Out Of Stock" shows in the product page. It shows the correct amount when there is stock too.
Jump to post- Sat Nov 11, 2017 8:10 am
- Replies 24
- Views 21317
Re: How to show "Out Of Stock" on category pages if quantity <=0 in 3.0.2.0
Yeah the language edits are there.
I tried all your steps with my edits and on the default files without any success.
- Sat Nov 11, 2017 8:03 am
- Replies 24
- Views 21317
Re: How to show "Out Of Stock" on category pages if quantity <=0 in 3.0.2.0
This part in your code shows a blank screen...
Code: Select all
{% if product.stock %}
<p>{{ product.stock }}</p>
{% endif product.stock %}
- Sat Nov 11, 2017 8:02 am
- Replies 24
- Views 21317
Re: How to show "Out Of Stock" on category pages if quantity <=0 in 3.0.2.0
"Display Stock" is set to yes.
Jump to post- Sat Nov 11, 2017 7:52 am
- Replies 24
- Views 21317
Re: How to show "Out Of Stock" on category pages if quantity <=0 in 3.0.2.0
Yeah, it's between the for loop. The thumb and title show.
I put {{ product.stock }} under the title in a <p> without any if. Changing it to {{ product.name }} shows the title again.
It just doesn't seem to be retrieving values for quantity or stock.
- Sat Nov 11, 2017 6:56 am
- Replies 24
- Views 21317
Re: How to show "Out Of Stock" on category pages if quantity <=0 in 3.0.2.0
I can't find any clues in any logs.
I've rolled back category.php and category.twig to default.
Tried to declare $stock and called it with {{ product.stock }} without any if conditions but it doesn't return anything. Same with quantity.
- Sat Nov 11, 2017 6:39 am
- Replies 24
- Views 21317
Re: Order products from lowest to highest price
Open catalog/controller/product/category.php find line 18... change this... if (isset($this->request->get['sort'])) { $sort = $this->request->get['sort']; } else { $sort = 'p.sort_order'; } ...to this... if (isset($this->request->get['sort'])) { $sort = $this->request->get['sort']; } else { $sort = ...
Jump to post- Sat Nov 11, 2017 3:58 am
- Replies 4
- Views 1864
Re: how to change font type, color , size
Changing the bootstrap css would change the font for both languages.
I'm not sure how to change the font for just one language. It would need custom code somewhere.
- Sat Nov 11, 2017 3:39 am
- Replies 6
- Views 8585
Re: SMTP Mail Error
It seems to be a common problem and probably due to server configurations.
I posted last week about my same problem... viewtopic.php?f=202&t=199341
I still haven't figure it out but using gmail as a temporary solution works perfectly.
- Sat Nov 11, 2017 1:40 am
- Replies 22
- Views 32588
Re: how to change font type, color , size
Try clearing your browsers cache as well as the opencart cache if you haven't already. If you're just developing the site it's easiest to switch the cache off completely in the cog icon in top right of the dashbpard page. Also, if you use your browser's developer tools it will tell you exactly what ...
Jump to post- Sat Nov 11, 2017 1:35 am
- Replies 6
- Views 8585
Re: How to show "Out Of Stock" on category pages if quantity <=0 in 3.0.2.0
Couldn't get that to work. Blank screen, nothing in error logs.
I think it's something to do with the quantity variable. Echoing it doesn't seem to output anything.
I think I'm declaring it correctly in controller/product/category.php but unsure how exactly it's getting it's value.
- Sat Nov 11, 2017 12:31 am
- Replies 24
- Views 21317
Re: how to change font type, color , size
The product title on product pages is just an <h1> element. It's size and colour are set in catalog/view/theme/YOURTHEME/stylesheet/stylesheet.css The h1 font family seems to be set in bootstrap and set to inherit. catalog/view/javascript/bootstrap/css/bootstrap.min.css You could add a class to the ...
Jump to post- Fri Nov 10, 2017 7:44 am
- Replies 6
- Views 8585