This vQmod will change checkbox to button on cart page.
Enjoy.
Attachments
Last edited by LeorLindel on Mon Jan 31, 2011 11:24 am, edited 4 times in total.
Tous les packs de langues Française depuis la v1.4.7 et toutes les versions intégrales 100 % Français sont disponibles sur le Portail Officiel Français.
I don't quite understand what this does... Why would you want it to not recalculate if deleting?
Looking at the code, it looks what you should really call this is "change checkbox to button on cart page"
You are simply reusing the code from the sidebox on the main cart page. But the issue is that you are using the same "id" tag that the cart sidebox has, forcing the same behavior as the sidebox, but breaking the webpage for having 2 of the same element id's meaning that it could break other stuff and other scripts that run.
I think maybe you want something like this:
http://forum.opencart.com/viewtopic.php?t=8137#p38505
which will delete the item immediately when checked so you don't have to click the "update" button. But it still recalculates the totals which is something you will always want. I think maybe it's lost in translation.
Looking at the code, it looks what you should really call this is "change checkbox to button on cart page"
You are simply reusing the code from the sidebox on the main cart page. But the issue is that you are using the same "id" tag that the cart sidebox has, forcing the same behavior as the sidebox, but breaking the webpage for having 2 of the same element id's meaning that it could break other stuff and other scripts that run.
I think maybe you want something like this:
http://forum.opencart.com/viewtopic.php?t=8137#p38505
which will delete the item immediately when checked so you don't have to click the "update" button. But it still recalculates the totals which is something you will always want. I think maybe it's lost in translation.
Indeed, the title is not clear, I'll change it.
I meant there is no need to click the button recalculation because the checkbox is replaced by the image deletion found in the sidebox on the main cart page and that deletion of the article or articles by clicking on the picture puts the cart automatically updated.
Thank you for this precision is important.
I changed the file name. xml and image, for cons I can not change the title of your reply.
Sorry for my bad english.
I meant there is no need to click the button recalculation because the checkbox is replaced by the image deletion found in the sidebox on the main cart page and that deletion of the article or articles by clicking on the picture puts the cart automatically updated.
Thank you for this precision is important.
I changed the file name. xml and image, for cons I can not change the title of your reply.

Sorry for my bad english.
Tous les packs de langues Française depuis la v1.4.7 et toutes les versions intégrales 100 % Français sont disponibles sur le Portail Officiel Français.
Who is online
Users browsing this forum: No registered users and 6 guests