error with box_similar_products.inc.php

LiteCart Fan
Van France
Lid sedert Jan. 2015

Hi TIM.
After updating yesterday with latest commit, I've emptied the cache. And in a product page, I've just seen an error I didn't notice before

Error reported on my shop on line 19
'keywords' => explode(',', $product->keywords),

Of course I've got keywords for each product, keywords separated by a coma. This line should work. I don't understand.
I replaced the line by 'keywords' => $product->keywords, so the error is no more visible. Question: are keywords useful here ?

tim
Founder
Van Sweden
Lid sedert Mei 2013
tim

I had not pushed the fix yet. But here it is, for box_similar_products.inc.php:

Find

      'keywords' => explode(',', $product->keywords),

Replace with

      'keywords' => $product->keywords,

Yes keywords can be useful, but are optional.

I appreciate the feedback.

LiteCart Fan
Van France
Lid sedert Jan. 2015

Hi TiM.
I've already got this fix. Thanx for your update !

Hierdie draad is gesluit weens lang onaktiwiteit. Om dit te plaas is nie moontlik nie.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.