Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: products being added twice in list view

products being added twice in list view 6 years 5 months ago #8162

Hi,

We just noticed a problem this morning, where when you add a single product via list view, the product seems to be added twice?
Upon clicking add to cart in list view, the screen flashes a couple of times and then shows the modal pop up to carry on to the cart or continue shopping.

When you goto the cart, its shows to of the product.
I added a screengrab video of me testing this a few minutes ago & just wanted to know is this an issue you may have seen before and any ideas on how to get rid of it?

I also tried with default Beez template and reinstalled a clean copy of puremart3.8

TIA,
Andy

J2.5.17 - Puremart 3.8 - VM2.0.22c - PHP5.3.27
Last Edit: 6 years 4 months ago by Andy Connell.
The administrator has disabled public write access.

products being added twice in list view 6 years 5 months ago #8192

Woww, interesting. those flashes are the clue. Each time it flashes, facebox() triggered again, which is the result of adding the product again.

I have never seen this problem before (and nobody has reported before as well)

Do you have any 3rd party plugin to create those stackable custom fields? You are using default the Stockable custom field that comes with the Virtuemart, right?

Are you also using the latest version of Virtuemart AIO component? Which will update the Stockable Custom field to latest version.

We were aware that, "Generic Child Variant" custom field creates problem in the category browse page, therefore no add to cart button is visible in the ListView if the "generic child variant" is used. There is no other way around. It just doesn't work. But i thought (since now) add to cart in ListView just works if the Stockable Custom Field is used. But apparently not.

Try these scenarios:

1- Create a imaginary category. Put only one product in it. (make sure, that product has a Stockable Custom Field, because 99% sure; stackable custom field is the reason of this problem) Then try to add the product to cart, let me know about the result.

Also try this:

2- Open "Flexible VM2 Template" plugin and disable this option:

Attachment Pasted_Image_1_24_14__2_15_AM-3.png not found



Then run the test and let me know about result.

Regards,
Support
The administrator has disabled public write access.

products being added twice in list view 6 years 5 months ago #8257

Do you have any 3rd party plugin to create those stackable custom fields? You are using default the Stockable custom field that comes with the Virtuemart, right?
Yep just using custom stockable variants plugin.
Currently using 2.0.22c & equivalent AIO component in my live site, but I also tried with the latest 2.0.26d versions in a test site too.

1- Create a imaginary category. Put only one product in it.
OK, I set up a new category with just one product which had stockable variants. When going to list view and adding to cart.
No multiple flashes & only one product added to cart

2- Open "Flexible VM2 Template" plugin and disable "Custom field sin list view"
I did this and tested with the new test category first and this was OK (apart from I now can select variants)
Then I tested in a normal category with lots of products.
When adding a product (single or stockable variant), no more flashing and that product get added to the cart correctly with correct quantity.

These extra tests where done in my test site using VM 2.0.26d

Any ideas what may be wrong & what I can do to sort it out because ideally we would like to be able to display the variants in list view

Thanks
Andy
Last Edit: 6 years 5 months ago by Andy Connell.
The administrator has disabled public write access.

products being added twice in list view 6 years 5 months ago #8276

Hi,

Normally the Add to cart button and the custom fields are hidden in the category browse page.
This is something we brought to Virtuemart. But since we are developing template and templates are working based on "template override". There is no way to touch the way the event handler works, because those are handled by Virtuemart core files. Templates basically change the "look" not "function".

We have noticed this failure in Generic Child Variant long time ago and taken out the Generic Child Variant custom fields from the category page.

It didn't work because when multiple products have the Generic Child variants, the 1st one's selection applies to all others, because jQuery gets involved. This is why I asked you put only 1 products into a category and run the test. Because it is the same for Generic Child Variant custom field as well. (if only 1 product has the generic child variant custom field, everything works as expected. The problem happens when multiple products are exist)

I have personally spent lots of hours to make this work (for generic child variant) but i ended up with nothing. It just doesn't work. But starting from today, i am also being aware that the "Stockable Custom Field" also doesn't work. So i should apply this modification permanently to our templates as well.

But on the other hand, the simple custom fields (Cart Variant, Image Type Custom Field, etc..) works just fine on the category browse page ListView, i can say that.

Regards,
Support.
The administrator has disabled public write access.

products being added twice in list view 6 years 4 months ago #8467

I have switched this off via the plugin last week as you suggested for ease, but this now introduces a new problem, which I would like to get your opinion on.

Now when you switch it off, you still see the add to cart button for stockable variant plugin products.
But clicking on the add to cart button doesnt inform the customer to select variants or even transfer them to the product page to choose there variants.
Instead it just adds the parent product to the cart.
All my parent products are dummy placeholder products, so adding the Parent product doesnt help.

As a minimum I would need the add to cart button to be renamed to something like "View product & choose your variant" which goes to the product page.

Alternatively is there no way to show a pop up or something with the child product variants.

Andy
The administrator has disabled public write access.

products being added twice in list view 6 years 4 months ago #8493

Hi,

If you switch it off, you shouldn't be seeing the custom field, but the "add to cart" button will be visible. That's correct, nothing is wrong here. There is another parameter to hide the "Add to cart" button, which will hide "ALL" the add to cart buttons, regardless of looking if the product has custom field or not. You should disable that option if you want to hide the add to cart completely.

I agree with you. this has to improved. Indeed we have done this improvement already with our another template: CleanMart

Take a look at this page (this is the category page of CleanMart):
demo.flexiblewebdesign.com/cleanmart/index.php/vm-categories/category-default-layout

Product 01,Product 03A in the above link have custom fields, and if you hover the "Add to Cart" button, it says "Choose a product variant first" and if you click the button, it redirects you to product details page to let you choose the product variant.

If there is NO custom field at all (such as Product 04) , and the "add to cart" button (in the category page) will work as usual and adds the product to cart directly (from category page)

This is the best way to handle things without giving any confusion to clients and avoid wrong purchases.

This improvement will also be applied to PureMart as well, (most likely in the upcoming version). I can't provide you the code modifications in here to achieve this, because this is not an easy task to handle.

We keep updating and improving our templates/extensions.
For instance, a new version for zoom effect is on the way, will be released in couple days.
For details see: www.facebook.com/flexibleWD and take a look at the 1st post.

The new version of PureMart is also on the way and will fix/improve many things. (including this one you are saying, we were going to include this patch to new version of PureMart even though you didn't ask for it)

Stay tuned. "Like and Follow" our Facebook page to be updated.

Regards,
Support
The administrator has disabled public write access.

products being added twice in list view 6 years 4 months ago #8591

Nice Reply & Explanation, Thanks!
You always take the time to explain things well & it is really appreciated.

Off topic, is there any new responsive themes coming out soon, or do you just have cleanmart.
I need to purchase one in the next few days.
The administrator has disabled public write access.

products being added twice in list view 6 years 4 months ago #8623

The new Virtuemart 2 Template is on the way. (no need to mention about "responsive", it is a mandatory features these days. Everything we make from now on, will be responsive)

Did you see our new Joomla Virtuemart Template: Asymmetric?

demo.flexiblewebdesign.com/asymmetric

Basically the new Virtuemart 2 Template will be similar to Asymmetric (in terms of Category and Product Details Page designs)
But in the meantime, we are developing a new Zoom Effect extension. We have completely re-designed the Zoom Effect extension.
More info about the new zoom effect extension. Look here: facebook.com/flexibleWD and see the 1st post for screenshots.

The new zoom effect will be released in couple days, it is almost finished. After the new zoom effect extension is ready to go online, the next thing to do is to start developing a new Virtuemart 2 Template (because the new zoom effect will come free (integrated) to that new template).

Stay tuned. Like our "Facebook Fun" page to follow our works. We are posting announcements about our new releases or upcoming extensions/templates.

Regards,
Support
Last Edit: 6 years 4 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.113 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo