StellaQ
Forum Replies Created
-
@baldemotions, I found the plugin with the rogue PHP code and removed it (manual process). The problem seems to be fixed. Should I be concerned by the Sucuri error message that refers to known “Javascript” malware.
@baldemotions, I have this exact same issue. Can you please give me some guidance with regard to how you tracked down the “sorry function” in the infected plugin? Did you have to open each plugin’s PHP files and look through the code manually?
Any help would be greatly appreciated.
- This reply was modified 8 years, 9 months ago by StellaQ. Reason: Fixed typos!
I see your problem. You want your customers to select between three fields (private citizen, company, freelancer), and depending on the answer, you want to show or hide certain fields. As I understand it, I don’t think this is possible with this plugin. I think you can only ask questions of the type, “are you a freelancer?” with a yes or no answer.
Perhaps someone else who has more experience with this plugin or its author(s) can give you more insight.
I don’t know of any other WooCommerce extension that does this but a solution like this one may work for you:
http://stackoverflow.com/questions/37099213/conditionally-unset-checkout-field-in-woocommerceOne potential way to achieve a similar effect – I am doing this with a completely different setup for a non-profit – is simply replacing the default WooCommerce “View Cart” message with “Proceed to Checkout,” thereby skipping the cart altogether.
I am not certain but it sounds like you have installed WooCommerce Checkout Manager without first installing the WooCommerce plugin which you can download from https://wordpress.org/plugins/woocommerce/ or from the WooCommerce website.
The WooCommerce plugin provides you with your shopping cart features. The add-on WooCommerce Checkout Manager plugin is used to add additional checkout fields including conditional ones.
Are you able to provide a link to your website?
This is how I set it up:
-
I chose “Radio Buttons” type for the field (This has to be a question with a “yes” or “no” answer and has to be setup using ||s) that triggers the additional hidden fields to be shown (for a “yes” answer). You can also use the “Selection Options” type with yes/no answer.
-
I noted the Abbreviation for this field (This will have the format myfieldxx where xx is a field number assigned by WooCommerce Checkout Manager)
-
Then I clicked on “More Toggler”
-
Next I clicked on the word “Conditional” in the blue block in the header
-
Only for the radio button field mentioned above, I selected both “Conditional” and “Conditional Parent” checkboxes
-
In the “Conditional Tie” box for this radio button field, I typed in the previously noted myfieldxx
-
For the fields I wanted displayed only when “Yes” was selected (for the radio button field), I selected the “Conditional” checkbox (leaving the “Conditional Parent” checkbox blank)
-
Finally, I entered the previously noted myfieldxx in the “Conditional Tie” box(es) for the fields in the step above and saved my work
And that was it! Let me know if this clarifies the set up for you. Thanks!
I use WooCommerce Checkout Manager for this purpose and it works well. You can find instructions at: https://www.visser.com.au/documentation/woocommerce-checkout-manager/usage/#Adding_Conditional_Checkout_Fields
Have you activated the WooCommerce plugin? Does that plugin work correctly?