Search found 40 matches

Search found 40 matches

pom

Re: Division by zero in currency.php on line 141

Ah thanks, that's most likely it.

Now to try and find a replacement.

Jump to post
  • Thu Jan 11, 2018 3:12 am
  • Replies 4
  • Views 26771

pom

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?

Jump to post
  • Tue Jan 09, 2018 4:08 am
  • Replies 4
  • Views 26771

pom

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 26771

pom

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.

Jump to post
  • Sat Nov 11, 2017 10:48 pm
  • Replies 9
  • Views 1017

pom

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 22
  • Views 10319

pom

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.

Jump to post
  • Sat Nov 11, 2017 8:44 am
  • Replies 22
  • Views 10319

pom

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.

Jump to post
  • Sat Nov 11, 2017 8:26 am
  • Replies 22
  • Views 10319

pom

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 22
  • Views 10319

pom

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.

Jump to post
  • Sat Nov 11, 2017 8:03 am
  • Replies 22
  • Views 10319

pom

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 %}
I changed the last line to {% endif %} which shows the screen but still no {{ product.stock }}

Jump to post
  • Sat Nov 11, 2017 8:02 am
  • Replies 22
  • Views 10319

pom

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.

Jump to post
  • Sat Nov 11, 2017 6:56 am
  • Replies 22
  • Views 10319

pom

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.

Jump to post
  • Sat Nov 11, 2017 6:39 am
  • Replies 22
  • Views 10319

pom

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 1490

pom

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.

Jump to post
  • Sat Nov 11, 2017 3:39 am
  • Replies 6
  • Views 5897

pom

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.

Jump to post
  • Sat Nov 11, 2017 1:40 am
  • Replies 22
  • Views 24480

pom

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 5897

pom

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.

Jump to post
  • Sat Nov 11, 2017 12:31 am
  • Replies 22
  • Views 10319

pom

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 5897

Search found 40 matches