| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Add multiple products to cart | ||||
|
|
Thread Tools | Search this Thread |
#41
|
|||||||
|
|||||||
I implemented the code on the first page which funkydunk posted, it works great except it always redirects user to the cart page after clicking add to cart, I want it stay at the same page after adding, I just could not modify the code to make it happen, I think it is in part of the code in add_multiple.php
Code:
__________________
XCart 4.0.18 Gold X-Giftregistry Neon light Fashion mosaic Tabbed product menu |
|||||||
#42
|
|||||||
|
|||||||
Any way to get this to work on the related_products page not the product list?
http://www2.apctechnology.com.au/cart/product.php?productid=1&cat=1&page=1 then click options.
__________________
lc 2.2.21 |
|||||||
#43
|
|||||||
|
|||||||
4.0.x
I've gotten this mod to work on a 4.0.17 shopping cart. I will not post my code because I hacked it severely and did not include any of the javascript checking for product options, however if someone is in need I'll be happy to assist them in getting this mod to work on their cart. Somehwere along the line in x-cart, there was major modification on how product options are stored in the datbase, so for the 4.0.x carts funkydunk's mod doesn't work as posted earlier.
If you need help with getting this working on 4.0.x drop me an email. Cheers, Andy
__________________
Andy Melichar, Tech Director - REBEL INTERACTIVE - andy@rebel-interactive.com - X-Cart version 4.1.3 |
|||||||
#44
|
|||||||
|
|||||||
Hello
Can somebody tell me how to NOT display quantity field if some of listed products have options? Everything it's ok on home page (i use recommend instead of features which include customer/main/products.tpl), the quantity field it's not visible if product have options but when i go to categories no matter if product have or not options, the quantity field is displayed. The code is below: {if ($active_modules.Product_Options ne "" and $products[product].product_options )} {$lng.lbl.product_with_options} --------> text to be displayed for each product who have details {else} <input type="text" size="4" maxlength="10" name="amount[{$products[product].productid}]" value="0"> {/if} Thanks for help
__________________
Mircea Teleleu Shopedia.ro-la cumparaturi www.shopedia.ro ______________________ x-cart gold 4.1.6 Linux |
|||||||
#45
|
|||||||
|
|||||||
Hello All,
Love the mod...took some tinkering but i got it to work on 4.0.18. I was stuck for a while, nothing would get entered into the cart, it would always say empty after the redirect, so it was going through the add_multiple.php page. I felt it was something with the products_t.tpl. I didnt do any modifications to the file. So i just removed the {include file="customer/main/products_t.tpl" products=$products} from the products.tpl And Voila it started working. So my questions are: What does/did the products_t.tpl do? It seems to be working fine, what issues will arise if any, by not using the products_t.tpl? Thanks All -Seth
__________________
4.0.18 |
|||||||
#46
|
|||||||
|
|||||||
ADD ALL above products list
A feature I would like to incorporate is having the "ADD ALL TO CART" button appear above the products list as well as below it.
if i just put the code at the top as well, it puts one above every product it loops through. I tried putting it in the subcatagories.tpl above the include for the products.tpl, but it doesnt pass to the cart, just refreshes the page. Any ideas? GOT IT THANK YOU ANYWAY -seth
__________________
4.0.18 |
|||||||
#47
|
|||||||
|
|||||||
I think there will be no problems, i use old products_t.tpl and a new products.tpl based on this modifications and everything it's ok except my problem listed above your post.
Could you please tell me if it's ok for you when access category area? I mean, products with options should not have quantity input field and products without options have this field? In my case, except home page, when i access any category, all products have quantity field no matter if they have or not options Thank you
__________________
Mircea Teleleu Shopedia.ro-la cumparaturi www.shopedia.ro ______________________ x-cart gold 4.1.6 Linux |
|||||||
#48
|
|||||||
|
|||||||
Hope someone still reads this thread. If you saw above i implemented the add all to cart, i am using 4.0.18.
I also added an add to cart button above the products list. I was so happy with the mod, till i i checked in IE. Doesnt add to the cart, and redirects to homepage. In Firefox works perfectly redirect to cart showing all the additions. Any ideas anyone -
__________________
4.0.18 |
|||||||
#49
|
|||||||
|
|||||||
This is my customer/main/products.tpl page. I also use add_multiple.php original posted bu funkydunk in first page and i have "Display only featured products list in multicolumn format" ticked in Appearance, because i didn't make any modifications to products_t.tpl. Till now, except problems listed above everything work fine.
Code:
__________________
Mircea Teleleu Shopedia.ro-la cumparaturi www.shopedia.ro ______________________ x-cart gold 4.1.6 Linux |
|||||||
#50
|
|||||||
|
|||||||
Re: Add multiple products to cart
Hmm, adding multiple products are working fine. But product options are a problem:
<form action="add_multiple.php" method ="post" name="orderform"> <input type='text' size='4' maxlength='10' name='amount[5722]' value='1'><input type='text' size='4' maxlength='10' name='product_options[144966]' value='359633'></form> Does any see a flaw about this one?
__________________
x-cart 4.05 Linux CENTOS APACHE Heavily customized |
|||||||
|
|||
X-Cart forums © 2001-2020
|