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

subscriptions.tpl nested forms

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-28-2009, 06:38 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default subscriptions.tpl nested forms

I'm trying to add some 'buttons' into the subscriptions.tpl

the problem is, they are not buttons, but actually forms and the table displaying the suscription info is already inside a form, so the forms are nesting which is not allowed.

Anyone any ideas how I can change this without it all falling apart?

basically I want to add 2 columns to the existing table, and each cell in those columns wants to have a form inside.

tia,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #2  
Old 10-28-2009, 07:42 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: subscriptions.tpl nested forms

Can you take that main table wit subscription info outside the main form or it contains info needed for the form?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 10-28-2009, 08:19 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: subscriptions.tpl nested forms

it contains info needed for the form....

however, the form was just to allow customers to unsubscribe using tick boxes for each subscription.

I've taken that whole bit out as I'd rather they contacted us so we can make sure it's all cancelled properly, with payments etc, I don't want people to unsubscribe there bt our systems still take the payments etc.

Now I can just put my forms in the table cells.

I did as an inbetween hack change the form so instead of it using a ceckbox and the whole table, there was a whole form intead of the checkbox, with a hidden value instead of the checkbox, and an unsubscribe button for each subscription. Just in case anyone else reads this in the future.

Thanks,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #4  
Old 10-28-2009, 08:22 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: subscriptions.tpl nested forms

Glad you sorted it out
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 10-28-2009, 08:25 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: subscriptions.tpl nested forms

Thanks,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:10 AM.

   

 
X-Cart forums © 2001-2020