In HS > Products > Products, when I choose to export all items (Root/Product category and All sub-elements), the CSV file that comes out now has error notices in it which it did not before. I suspect this may have something to do with import problems I'm having.
(I will create a separate thread re my import problems just to keep things clear.)
The errors come out in the product_id column of the file and are as follows:
<br />
<b>Notice</b>: Undefined index: 0 in <b>/home/sites/urdapilleta.eu/public_html/administrator/components/com_hikashop/views/product/tmpl/export.php</b> on line <b>74</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/home/sites/urdapilleta.eu/public_html/administrator/components/com_hikashop/views/product/tmpl/export.php</b> on line <b>74</b><br />
<br />
<b>Notice</b>: Undefined index: 0 in <b>/home/sites/urdapilleta.eu/public_html/administrator/components/com_hikashop/views/product/tmpl/export.php</b> on line <b>74</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/home/sites/urdapilleta.eu/public_html/administrator/components/com_hikashop/views/product/tmpl/export.php</b> on line <b>74</b><br />
<br />
<b>Notice</b>: Undefined index: 0 in <b>/home/sites/urdapilleta.eu/public_html/administrator/components/com_hikashop/views/product/tmpl/export.php</b> on line <b>74</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/home/sites/urdapilleta.eu/public_html/administrator/components/com_hikashop/views/product/tmpl/export.php</b> on line <b>74</b><br />
<br />
<b>Notice</b>: Undefined index: 0 in <b>/home/sites/urdapilleta.eu/public_html/administrator/components/com_hikashop/views/product/tmpl/export.php</b> on line <b>74</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/home/sites/urdapilleta.eu/public_html/administrator/components/com_hikashop/views/product/tmpl/export.php</b> on line <b>74</b><br />
Since they all have to do with the same line of code in the export.php file I thought I would investigate even though I don't know PHP. Here are lines 71-74, so the one of interest is the last one:
if(!empty($this->products)){
foreach($this->products as $k => $product){
if($product->product_type=="variant"){
$this->products[$k]->product_parent_id = str_replace('"','""',$this->products[$product->product_parent_id]->product_code);
I suppose I should fix this but don't know how... suggestions?
I imagine this may have something to do with import problems I am having now. I took an exported CSV file, modified some values like prices, etc. and am now trying to upload it again and it is not having the desired effect. More details in the other thread I will create shortly.
Thanks for any suggestions re this.