error with box_similar_products.inc.php

LiteCart Fan
Từ France
Thành viên kể từ thg 1 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
Từ Sweden
Thành viên kể từ thg 5 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
Từ France
Thành viên kể từ thg 1 2015

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

Chủ đề này đã bị đóng do không hoạt động trong thời gian dài. Không thể đăng bài vào chủ đề này.
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.