No image in cart content popup

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Mar 11, 2014 4:53 pm
Reply with quote
Report this post
When I click in the top right corner on 'Cart' or 'My Cart', the content of the cart is showend in a popup. But there is no product image here, where it should be. When I open the cart itself, there are images. So the problem must be somewhere in this popup function.

Can someone please help me out with this? Please check on: http://www.waterpijp-bong.nl
User avatar
Expert Boarder

teitbite
Tue Mar 11, 2014 9:33 pm
Reply with quote
Report this post
Hi

Does products have child products ? I think this problem appear, becuase parent product has no image attached. Just add some images to parent product. If its not the case please send me an access to ftp.
User avatar
Moderator

GK User
Wed Mar 12, 2014 11:50 am
Reply with quote
Report this post
Hi, no, there are no child products.
I'll send you a PM with FTP details.
User avatar
Expert Boarder

teitbite
Wed Mar 12, 2014 9:52 pm
Reply with quote
Report this post
Hi

I'm not able to make a dump, because cache doesn't show my changes. Anyway from the code I can see that images are determined by SKU and I think Your products doesn't have an SKU applied. Please add it ti products and it should solve the problem.
User avatar
Moderator

GK User
Fri Mar 21, 2014 5:16 pm
Reply with quote
Report this post
Hi,

All product's have a SKU. This SKU is also displayed on the product detail page.
Do you have another suggestion?
User avatar
Expert Boarder

teitbite
Fri Mar 21, 2014 6:44 pm
Reply with quote
Report this post
Hi

Than it means problem is because of the changes in VM itself. I have removed the override for VM cart from template, to use a default cart layout. Need to ask programmers if this template will be updated to the last VM.

Meanwhile You can use the default cart view from VM or downgrade VM to the last supported version.
User avatar
Moderator

GK User
Fri Mar 21, 2014 7:51 pm
Reply with quote
Report this post
It is not a issue of the last version. It also happend in earlier version.
I remembered now I opened an other topic a few months ago. https://www.gavick.com/forums/bikestore ... 30327.html
User avatar
Expert Boarder

teitbite
Fri Mar 21, 2014 9:47 pm
Reply with quote
Report this post
Hi

Yes I know about that. I helped 3 times with the same issue already and as I've mentioned before one was a lack of SKU, other was that user used child products and there were no images attached to parent products. I asked about this 2 before, so the only one left is a wrong version for template or VM. So update template to the latest version. At least the virtuemart related folders in /html directory than downgrade VM to the last version it was working with.
User avatar
Moderator

GK User
Sat Mar 22, 2014 3:12 pm
Reply with quote
Report this post
Aha.

Products do have a SKU and don't use child products.

The template is updated to the latest version, just before opening this topic. I did this, because I was hoping this would solve the problem. But is still there. I also updated VM, but still no success.

I can't remember which version (of the template and of VM) it was working correctly. That would be a long time ago, it never has been working that long. Downgrading is not a option also actually.

Is there something else you can do? It must be a template related issue which is conflicting with something.
User avatar
Expert Boarder

teitbite
Sun Mar 23, 2014 7:12 pm
Reply with quote
Report this post
Hi

Yes it's template related, but not a bug, just the cart module override in template is not current with the newest Virtuemart version. I've already asked programmers when an update is planned. Will let You know as soon as I know the answer.
User avatar
Moderator

GK User
Sun Mar 23, 2014 10:26 pm
Reply with quote
Report this post
Ah, ok, thanks!
User avatar
Expert Boarder

teitbite
Tue Mar 25, 2014 9:12 pm
Reply with quote
Report this post
Hi

Looks we are alone with this :( Programmers just shown me a fully functional installation of Bikestore with latest VM version.

Please make a copy of Your site in subfolder, so I'll try to overwrite the files and make some other tests on it. Than when I'll find the cause I'll move it to orginal site.
User avatar
Moderator

teitbite
Tue Apr 01, 2014 7:46 pm
Reply with quote
Report this post
Hi

Finally had some time to look into it and I've found out that problem is that a path to thump of an image is no longer stored in database of VM. There is still a field for it, but it's empty in all cases. I have relaunched the code to use a normal image and it worked. Images are big and resized thanks to css, but that's the best option I can came up right now. Here is a file You need to replace in /html/mod_virtuemart_cart/
User avatar
Moderator

GK User
Wed Apr 02, 2014 11:36 am
Reply with quote
Report this post
Hi, I will try this. Thank you.

What was the reason why it did not work? I mean, the default template does work, only not on my website. The adjustment you made is within the template.
User avatar
Expert Boarder

teitbite
Wed Apr 02, 2014 9:32 pm
Reply with quote
Report this post
Hi

Hard to tell. All I know is that the information about the path to small image doesn't exists in database. Maybe be a VM issue while saving this information or a change in database construction between VM upgrades. My best guess would be that during VM update only files got updated and not database.
User avatar
Moderator

GK User
Tue Dec 30, 2014 1:41 am
Reply with quote
Report this post
Hi

The problem is in Gavick template not reflecting the API change that came with VirtueMart 2.0.21G.

Since VM 2.0.21G, thumbnail URLs are not stored in the database because the file name can be inferred from the big image file name (see here http://forum.virtuemart.net/index.php?t ... #msg390380).

I have attached a fixed default.php (it belongs to templates/gk_bikestore/html/mod_virtuemart_cart/).
The fixed version determines the thumnail file name from the big image file name.

The fix does not cover the case when user changes thumbnails resolution from 150x150 to some other value but I am sure Gavick can finish up this part.

Regards
Stepan
User avatar
Fresh Boarder

teitbite
Tue Dec 30, 2014 9:31 pm
Reply with quote
Report this post
Hi

Thank You for this report. I'll pass this to programmers.
User avatar
Moderator

GK User
Mon Jan 19, 2015 12:15 am
Reply with quote
Report this post
I am having the same problem, I have done all the steps above mentioned, I have an SKU, I don't have a child product and an image is displayed in all parent products and on the product itself (thumbnail) for the product I am selecting specifically (all other products on site don't have an image at this moment in time as I am having an issue with importing thumbnail and image through CSVI as we speak but I manually uploaded an image to this product).

When clicking my cart, the popout shows an X where the image of the product should be but when viewing cart the thumbnail is displayed.. What could the problem be?

Regards, Jay
User avatar
Senior Boarder

GK User
Mon Jan 19, 2015 12:44 pm
Reply with quote
Report this post
Bump?
User avatar
Senior Boarder

teitbite
Wed Jan 21, 2015 5:37 pm
Reply with quote
Report this post
Hi

Please show me Your site.
User avatar
Moderator

GK User
Wed Jan 21, 2015 7:01 pm
Reply with quote
Report this post
User avatar
Senior Boarder

teitbite
Thu Jan 22, 2015 7:02 pm
Reply with quote
Report this post
Hi

I think I know what is wrong, but I will need an access to ftp and database to write a new code picking up the image which was moved between VM versions to other location.
User avatar
Moderator

GK User
Fri Jan 23, 2015 2:50 am
Reply with quote
Report this post
I had sent the FTP login for the facebook issue, you can still access using this.

Much appreciated, Jay.
User avatar
Senior Boarder

teitbite
Fri Jan 23, 2015 9:24 pm
Reply with quote
Report this post
Hi

I could not help with this issue because of lack of an access to database I asked for, but I think problem can be much easier to fix. As I see in code images are being attached to product by SKU. Can You please try to add SKU numbers to couple of products to see if this makes a difference ?
User avatar
Moderator

GK User
Sun Jan 25, 2015 12:46 am
Reply with quote
Report this post
I see, the database is on the desktop I am sorry.. If I move it into my ROOT folder it will not cause an issue? This way you can view it through the FTP..

All products have SKU, example, nute1,nute2,nute3..

I have PM'd you a log in detail for you to check as once this is fixed, my support on BikeStore is complete :)
User avatar
Senior Boarder

teitbite
Mon Jan 26, 2015 7:49 pm
Reply with quote
Report this post
Hi

Fixed. I have replaced line 53 in /html/mod_virtuemart_cart/default.php

Code: Select all
               $thumbFile = $pi['dirname'] . '/resized/' . $pi['filename'] . '_150x150.' . $pi['extension'];


to

Code: Select all
               $thumbFile = $pi['dirname'] . '/resized/' . $pi['filename'] . '.' . $pi['extension'];
User avatar
Moderator

GK User
Mon Jan 26, 2015 11:54 pm
Reply with quote
Report this post
I see, I will remember this for future.. Thankyou yet again!
User avatar
Senior Boarder

teitbite
Tue Jan 27, 2015 1:31 pm
Reply with quote
Report this post
Hi

No problem. Glad I could help.
User avatar
Moderator


cron