valuationbreak evenprofitcontributionforecastshiftqueuingbusiness analysis
accountbasbudgetBAS-I.Cshare valueshort salesinvestment
site mapform1
Browse All Question and Answer Items
Items selected where Item is 10618
Questions & Answers
Q: I bought your Form 1 Builder MYSQL software and so far everything is working great! Thanks much. One last tricky part and then I'll be complete. My t-shirt company allows selection of size, color, quantity, and personalized message printed on the shirt. I am using the code processing option for drop-down select for "size," drop-down select for "color," drop-down select for "quantity," and text entry for the "personalized_message." After these are processed by Form 1 I get the e-mail message and the SQL database entry and they are both working great. However, after processing I need to set up a pointer to my VirtueMart shopping basket that includes a subset of the same variables that have already been processed (I only need size, color, and quantity....I'll get the personalized_message from the SQL database entry). I am using the "$thankurl" as the pointer to my shopping basket after being processed by Form1, but I don't think the values are intact and being passed through. My "$thankurl" looks like the following: $thankurl = "http://www.mydomain.com/index.php?size={$size}&color={$color}&quantity={$quantity}&flypage=shop.flypage&page=shop.cart&manufacturer_id=2&category_id=9&func=cartAdd&option=com_virtuemart&Itemid=26&lang=en"; If a customer chooses size=3, color=orange, and quantity=15, then I need my $thankurl to pass these values through the $thankurl variable. I cannot change the syntax of the VirtueMart shopping cart pointer or else it will not work. Is this possible? Am I doing something wrong? How can I make it work? Thank you very much for your help,
A: You should be able to see the values in the url if they are passed, but they will not be because the variables cannot be extracted. You need to set up a script to extract the variables either from the database or the post variables. Then set your thankyou url to call the script which will then pass the varibles to the cart url.
Question and Answer Item 10618 - Browse All Question and Answer Items