Post by Blueforce » Sun Feb 15, 2009 8:20 pm

Hi Daniel,
I have a question.
On a quick look at catalog/model/catalog/product.php I see the following statements:
AND pd.language_id = '" . (int)$this->language->getId() . "' AND ss.language_id = '" . (int)$this->language->getId() . "'Why is there 2 language statements? And it looks like the "ss.xxx" is conected to the product stock and has nothing to do with the language selection??!!
The second AND statement, "' AND ss.language_id = '" . (int)$this->language->getId() . should it really be there?? because if I remove it - products show up in all languages just fine!

Sorry for my "shallow" question, I haven't had time to look deeper on the code.

/Leffe

New member

Posts

Joined
Thu Feb 12, 2009 7:11 am
Location - Sweden

Post by Daniel » Sun Feb 15, 2009 8:56 pm

The new version has a stock status table. This table allows you to set the stock status if a product runs out of stock.

Instead of just having "out of stock" you can have "5 - 10 days" or "ordered on request" etc..

When adding a new language you need to update this table before new products are show.

After I finish writing the 20+ payment gateways I'm going to write a user guide explaining all this stuff.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Blueforce » Sun Feb 15, 2009 9:19 pm

Hi

Oh... sorry!!!

I forgott to add "out of stock" statuses for the other language!!

Please Disregard this post!! Everything is just fine!

Sorry!

/Leffe

New member

Posts

Joined
Thu Feb 12, 2009 7:11 am
Location - Sweden
Who is online

Users browsing this forum: No registered users and 25 guests