AnsweredAssumed Answered

Passing a URL from Woocommerce to Webdirect, carrying over any one of 3 values.

Question asked by happyez on Jun 16, 2016
Latest reply on Jun 16, 2016 by Mike_Mitchell

Hi there


I go between Wordpress/Woocommerce and WebDirect, and it is easy to do so from WP when I just have to go from one part to another: send a URL like this - https://HOST/fmi/webd#NAME.OF.FILE?script=OnFirstWindow (1=>1)


However, not so easy when I have a number of packages that someone could buy, and each package will give them a certain number of credits. (3=>1). It would be great to have it go https://HOST/fmi/webd#NAME.OF.FILE?script=Package1



So any one of the 3 packages all go to the same WD page, but are saved as a variable, and we set a field with either 1, 2 or 3 credits, so (3=>1). The URL from the product page on Woocommerce indicates what the package is, and how many credits will go through to the FM file.


And it would be great to not have to do PHP, because, as you can see, it successful works when 1=>1. But, if anyone feels that PHP is the only way to do it this way, then maybe there is a good place that explains this clearly and is easy to replicate, or if anyone can give some hints.


Like to hear what people think, and I hope this is clear!