Author Topic: Price Flickering using stockable plugin  (Read 4608 times)

rainman2000

  • Jr. Member
  • **
  • Posts: 93
Price Flickering using stockable plugin
« on: August 07, 2013, 18:27:49 pm »
Hi All,

Our development site which current has Joomla 2.5.14 and Virtuemart 2.0.22a installed used stockable plugin cart variants. We usually have 3 options the customer can select which are type, length color. We have limited this so that there may be up to 140 variants to choose from because it becomes painfully slow when trying to edit products with so many variants being created. Our Virtuemart 1.1 solution had a core hack that could actually handle thousands of stockable attributes but there are so many reasons for us to upgrade.

Although we're working around the limitation of the stockable plugin we are experiencing some flicker when users change options on the product details page. It eventually changes to the correct price but it can flicker for 5 seconds. Our developer has inform us that this is due to the stockable plugin that refresh the price based on selected values. He says since there are multiple dependencies, it refreshes many times. This is actually a deal breaker for us. Is there a solution for this. I hate to do it, but at this point we would even be willing to implement a core hack until this can be resolved in a future version. Please advise.

Thanks,
Rainman

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3629
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Price Flickering using stockable plugin
« Reply #1 on: August 08, 2013, 13:41:37 pm »
Hello

If You check reply #250 in this thread You will probably find a solution to the flickering prices. I have not had time to check this myself, but i will certainly do that.

http://forum.virtuemart.net/index.php?topic=103067.240

regards

Jörgen @ Kreativ Fotografi

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

rainman2000

  • Jr. Member
  • **
  • Posts: 93
Re: Price Flickering using stockable plugin
« Reply #2 on: August 10, 2013, 22:30:25 pm »
Thanks for the tip Jorgen. Unfortunately it didn't correct the flickering problem.  :'(

Do you or anyone else have any suggestions?

Thx!


Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2661
Re: Price Flickering using stockable plugin
« Reply #3 on: August 11, 2013, 11:12:53 am »
It eventually changes to the correct price but it can flicker for 5 seconds.
Could you be more specific? What is your issue: flickering or 5 seconds?

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3629
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Price Flickering using stockable plugin
« Reply #4 on: August 12, 2013, 08:00:30 am »
Hello Maxim

I can confirm this behaviour.

The flickering is simply a change through the different prices of the children.

Example

We have the following

Parent T-shirt SEK40
   Child 1 Medium size, Black,  SEK50
   Child 2 Medium size, White, SEK60
   Child 3 Large size, Red, SEK70
   Child 4 Large size, Blue, SEK80
   Child 5 Large size, White, SEK60
   Child 6 Large size, Black, SEK50

If I choose the between the different t-shirts i eventually get flickering between prices.

When i go from Black Large T-shirt, to Blue large T-shirt it goes through these prices during approx 3-5 seconds.

SEK50
SEK80
SEK50
SEK80

This could sometimes repeat more times than what i just gave an example of.
 I am not 100% sure if any of the other prices were involved in the flickering, will check that once more.

I have tried the updated stockable.php from #250 on VM 2.0.22 with no improvement.
I have tried the updated stockable.php from #250 on VM 2.0.22a with improvement, but I will haven´t tried VM 2.022a with the old stockable.php. Will be back on that.

This is very simple to test. I have only created one custom field with stockable plugin using two of the available four options, calling them Size (Medium, Large) and Color (Black,White,Blue,Red). Then I created one parent with six children.

I am testing this on a local xampp installation and with Eugens VM template and theme. The behaviour seems to exists even without Eugens theme and template.

Best regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2661
Re: Price Flickering using stockable plugin
« Reply #5 on: August 12, 2013, 14:07:24 pm »
Pardon me, but isn't flickering intended behavior?

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3629
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Price Flickering using stockable plugin
« Reply #6 on: August 12, 2013, 14:24:25 pm »
Hello Maxim

If this flickering is intended behaviour then we have a serious problem with VM2. I can´t say that I have seen this behaviour on any other commercial sites.

Why on earth would the display go through a number of versions for the price and then suddenly decide to stop on one of the prices. The switching between these alternatives is very confusing to a shopper. It looks broken, as if the price is changing randomly. Since I know what the correct price is I know when it has stopped on the right price. How can a shopper tell when it is ready ? This takes what seems forever and doesn´t happen every time You choose a new child product. 

The intended behaviour when switching from child 4 to child 6.

Select child 4
Showing the Price for child 4: SEK50
Select child 6
Showing the Price for child 6: SEK80

I don´t want to see the price for child 4 displayed, overwritten by the price for child 6, overwritten byte the price for child 4 and so on, during several seconds.

On selection and then one change of price, surely this must be the intended behaviour.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10111
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Price Flickering using stockable plugin
« Reply #7 on: August 12, 2013, 16:35:28 pm »
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

rainman2000

  • Jr. Member
  • **
  • Posts: 93
Re: Price Flickering using stockable plugin
« Reply #8 on: August 12, 2013, 17:12:50 pm »
Hi Milbo,

I just downloaded the version of stockable.php from the svn and it did not correct the problem. I'll leave that version on for the time being and post a temporary link to our development environment if anyone cares to take a look at what is happening. Simply keep changing length and about after 5 times of changing from one length to another length it will begin flickering.

http://xxxxxxxxxxxxxxxxx.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=197&virtuemart_category_id=21

Regards,
Rainman

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3629
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Price Flickering using stockable plugin
« Reply #9 on: August 13, 2013, 09:47:26 am »
Hello Rainman

Nice shop :)

I have tried Your link with Firefox 22 and could see the flickering. But today I have not been able to see this. But I saw the following. I You go from Full Lace to Lace Front it remembers the length setting from Full Lace (24") but shows the price for 12" and also takes this to the cart if You press the Add to cart button.

You get some very strange product description in the cart. The first item has 24" only description, but the second item has both 24" and 12" description.

Regards

Jörgen @ Kreativ Fotografi

[attachment cleanup by admin]
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

rainman2000

  • Jr. Member
  • **
  • Posts: 93
Re: Price Flickering using stockable plugin
« Reply #10 on: August 14, 2013, 03:12:25 am »
Hi Jorgen,

Thanks. We simply need to work the bugs out by Sept. 1st re-launch and then perhaps I can stop working 20 hour days. I am not seeing the flickering anymore either and have no idea what I did to stop it. My developer was working on the the custom variants last night which explains the problems you were noticing. However, he said he did nothing that would prevent the flickering. If you want me to look at something on the server or share a file that may be helpful in resolving the problem just let me know.

Regards,
Rainman

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3629
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Price Flickering using stockable plugin
« Reply #11 on: August 14, 2013, 08:20:28 am »
Hi Rainman

Thanks for the reply, but the behaviour I saw is still there. You can get contradicting data and also saving this into the cart. Try this:
The custom fields don´t seem to update as they should. Tested with IE8 and FireFox 22.

Just wanted You to know, this needs an overhaul  :o

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

rainman2000

  • Jr. Member
  • **
  • Posts: 93
Re: Price Flickering using stockable plugin
« Reply #12 on: August 14, 2013, 15:10:01 pm »
Thanks Jorgen,

I was using Chrome and it works fine. But I just tested in Firefox and I see it's still broken.

Regards,
Rainman