Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Add multiple products to cart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 06-04-2004, 09:56 AM
 
mattia mattia is offline
 

Member
  
Join Date: May 2004
Location: rome, italy
Posts: 24
 

Default error on mod

hi, forgive me, i'm still kinda new at this:

I tried to follow you guidelines:
created the PHP file,
created the lang files as errors fields,
amended the TPL and created skin1/main/minimum_amount.tpl,
amended customer/main/products.tpl
(coudn't understand how to modity products_t.tpl, so I left it as it was)

and I can see how the product list page now shows a different kind of list with the qty boxes, but once I click on "add all to cart" I get this message:

Quote:
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache2\Apache2\htdocs\farm\xcart\customer\a dd_multiple in C:\Program Files\Apache2\Apache2\htdocs\farm\xcart\customer\r eferer.php on line 55

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache2\Apache2\htdocs\farm\xcart\customer\a dd_multiple in C:\Program Files\Apache2\Apache2\htdocs\farm\xcart\include\fu nc.php on line 197


thanks for this useful mod, it really makes shopping much quicker for those customers who know what they want. If only I could get it to work...

matt
__________________
------------------------
X-Cart: 4.0.15 Gold
Apache 2.0.52 / PHP 4.4.6 / MySQL Server: 4.1.22-standard-log, client: 5.0.27
Reply With Quote
  #22  
Old 08-04-2004, 11:14 PM
 
bluecobalt bluecobalt is offline
 

Newbie
  
Join Date: Jul 2004
Posts: 4
 

Default

i installed this mod on 3.5.10 gold and am getting the following error:

Parse error: parse error, unexpected T_STRING in add_multiple.php on line 35

any ideas on how to fix this?

thanks,
blue
__________________
----
Reply With Quote
  #23  
Old 08-04-2004, 11:34 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

This would normally mean that a ; has been missed from the end of line 35. PHP is pretty good for telling you where the problem is.
__________________
ex x-cart guru
Reply With Quote
  #24  
Old 08-05-2004, 12:03 AM
 
manasarova manasarova is offline
 

Newbie
  
Join Date: Jul 2004
Posts: 3
 

Default How do you create a php file

I'd love to try this.
but how do i begin creating a php file.
I am a newbie, but with a bit of help, i can get started.
Thanks
__________________
Manasarova
X-cart Gold
3.5.5
Reply With Quote
  #25  
Old 08-05-2004, 06:02 AM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

Just copy the code to notepad or whatever text editor you use then save it as: add_multiple.php
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #26  
Old 08-17-2004, 08:55 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default

Hi Funky

I could really do with this working with a 4.02 site. Do you think it would without too much trouble?
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #27  
Old 10-20-2004, 01:22 AM
 
stmart stmart is offline
 

Member
  
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 23
 

Default

I believe I copied the instructions to the letter but when i open up the site it is blank. Any ideas?
__________________
.:::ST MART GROUP:::.
X-Cart 3.5.9 & 4.0.14
Reply With Quote
  #28  
Old 12-08-2004, 06:39 AM
 
cellula cellula is offline
 

Newbie
  
Join Date: Nov 2004
Location: USA
Posts: 9
 

Default ?????????

"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"


I dont get it do we replace it with that code below or just add it into it im so lost please help me.
also i am confused about the language files are they .tpl or what sorry im a noobie
[/code]
__________________
Yours Truly,
Cellula
X-Cart Version 4.0.x
Reply With Quote
  #29  
Old 12-08-2004, 06:44 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default Re: ?????????

Quote:
Originally Posted by cellula
"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"


I dont get it do we replace it with that code below or just add it into it im so lost please help me.
also i am confused about the language files are they .tpl or what sorry im a noobie
[/code]

No problem that you are a newbie, but please take the time to read the forum rules and stickies. You should have your version # in your signature. It is a guessing game trying to help you otherwise and many people will ignore your post.
Reply With Quote
  #30  
Old 12-08-2004, 11:46 AM
 
cellula cellula is offline
 

Newbie
  
Join Date: Nov 2004
Location: USA
Posts: 9
 

Default

Sorry about that, will you PM me a breakdown of what to do or actually do it for me please i love this mod and it would be very beneficial to me thanks.
__________________
Yours Truly,
Cellula
X-Cart Version 4.0.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:48 PM.

   

 
X-Cart forums © 2001-2020