X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Get Vendor Image (https://forum.x-cart.com/showthread.php?t=72127)

Roman Prisiazhniuk 05-19-2015 06:44 AM

Get Vendor Image
 
How can I get vendor image?
When I try this code
Code:

list(, , $url) = $vendor->getVendorImage()->getResizedURL(220,350);
I get this error [19-May-2015 15:41:39 UTC] PHP Fatal error: Call to a member function getResizedURL() on a non-object in /var/www/html/dev10/mymotoshield/var/run/classes/XLite/Module/XC/CustomSkin/View/Page/Customer/Insurance.php on line 54

tony_sologubov 05-20-2015 05:51 AM

Re: Get Vendor Image
 
This code should work fine.

For some reason the following code:
PHP Code:

$vendor->getVendorImage() 


does not return an image object. You should debug why it is so and it will fix the error message you received.


All times are GMT -8. The time now is 06:10 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.