You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I`m having an issue with import.php on my opencart site.
Automatic daily product import has been set up and worked properly (set up by my webmaster who is on holiday at the moment but the problem is urgent unfortunately).
I wanted to change pricing for certain product categories just by modifying the multiplier within the script of import.php (this has worked before with no problem)
Here is the script:
{
$price = $prod->GetPrice();
$price *= 1.2;
if ( strtolower($prod->GetType()) == "sunglasses" )
{
if ( $price <= 40 )
{
I have only changed the 3.9, 2.9 and 2.9 multipliers and left everything as it was before. However after I`ve changed them and tried to update import manually I keep getting the following error message and the products have disappeared from my site so the import cant be done:
"Using remote file...
Fatal error: Call to undefined method Product::GetPrice() in /home/cbserver/public_html/import/index.php on line 736 "
Line 736 is the second line in the above copied script, so: $price = $prod->GetPrice();
Does anyone has any idea what could be wrong or what have I done wrong? As I said everything has worked before I modified these multipliers this morning.
I look forward to hear some ideas.
Thanks a lot.
cbserver
The text was updated successfully, but these errors were encountered:
Hi Guys
I`m having an issue with import.php on my opencart site.
Automatic daily product import has been set up and worked properly (set up by my webmaster who is on holiday at the moment but the problem is urgent unfortunately).
I wanted to change pricing for certain product categories just by modifying the multiplier within the script of import.php (this has worked before with no problem)
Here is the script:
{
$price = $prod->GetPrice();
$price *= 1.2;
if ( strtolower($prod->GetType()) == "sunglasses" )
{
if ( $price <= 40 )
{
I have only changed the 3.9, 2.9 and 2.9 multipliers and left everything as it was before. However after I`ve changed them and tried to update import manually I keep getting the following error message and the products have disappeared from my site so the import cant be done:
"Using remote file...
Fatal error: Call to undefined method Product::GetPrice() in /home/cbserver/public_html/import/index.php on line 736 "
Line 736 is the second line in the above copied script, so: $price = $prod->GetPrice();
Does anyone has any idea what could be wrong or what have I done wrong? As I said everything has worked before I modified these multipliers this morning.
I look forward to hear some ideas.
Thanks a lot.
cbserver
The text was updated successfully, but these errors were encountered: