error with box_similar_products.inc.php

LiteCart Fan
Van France
Lid sinds 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 sinds 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 sinds jan. 2015

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

Dit topic is gesloten wegens langdurige inactiviteit. Erop posten is niet mogelijk.
Deze website maakt geen gebruik van cookies en geen trackingtechnologie van derden . Wij denken dat we het beter kunnen dan anderen en hechten veel waarde aan uw privacy.