View Single Post
  #1  
Old 03-13-2012, 05:08 PM
 
AdamL56 AdamL56 is offline
 

Newbie
  
Join Date: Oct 2010
Posts: 3
 

Default 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:
cart.php?mode=add&productid=555&amount=1&avariable=Y


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
Reply With Quote