In the file "catalog/product/product.php" i want to insert "$data['xxx'] = $product_info['xxx'];" for my code.
But when I have it like that I get "Undefined variable"
If I type "$xxx = $product_info['xxx'];" it works.
In the module for v2.x it worked great with "$data['xxx'] = $product_info['xxx'];" , but not in 3.x
Is it safe to use "$xxx = $product_info['xxx'];" ?
I want my code below this in product.php
Code: Select all
$data['model'] = $product_info['model'];
$data['reward'] = $product_info['reward'];
$data['points'] = $product_info['points'];