Silverado05 Posted June 16, 2007 Posted June 16, 2007 Hello, I have been playing with this for awhile and can't seem to get it right. If you look at the pic you will see the qty box and buy now button ext to each other. One is higher then the other, I am trying to get them both level to where they are even and one isn't higher then the other but seem to be having some trouble. So if anyone can help me out with this that would be great. Here is the code for the button and boxes. case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = tep_draw_form('buy_now' . $listing['products_id'], tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), 'POST') . tep_draw_input_field('list_quantity', '1', 'size=2') . ' ' . tep_image_submit('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</form> '; break; } -Thanks Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 16, 2007 Author Posted June 16, 2007 Ok I have fixed the alignment problem. Only other issue I am having is the Qty boxes won't add more then 1 at a time. For example if I was to put 3 in the box it would only add 1 to the cart. Their is more then 3 in stock for the item I am testing on so I am not sure why it's not adding more then one. On my product info page it works and I have compared the code and I can't seem to see the problem. So If I could get some assistance on fixing this that would be great. -Thanks Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 16, 2007 Author Posted June 16, 2007 Ok I think I am on the right track now and I have it adding the proper qty to the cart. Only issue I am having now is that when you click add to cart it redirects to this page below but yet it adds it to the cart. I had this problem with Xsell but fixed it with an updated file but I am not sure how to get it to work with this now. Here is the code I am working with now case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<form name="cart_quantity" method="post" action="' . tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product', 'NONSSL'). '"><input type="hidden" name="products_id" value="' . $listing['products_id'] . '"><input type="text" name="quantity" value="1" maxlength="2" size="2">' . ' ' . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, 'align=absmiddle') . '</form>'; break; } Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 18, 2007 Author Posted June 18, 2007 Can anyone help me with this? Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 18, 2007 Author Posted June 18, 2007 Anyone? This is currently where I am at. The code below is what I am using as of right now. The problem with the code is for example if you want to add 3 to the quantity then hit add to cart it would only add 1 and thier is more then 3 in stock so it's not from that. I had it fix to where it would add to the cart what you put in the qty box but then when you went to add to cart it would send it to a page in the pic above that says product not found but would add it to cart. So can anyone help me out with the code to why it won't add more then one to the cart using the qty box? -Thanks case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = tep_draw_form('buy_now' . $listing['products_id'], tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), 'POST') . tep_draw_input_field('list_quantity', '1', 'size=2'). ' ' . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, 'align=absmiddle') . '</form> '; break; } Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Guest Posted June 18, 2007 Posted June 18, 2007 Anyone? This is currently where I am at. The code below is what I am using as of right now. The problem with the code is for example if you want to add 3 to the quantity then hit add to cart it would only add 1 and thier is more then 3 in stock so it's not from that. I had it fix to where it would add to the cart what you put in the qty box but then when you went to add to cart it would send it to a page in the pic above that says product not found but would add it to cart. So can anyone help me out with the code to why it won't add more then one to the cart using the qty box? -Thanks case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = tep_draw_form('buy_now' . $listing['products_id'], tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), 'POST') . tep_draw_input_field('list_quantity', '1', 'size=2'). ' ' . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, 'align=absmiddle') . '</form> '; break; } What does your action=submit code look like at the top of your page? The error might be in there, especially if the file isn't being directed to the right location after hitting the Buy It Now.
Silverado05 Posted June 20, 2007 Author Posted June 20, 2007 Well I have to bits of code that works halfway. One code the add qty box works but when you click add to cart it redirects you to a page that says product not found but it adds it to the cart. The second code and the one I am using right now cause the shop is live and it's the lesser of the two evils is it won't add more then 1 product to the cart using the qty box. The code above is the current code I am using that won't add more then 1 product to the cart no matter how many you want to add to cart it will only add just one. So I am not quite sure I understand what you are referring to by the action=submit code at the top of the page as the code I have posted is the entire code for the qty boxes and the add to cart button. Does anyone have an idea what might be happening here? -Thanks Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 23, 2007 Author Posted June 23, 2007 Bump Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 25, 2007 Author Posted June 25, 2007 Please? Anyone? Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 26, 2007 Author Posted June 26, 2007 $100 bucks for the first person who can fix this for me. I need this fixed BAD this is a live shop and I have exhausted all possible solutions. Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 27, 2007 Author Posted June 27, 2007 Bump Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 27, 2007 Author Posted June 27, 2007 Perfect example? Is their anyone that can please offer some insight or help with this. It would be greatly appreciative. -Thanks Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 27, 2007 Author Posted June 27, 2007 Bump -Thanks Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 27, 2007 Author Posted June 27, 2007 Anyone? This is currently where I am at. The code below is what I am using as of right now. The problem with the code is for example if you want to add 3 to the quantity then hit add to cart it would only add 1 and thier is more then 3 in stock so it's not from that. I had it fix to where it would add to the cart what you put in the qty box but then when you went to add to cart it would send it to a page in the pic above that says product not found but would add it to cart. So can anyone help me out with the code to why it won't add more then one to the cart using the qty box? -Thanks case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = tep_draw_form('buy_now' . $listing['products_id'], tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), 'POST') . tep_draw_input_field('list_quantity', '1', 'size=2'). ' ' . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, 'align=absmiddle') . '</form> '; break; } OR I can use this code and fix the qty box to where it will add the right qty to the box BUT when you hit add to cart it will display a page that says "Product not found" but it adds it to the cart And here is the code for that case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<form name="cart_quantity" method="post" action="' . tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product', 'NONSSL'). '"><input type="hidden" name="products_id" value="' . $listing['products_id'] . '"><input type="text" name="quantity" value="1" maxlength="2" size="2">' . ' ' . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, 'align=absmiddle') . '</form>'; break; } So if anyone can help me fix ether one of these bits of code to get it to work that would be GREAT!!! -THANKS Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 28, 2007 Author Posted June 28, 2007 :-" Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 28, 2007 Author Posted June 28, 2007 :-" Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Silverado05 Posted June 29, 2007 Author Posted June 29, 2007 I Desperately need help with this ASAP can someone PLEASE help me with this. do people just not understand the question or something. If you need more information just ask. I have spent several months on this and don't know what else to do PLEASE!?!?! -Thanks Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
oschellas Posted June 29, 2007 Posted June 29, 2007 Not so strange that only 1 product is added to the card since you hard coded: name="quantity" value="1" in the form... PS Very difficult to read your post with all the empty posts in between
Silverado05 Posted June 29, 2007 Author Posted June 29, 2007 PS Very difficult to read your post with all the empty posts in between Very difficult to get help otherwise when it gets shuffled 20 pages back. That has been mentioned already but both codes have name="quantity" value="1" and while one works the other one doesn't so I don't think that would be a factor or not. Any other ideas? -Thanks Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.