error with box_similar_products.inc.php

LiteCart Fan
Fra France
Member since 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
Fra Sweden
Member since maj 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
Fra France
Member since jan. 2015

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

This thread has been closed due to long inactivity. Posting to it is not possible.
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.