Image thumbnail on My Cart pop up not showing

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
Fri May 24, 2013 2:09 pm
Reply with quote
Report this post
Hello to all,

Template: bikestore
joomla version: 2.5.9
virtuemart version: 2.0.20b
Temporary url of the eshop: http://emmanuelaswimwear.insyst.info/index.php/eshop

If you add a product in the cart and select "My cart" pop up you should see a small thumbnail of the product. In my case this is not happening.
Let me state that all products have sku's and that I am using child products having various sizes (VM custom field with stock control).
User avatar
Fresh Boarder

teitbite
Sun May 26, 2013 7:12 am
Reply with quote
Report this post
Hi

I would need an access for some dummy user to see the cart. Please send it to me. But before that please update template and joomla to the latest version.
User avatar
Moderator

GK User
Sun May 26, 2013 11:33 am
Reply with quote
Report this post
Hello...
Both joomla and the template are at the latest version.
You can add a product to the cart and see the cart from the top menu popup without the need to login with an account, but if you need one you can use (username:test pass:test)
User avatar
Fresh Boarder

teitbite
Mon May 27, 2013 9:10 am
Reply with quote
Report this post
Hi

I thought it was an old template version, because a similar issue was fixed some time ago. So if it's not than I need to ask for ftp access to check the cart module code.
User avatar
Moderator

GK User
Mon May 27, 2013 10:41 am
Reply with quote
Report this post
Hello,

I have sent you a PM with ftp access details.
User avatar
Fresh Boarder

teitbite
Mon May 27, 2013 11:33 am
Reply with quote
Report this post
Hi

Which VM version are You using ? Looks like problem is becuase no informations about images are being picked up from database. Send me also an access to some mysql manager, so I'll check queries.
User avatar
Moderator

GK User
Mon May 27, 2013 1:28 pm
Reply with quote
Report this post
Based on the post of teitbite I have done some digging in the database and found the cause of the problem.
I am using products with custom fields (VM custom field with stock control plugin).
This way every product has some children with unique SKU's
When a child is added to the cart,its SKU is taken into account for the sql query to find the picture.
The problem is that in table "virtuemart_medias" only the pictures of the parent products are created.
So when it runs it does not find anything.

For administration issues, the possibility of having the same SKU for parent and child is not an option.

Since this is the case, the script of module cart has to be modified to check if there is a parent product and get the sku for the parent.

Now that things are clearer I hope someone can fix this bug.
User avatar
Fresh Boarder

teitbite
Tue May 28, 2013 9:27 am
Reply with quote
Report this post
Hi

Ok. I'm going to report this to programmers.
User avatar
Moderator

GK User
Tue May 28, 2013 2:54 pm
Reply with quote
Report this post
Thanks...
Waiting for their reply.

BR
User avatar
Fresh Boarder

teitbite
Tue May 28, 2013 8:43 pm
Reply with quote
Report this post
Hi

I've just got an answer:

this problem is becasue client has no SKU > defined for products. And first query in module based on this parameter so each time it is same value becasue
field is empty. I test it for two products in Hanging Toys category. So if client add SKU for prduct will have diffrent > images.


I have not noticed that, can You please check and add this SKU ?
User avatar
Moderator

GK User
Wed May 29, 2013 2:26 pm
Reply with quote
Report this post
As I have stated in my first post ALL products (parents & children) have SKUs.

The problem is:
I am using products with custom fields (VM custom field with stock control plugin).
This way every product has some children with unique SKU's (DIFFERENT FROM THE PARENT)
When a child is added to the cart,its SKU is taken into account for the sql query to find the picture.
The problem is that in table "virtuemart_medias" only the pictures of the parent products are created.
So when it runs it does not find anything.

To further clarify the issue: If I change a child's SKU to be the same as it's parents, then the picture shows up correctly.

Since this is the default virtuemart behaviour I propose for the sql to find the parents picture if there is one.
User avatar
Fresh Boarder

teitbite
Thu May 30, 2013 5:16 pm
Reply with quote
Report this post
Hi

Ok. I pass this to programmers than.
User avatar
Moderator

teitbite
Sat Jun 01, 2013 4:35 pm
Reply with quote
Report this post
Hi

Please extract this file and replace with /templates/gk_bikestore/html/mod_virtuemart_cart/default.php
User avatar
Moderator

teitbite
Sun Jun 02, 2013 9:01 pm
Reply with quote
Report this post
Hi

Have You had a chance to check this file ? Programmers are having a different solution if this one will not work.
User avatar
Moderator

GK User
Thu Oct 10, 2013 10:33 pm
Reply with quote
Report this post
hi i have the exact same problem i already overwrite the file but it didnt solve problem
User avatar
Fresh Boarder

teitbite
Sat Oct 12, 2013 12:53 am
Reply with quote
Report this post
Hi

@zantopoulos, please show me Your site.
User avatar
Moderator

GK User
Sat Oct 12, 2013 6:36 pm
Reply with quote
Report this post
teitbite wrote:Hi

@zantopoulos, please show me Your site.


i send u pm with details
thx
User avatar
Fresh Boarder

teitbite
Mon Oct 14, 2013 12:13 am
Reply with quote
Report this post
Hi

@zantopoulos Your problem is a little different. Please send me an access to ftp, I've posted a solution for this on the forum already, but cannot find it, so I'll make it for You again.
User avatar
Moderator

GK User
Tue Oct 15, 2013 8:07 pm
Reply with quote
Report this post
teitbite wrote:Hi

@zantopoulos Your problem is a little different. Please send me an access to ftp, I've posted a solution for this on the forum already, but cannot find it, so I'll make it for You again.


pmed
User avatar
Fresh Boarder

teitbite
Wed Oct 16, 2013 1:13 pm
Reply with quote
Report this post
Hi

Fixed. I've used a solution I've published already in this post https://www.gavick.com/forums/esport/es ... mb#p143090
User avatar
Moderator

GK User
Wed Oct 16, 2013 4:01 pm
Reply with quote
Report this post
this solution is for another template my code is a bit different

Code: Select all
$query2->select('`m`.`file_url` AS `file`, `p`.`product_sku` AS `sku`');


i tried but couldnt make it work
pls give me the exact code
thx
User avatar
Fresh Boarder

teitbite
Thu Oct 17, 2013 5:48 pm
Reply with quote
Report this post
Hi

But I've already implemented this fix and was able to see this images in cart after this, so You do not need to make anything. Are You still having problems with this images. Please tell me exactly which product.
User avatar
Moderator

GK User
Thu Oct 17, 2013 6:39 pm
Reply with quote
Report this post
sorry i didnt understand that u already fixed it
thx a lot :)
teitbite wrote:Hi

But I've already implemented this fix and was able to see this images in cart after this, so You do not need to make anything. Are You still having problems with this images. Please tell me exactly which product.
User avatar
Fresh Boarder

teitbite
Sat Oct 19, 2013 4:58 pm
Reply with quote
Report this post
Hi

No problem. Glad I could help.
User avatar
Moderator


cron