eGzyl.pl Posted March 5, 2010 Share Posted March 5, 2010 who can i change quantity of produkt??now i have 1 but i want change it for exple for 100 or 200 etcnow i can only add +1 or -1.somebody done it?? Link to comment Share on other sites More sharing options...
eGzyl.pl Posted March 5, 2010 Author Share Posted March 5, 2010 somebody know i could me resolve :> Link to comment Share on other sites More sharing options...
Joël Gaujard Posted March 6, 2010 Share Posted March 6, 2010 Hello,You have to put a parameter to URL: "qty=XX"For example: {$base_dir_ssl}cart.php?add&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&token={$token_cart}{if $subtract}&op=down{/if}&qty=XXXX Link to comment Share on other sites More sharing options...
eGzyl.pl Posted March 6, 2010 Author Share Posted March 6, 2010 but i want in in input u know :> [here write numer what i want] Link to comment Share on other sites More sharing options...
Joël Gaujard Posted March 6, 2010 Share Posted March 6, 2010 You have to make a form (with action to cart.php) with hidden field for each URL parameter. Except for qty which be a text input field. Link to comment Share on other sites More sharing options...
eGzyl.pl Posted March 6, 2010 Author Share Posted March 6, 2010 u can write how?? Link to comment Share on other sites More sharing options...
Joël Gaujard Posted March 6, 2010 Share Posted March 6, 2010 I think it something like this (I test it quickly) : <form action="{$base_dir_ssl}cart.php"> <input type="hidden" name="id_product" value="{$product.id_product|intval}" /> <input type="hidden" name="ipa" value="{$product.id_product_attribute|intval}" /> {if isset($my_condition)}<input type="hidden" name="op" value="down" />{/if} <input type="hidden" name="token" value="{$token_cart}" /> <input type="hidden" name="add" value="1" /> <input type="text" name="qty" /> </form> Link to comment Share on other sites More sharing options...
eGzyl.pl Posted March 6, 2010 Author Share Posted March 6, 2010 thx a lot but now when i wrote numer its add to last quantity what is wronk if i wrote 10 i want have 10 not last number + 10 Link to comment Share on other sites More sharing options...
Joël Gaujard Posted March 6, 2010 Share Posted March 6, 2010 You have to calculate it. I advice you to use jQuery for this... Link to comment Share on other sites More sharing options...
eGzyl.pl Posted March 6, 2010 Author Share Posted March 6, 2010 dont must use jquery only i need number of product only it what is in input if i write 100 i want have 100 if i write 200 i want have 200, not last number + 200.. Link to comment Share on other sites More sharing options...
Joël Gaujard Posted March 6, 2010 Share Posted March 6, 2010 I let you search a little bit how to do this in jQuery. If the only way, I see... Link to comment Share on other sites More sharing options...
eGzyl.pl Posted March 6, 2010 Author Share Posted March 6, 2010 hmm mayby u dont undestand me i want chage quantity of products if i have 100 i want chage it for 60 for example in input...i buy 200 and i want change it for 320 or for 130.. not use to it jquery i think Link to comment Share on other sites More sharing options...
Joël Gaujard Posted March 6, 2010 Share Posted March 6, 2010 What about an other way to do this ? tell me about your idea... Link to comment Share on other sites More sharing options...
eGzyl.pl Posted March 7, 2010 Author Share Posted March 7, 2010 <input style="width:30px;" type="text" name="qty" value="{$product.quantity}" /> here if i put 100 i have 100 items (ad press enter) and where i change it for 70 i have 70 items of product...u understand ? Link to comment Share on other sites More sharing options...
Joël Gaujard Posted March 7, 2010 Share Posted March 7, 2010 Yes i really understand yours needs...Stay tunes ! Link to comment Share on other sites More sharing options...
eGzyl.pl Posted March 7, 2010 Author Share Posted March 7, 2010 ok, im w8 thx Link to comment Share on other sites More sharing options...
eGzyl.pl Posted March 9, 2010 Author Share Posted March 9, 2010 and have some resolve? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now