jkepler
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Enqueuing js properlyGood afternoon,
Ok, so I place the “wp_enqueue_scripts” callback (enqueuing the js scripts) in the main plugin file, and nothing on the php to be loaded, correct?
I believe that I did not try this option.
Best regards
JKepler
Forum: Developing with WordPress
In reply to: Enqueuing js properlyHi bcwork
Thank you very much for your reply.
So, you are saying that the best solution is to write the directive – for example – wp_enqueue_script(“my_js”, path_to_my_js, array( ‘jquery’),false,false) (already calling jquery) in the php file that I am loading in the shortcode?
Best regards
JKepler
- This reply was modified 3 years, 8 months ago by jkepler.
Forum: Plugins
In reply to: [Software License Manager] After checking LicenseGood evening
Yes, of course. Once I check the license key, how can I disable my own custom plugin or prevent it to run unless the key is valid? Any average programmer, can edit my code, and remove the check license routine. What are the best practices for implemeting license validation?
Kind regards,
JKepler
Forum: Plugins
In reply to: [Accept Stripe Payments] Possible improvementHi
Thanks for the link. Yes, it’s exactly what I was looking for. It is – however – a little expensive unfortunatly. But it makes the downloads optimized in security and retrieval. Nice work.
Best regards
JKepler
Forum: Plugins
In reply to: [WooCommerce] Thank you page redirectHi
Yes – but not in this case. But, let’s forget the logic of my plugin (which works perfectly). Do you know how to retrieve the default “thank you page” url? I know how to modify it with a hook. But I admit I don’t know how to retrieve it.
Kind regards
Forum: Plugins
In reply to: [WooCommerce] Thank you page redirectHi
Here’s the logic:
Add to cart > Checkout > Email > thank you
Kind regards
JKepler
Forum: Plugins
In reply to: [WooCommerce] Thank you page redirectHi,
No, not that. I made a plugin, where after the checkout, the user is sent to a page which processes his request, and sends his product by email. I want, after that, to redirect the user to the thank you page (as in a normal product).
Kind regards,
JKepler
Forum: Developing with WordPress
In reply to: Jquery issueHi
Thanks Andrew ??
Kepler
Forum: Developing with WordPress
In reply to: Jquery issueHi
It simply says the function does not exists (like if 2 jquery libs were being loaded). Also I got a console error regarding jquery.cookie (which I’m not using – only if the default template is).
Kepler
Forum: Developing with WordPress
In reply to: Jquery issueHi
Yes, you are right. Still, if I remove my own jquery.min.js the script won’t run in the autocomplete function.
Kepler
Forum: Plugins
In reply to: [Software License Manager] License and updatesGood evening,
I’m sorry for the late reply. Maybe I was seeing the code wrongly.
As far as I understand, when we submit a query for a license we get 2 type of responses:1) Invalid license IF the license doesn’t exists: the json will have a tag ‘error_code’ equal to 60
2) The full license json, where error_code will be equal to 30, for example, if it’s expired.
Is this so? Is the error_code field allways returned – if the licence exists – with the status?
Kind regards,
Kepler
Forum: Plugins
In reply to: [Software License Manager] License and updatesHi,
Thanks for the reply. Never mind question number 2 – it’s not important.
Can you please tell me where in the code are the several responses of the API (like active, or expired, etc.) and what are the parameters received of the call response? That way I can habdle with an invalid license (block the plugin), an active (allow updates), and an expired (not block the plugin, but only the updates).
Kind regards,
Hi,
Yes I did. The proof is that if I place my validating code in the functions.php child theme, the validation is done correctly (it only allows what I want, otherwise gives a custom error message defined by me).
So with codes snippets the code is not being injected – whatever value I place in the custom field is accepted.
Kind regards
JKepler
Hi
It doesn’t…I’m doing something wrong… Can you help me please with an example?
NOTE: If I place the code in function.php of the child template it works. With a code snippet plugin it doesn’t. So I must be placing the wrong code/hook
Kind regards
JKepler
- This reply was modified 6 years, 10 months ago by jkepler.
Thanks for the reply. One question if I may: if I use “My Custom Functions” plugin, and add my code there, will it work right?
Kind regards
JKepler