Popup cart window doesn't update price affected by Ctm Fld.

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
Wed Jun 26, 2013 11:42 pm
Reply with quote
Report this post
Hi,

Got another issue...

I have a several products in virtuemart that uses custom fields that affects the product price. One of these products has not price, the price is given based in the customer selection in the custom fields.

If an user adds this product to the cart and continues shopping, and then he chooses the cart icon in the webpage (not the checkout page) that shows a summary of the cart, the price of the product is zero, even though, the custom field gives to the product a price.
Then, if the user goes to the checkout page, the price is listed there fine, and if he chooses again the cart icon in the webpage to see the cart summary, it now shows the price correctly.

Seems like the AJAX function that updates the price in the cart pop up window is not called right or not called at all. But this function is called correctly when the user goes to the checkout page.

How to reproduce?
1. Go to this product: https://www.pupyid.com/personalizar/identificate/personalizar-con-pupyid#.UcjjSvnVD08

2. Fill the form with some input, save the form and add the product to the cart. For the popup windows you must choose: "Continuar comprando" (Continue shopping). Then, hit in the cart icon image that is on the top left hand. You will see that price is zero, but it shouldn't be zero, it must have the price updated by the price given by the custom field.

3. Now, go to "Mi carrito" from the top menu, it shows the cart in a detailed way (checkout page), now hit again the cart icon image, you will see that it has taken the right price(AJAX function refreshed the price).

Do you have any idea how to fix this? I am not familiar with AJAX, so I couldn't do it by myself.

PS. I talk to the people who sold me the plugin called "Breezing Form Custom Fields for VirtueMart" first, this is their answer: "It sounds like the cart's AJAX function (yes, I do see where it is calling an AJAX function and it's return) is probably not calling all the functions in VirtueMart to get the Custom Fields price updates. You may want to contact them about that. They may have an update for you. Since it works on the cart page, our code is being called at the appropriate time by VirtueMart so this pricing issue is outside our extension's control."

PS. You will need access to the website to check this, so, I will sent the credentials to the person who is going to help me with this.

Appreciate your help,

Mauricio
User avatar
Junior Boarder

GK User
Sat Jun 29, 2013 8:36 am
Reply with quote
Report this post
First of all - please check if this happens also on default Joomla template. If it happens there also, then You should ask on virtuemart forum - as there are people who knows it in deep.
If not, please write back.
User avatar
Moderator

GK User
Tue Jul 02, 2013 2:09 am
Reply with quote
Report this post
Hi Cyberek,

Your suggestion do not work because none of the default Joomla templates support Virtuemart. Even though, I gave it a try it but it does not load the site correctly.

I am sending you the credentials to check my site. I would suggest that one of the programmers of your team take a look at this issue.

Thank you
User avatar
Junior Boarder

teitbite
Wed Jul 03, 2013 1:06 pm
Reply with quote
Report this post
Hi

What Cyberek adviced is just for a test, not a solution. I've looged to Your site and changed to a default template to see if this is working when a default VM files are used. And looks like it's not. But I cannot understand most of the text so I cannot be sure. Can we meet on Skype, so You will help me with translations and hopefully get to the bottom of the problem ? My skype login is "teitbite"
User avatar
Moderator

teitbite
Wed Jul 03, 2013 4:41 pm
Reply with quote
Report this post
Hi

After Skype discussion and disabling template entirely the problems remains, so it's a plugin issue. Sorry I could not help more.
User avatar
Moderator


cron