X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   subscriptions.tpl nested forms (https://forum.x-cart.com/showthread.php?t=50409)

amy2203 10-28-2009 06:38 AM

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,

cflsystems 10-28-2009 07:42 AM

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?

amy2203 10-28-2009 08:19 AM

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,

cflsystems 10-28-2009 08:22 AM

Re: subscriptions.tpl nested forms
 
Glad you sorted it out

amy2203 10-28-2009 08:25 AM

Re: subscriptions.tpl nested forms
 
Thanks,


All times are GMT -8. The time now is 06:08 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.