| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
POSTing exta variables to cart.php | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
POSTing exta variables to cart.php
I'm simply trying to add variables at the end of the query string for the cart.php page and then access them in php. I've tried to do this (for different reasons) when both adding a product to cart and when updating the cart and haven't had any luck with either.
eg. Code:
so I want to access avariable in php. I read that x-cart will automatically assign extra POST data to variables. I've tried both echo $avariable; and echo $_POST['avariable']; and haven't had luck with either. I can see with firebug that avariable is being POSTed to cart.php but for some reason I am unable access it. Is there a trick to this or something I'm missing?
__________________
X-Cart v. 4.2.2 X-Cart v. 4.4.4 |
|||||||
#2
|
|||||||
|
|||||||
Re: POSTing exta variables to cart.php
echo $_GET['avariable'];
{$smarty.get.avariable}
__________________
xcartmods.co.uk |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|