| ||||||||||
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 |
#1
|
|||||||
|
|||||||
Add multiple products to cart
As it is my birthday tomorrow (cakes appreciated)
Here is a little mod that allows you to run the product listing page as an order form where the visitor can add in amounts for several products at a time and have them all added to the cart simultaeneously. First of all create a new php script in customer: add_multiple.php Code:
Then create two language fields: err_minimum_amount err_minimum_amount_txt These will be shown at the top of the error page that is shown if the user does not order enough of something as follows: Then create a new template in skin1/main/minimum_amount.tpl : Code:
Then amend skin1/common_templates.tpl by inserting: Code:
before the final {else} Then amend the products.tpl and products_t.tpl as follows: (this is the code for products.tpl without images but you can get the idea from this Code:
There are a few style sheets references in there that aren't standard but you should be able to get it working. PLEASE NOTE THAT YOU SHOULD BACKUP BEFORE DOING ANY MODS FROM THE FORUM. This was built for version 3.5.x gold but should work on Pro and may even work on 3.4 shops. Have fun
__________________
ex x-cart guru |
|||||||
#2
|
|||||||||
|
|||||||||
Thats really cool I wonder if I can find use for this somewhere!
But you know, on your birthday you aren't supposed to work or even the day before for that matter! Have a great birthday \ |
|||||||||
#3
|
|||||||
|
|||||||
day before is fine - the day after is the problem
__________________
ex x-cart guru |
|||||||
#4
|
|||||||||
|
|||||||||
I think I would have to agree with you there. |
|||||||||
#6
|
|||||||
|
|||||||
it wont display the amount box if there are any if that is what you mean
__________________
ex x-cart guru |
|||||||
#7
|
|||||||
|
|||||||
Good Code! Happy B-Day Funky! What About Cake on B-Day?
__________________
X-Cart Version 4.1.8 Hosted on Linux |
|||||||
#8
|
|||||||||
|
|||||||||
Happy Birthday Mate,
21 today eh Make sure you have a day off
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#9
|
|||||||
|
|||||||
day off
moving to new offices today
__________________
ex x-cart guru |
|||||||
#10
|
|||||||
|
|||||||
Quote:
__________________
ex x-cart guru |
|||||||
|
|||
X-Cart forums © 2001-2020
|