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

TOPIC: Problem with Add to Cart Quantity

Problem with Add to Cart Quantity 9 years 1 month ago #12018

I am running Joomla V 3.4.0, VirtueMart 3.0.4, and The latest CleanMart template

**** I Just discovered that this might be a VirtueMart issue ****

I've completely disabled the CleanMart plugin and code and the problem still exists...

This problem only occurs on a child variant page after selecting "Choose a variant" from the parent product page.

After selecting the variant, when I click on the "+" button in the Add to Cart Button the quantity increments by twice the value set in the product for "Purchase Quantity Steps". For example, if Purchase Quantity Steps is blank or 1, the quantity in the Add to Cart Button increments by 2 each time the "+" is clicked. If Purchase Quantity Steps is set to 3, the quantity in the Add to Cart Button increments by 6 each time the "+" is clicked.

However, if I refresh the page after selecting "Choose a variant" then the quantity increments properly. If I then choose another variant, the problem reappears until I refresh the page...

You can see the problem here:
cejay2014.cejayengineering.com/shop-online/cockpit-personal-lighting/glostick-seer-lights/two-color-mk-glo-wand-6-34-double-end-detail

Just select different variants and then click on the "+". This product is configured to increment by 1...
Last Edit: 9 years 1 month ago by Michael Ronayne.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 1 month ago #12026

This has been confirmed as a VirtueMart issue. They are in the process of fixing it.
You can mark this as resolved/closed.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 1 month ago #12049

Hi,

I remember a problem similar to that, it had happened way back during the first days of VM2.0.x, i can't believe it happens again in the first days of VM3.0.x as well; weird coincidence ;)

But; good to know, thanks for updating your own topic.

As far as i know VM3.0.6 has been released already (I saw Max's Facebook post yesterday)
Check the Virtuemart website to download the VM3.0.6.

Topic is closed.

Regards
Last Edit: 9 years 1 month ago by Support.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 1 month ago #12053

*** Update - Sorry, I had to disable CleanMart in the site below so that VirtueMart support can look into other issues. I only have one development site to work with at the moment. You should be able to see this one in your development environment when you test against VM 3.0.6 ***

I tried VirtueMart 3.0.6 and doesn't fix this Add to Cart quantity issue.
It also broke the CleanMart Add to cart quantity "+" script in a stranger way... On any product, as soon as you click on the "+" you get "NaN" in the Quantity box?

You can see this behjavior here: http://cejay2014.cejayengineering.com/products/buy-online/cockpit-personal-lighting/the-flexlight-stick-222-detail

When CleanMart is totally disabled, I am back at my original VirtueMart issue of incrementing the amount by 2 times the "purchase quantity steps" number?

For now, on the site I plan to go to production with, I am staying at VirtueMart 3.0.4

Regards,
Mike
Last Edit: 9 years 1 month ago by Michael Ronayne.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 1 month ago #12057

Hi Mike,

sorry hear that. But i can assure you that this problem can't be related to CleanMart, as CleanMart is not changing or modifying quantity increment function. But you are saying; you have experience a problem with official VM as well.

I would recommend you to follow the "divide and conquer" method to identify the real source of the problem . Start with changing your Joomla Template back to beez5, and then start disabling the modules and plugins (that loads JS on the product details page). Do these unpublishing one-by one and each time you disable an extension; check the quantity box to see if it starts working fine.

If you identify the real source of the problem, it would be easier to resolve.

Regards.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 1 month ago #12087

Thank you, will do. The VM support person claims to have solved the issue with the incrementing of the quantity but they have not yet made that available. Once they do and I can confirm that the incrementing problem is solved, I will then go after the issue mentioned here using your suggestions.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 1 month ago #12094

Ok, I've spent the past 6 hours trying different combinations of things and here is where I am.
I am running the following
Joomla Version 3.3.6 - Beez3 template
VirtueMart 3.0.6
CleanMart 3.1

There appears to be a conflict between VirtueMart 3.0.6 and CleanMart 3.1 that causes the quantity in the Add Cart button to show "Nan" whenever the "+" of "-" are clicked.

You can view the page here: At this point I've left CleanMart files enabled.

If I disable these 2 CleanMart files:
\templates\beeze3\html\com_virtuemart\productdetails\default.php by renaming it to default.php.f
\templates\beeze3\html\com_virtuemart\sublayouts\addtocart.php by renaming it to addtocart.php.f

Both the "+" and the "-" links do the correct thing when clicked - they increment and decrement the Add to Card button quantity.

Screen shot below with both CleanMart files disabled - showing the quantity at "2" after clicking the "+" sign.

Attachment cart-qty-flex-diabled-both.jpg not found




Screen shot below with addtocart.php enabled - showing "NaN" in the quantity field after clicking the "+" sign.

Attachment cart-qty-flex-diabled-default.jpg not found




Screen shot below with both default.php and addtocart.php enabled - showing "NaN" in the quantity field after clicking the "+" sign.

Attachment cart-qty-flex-enabled.jpg not found




If you would like to debug this on my site send me a PM and I'll setup an FTP account as well as a Joomla Login so you can look into this.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 1 month ago #12102

Same Prolem here, need a solution urgently!

Best regards

Christian
The topic has been locked.

Problem with Add to Cart Quantity 9 years 1 month ago #12104

Same problem here !!

regards

René
The topic has been locked.

Problem with Add to Cart Quantity 9 years 1 month ago #12134

I hate to be pushy, but is anyone looking into this issue? I am in a catch-22 position because in order to fix some issues with VirtueMart I have to upgrade to vm2.0.6. But upgrading to 2.0.6 seems to break some of the features in CleanMart?

I realize that CleanMart is not yet claiming to support vm2.0.6 but I assume that you must one day? Any idea when that might be?

I believe there are others in this same position...

Regards,
Mike
The topic has been locked.

Problem with Add to Cart Quantity 9 years 3 weeks ago #12145

Do you have a solution for this already ?
The topic has been locked.

Problem with Add to Cart Quantity 9 years 3 weeks ago #12146

Same issue here....
Someone please help!
Last Edit: 9 years 3 weeks ago by Kirill Elin.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 3 weeks ago #12147

Is anybody looking into this from Support? It appears there are more people than just me impacted by this.
Can someone from support please comment on any status? It has been over a week since there has been any response from Support.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 3 weeks ago #12155

I just downloaded and installed VirtueMart 3.0.6.2 - the latest set of fixes and have confirmed that in the base VirtueMart installation with Joomla 3.4.0 using the beez3 template my original issue (that was a VirtueMart issue) of the quantity being incremented incorrectly on certain products with child variants has been corrected.

However, the issue in this post with the Quantity showing as "NaN" whenever you click on the "+" or "-" buttons to increase or decrease Cart Quantity remains.

Quantity works fine without CleanMart enabled. Clean Mart JQuery appears to conflict with VirtueMart JQuery?
The topic has been locked.

Problem with Add to Cart Quantity 9 years 3 weeks ago #12161

Just adding my voice into supporting some action/response on this - I have the same problem.

Even just a way to remove the +/- buttons would be good. As a temporary fix - customers can only order one at a time. Perhaps this can be done with CSS!
Last Edit: 9 years 3 weeks ago by Rupert Griffiths.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 3 weeks ago #12162

You can hide the -/+ links with CSS. Note, it isn't obvious to the end user, but they can edit the quantity directly and make it whatever they want.

Here are the instructions for hiding the -/+ links:

In "templates/your-template/html/com_virtuemart/assets/css/flexible.css" navigate to lines 388/399. You should see the following:
.FlexibleCSS3ButtonQuantity .quantity-controls.FlexibleMinus{float:left!important}
.FlexibleCSS3ButtonQuantity .quantity-controls.FlexiblePlus{float:right!important}
Replace the above with (or add "; visibility:hidden;" to the end of each):
.FlexibleCSS3ButtonQuantity .quantity-controls.FlexibleMinus{float:left!important; visibility:hidden;}
.FlexibleCSS3ButtonQuantity .quantity-controls.FlexiblePlus{float:right!important; visibility:hidden;}

This should hide the -/+ links.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 3 weeks ago #12163

I managed to fix the problem. I am not sure it is the most elegant or most correct way to solve it but I did use the correctly working VirtueMart default template code as an example.

I’ve attached the three files I edited. In each I have comments with my initials “MLR” in them so they are easy to find. You can also do a file compare to see all the changes. I believe that my fix simplifies things quite a bit as well? You will be the final judge…

This fix has only been tested with Virtuemart 3.0.6.2 - I have no idea if it will work with any other version!

In the attached you will find the following edited files:
  • com_virtuemart/productdetails/default.php – changed this to include the sublayout addtocart.php code
  • com_virtuemart/productdetails/flexv2.php – changed this to include the sublayout addtocart.php code
  • com_virtuemart/sublayouts/addtocart.php – I made major modifications here based on the Virtuemart sublayouts/addtocartbar.php source

Note, for my purposes I also needed another “addtocart” custom field position that I named “addtocart1”.

I hope you find this helpful…

Regards,
Mike

Admin: Attachments are deleted because this patch was causing some other problems
Last Edit: 9 years 3 weeks ago by Support.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 3 weeks ago #12169

Hi everybody.

I noticed this same problem with VM3.0.6.2 on my localhost as well. I just released a new version (CleanMart v3.2) to address these issues.

i have modified almost 8-10 files. so, i am not going to provide patches in here. Update is necessary (the update also includes some other patches and improvements as well, see the release notes for more info: www.flexiblewebdesign.com/forum-virtuemart-2-template-support/1379-cleanmart-updates-check-and-request#6561 )

FYI: Michael, your patch was causing some other problem, so please download the latest CleanMart and use this one instead. By the way, the reason why we didn't use sublayout for add to cart button is because we needed to use "different" version on each page, which makes using the sublayout redundant.

FYI 2: If your subscriptions includes "free update"; then you can download the CleanMart v3.2 through "My Account", or you can click the same download link that you have received into your email when you purchased the CleanMart. If your subscription doesn't have the "free-update", or if it is free update subscription(6-months) is expired then you can upgrade your order through here: www.flexiblewebdesign.com/license-upgrade

Regard.
Last Edit: 9 years 3 weeks ago by Support.
The topic has been locked.

Problem with Add to Cart Quantity 9 years 2 weeks ago #12218

This problem is completely fixed in both Virtuemart and in CleanMart 3.2.

I consider this topic closed...
The topic has been locked.

Problem with Add to Cart Quantity 9 years 2 weeks ago #12255

Case solved, topic is closed.

regards.
The topic has been locked.
Time to create page: 0.148 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