Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Get Vendor Image

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 05-19-2015, 06:44 AM
 
Roman Prisiazhniuk Roman Prisiazhniuk is offline
 

Member
  
Join Date: Apr 2015
Posts: 17
 

Default 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
__________________
xcart 4.4.1, 5
Reply With Quote
  #2  
Old 05-20-2015, 05:51 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020