Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import.php #725

Closed
cbserver opened this issue Jun 19, 2013 · 1 comment
Closed

import.php #725

cbserver opened this issue Jun 19, 2013 · 1 comment

Comments

@cbserver
Copy link

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 )
{

                $price *= 3.9;
            } 
            else 
            {
                $price *= 2.9;              
            }
        } else {
            $price *= 2.9;
        }
        $price *= 0.8;

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

@opencart
Copy link
Collaborator

this is not the place to post about problems your having. use the forum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant