benknackan Posted January 17, 2013 Share Posted January 17, 2013 Hello, I use a module that generate various files with information for sending them to pricecomparison sites. The problem is it generates the img url wrong. It generates for example to this url: http://www.blingskal.com/10/samsung-galaxy-s2-i9100-skal-metal-bling-skarmskydd.jpg Which needs to be: http://www.blingskal.com/6-10/samsung-galaxy-s2-i9100-skal-metal-bling-skarmskydd.jpg So it generates only the picture id but no product id. Code is as follows: $link->getImageLink($product['link_rewrite'], (int)$product['id_image']); Now what do I need to add/modify for it to generate correct img urls? Thxs! Link to comment Share on other sites More sharing options...
tomerg3 Posted January 18, 2013 Share Posted January 18, 2013 Since you didn't provide any useful information about your setup / PS version, I'll give you the best advise I can. Do a search in other files / modules and see how they do it there. Link to comment Share on other sites More sharing options...
benknackan Posted January 18, 2013 Author Share Posted January 18, 2013 (edited) Yeah I missed that ofc :/ I'm on 1.4.9 And I use this module: Friendly URLs without ID Number v0.1 av HA!*!*Y which i believe is the reason for the above module giving wrong img url. Can't really think of any other module that rely on a syntax for generating adress to img adress for each product though... Edited January 18, 2013 by benknackan (see edit history) Link to comment Share on other sites More sharing options...
tomerg3 Posted January 18, 2013 Share Posted January 18, 2013 Did you try to do a search in all the files under the modules folder for "getImageLink"?? Link to comment Share on other sites More sharing options...
benknackan Posted January 18, 2013 Author Share Posted January 18, 2013 Tried it now and it says nothing is found... Link to comment Share on other sites More sharing options...
tomerg3 Posted January 18, 2013 Share Posted January 18, 2013 Find a better search tool.... 31 matches for getImageLink http://screencast.com/t/XEpKUStf Link to comment Share on other sites More sharing options...
benknackan Posted January 18, 2013 Author Share Posted January 18, 2013 Thx got some idea of what to do but still can't figure it out :/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now