gunther12
Forum Replies Created
-
Forum: Plugins
In reply to: [Download Monitor] Batch Create Downloads from ScriptWhat a strange concept! This would require me to renumber all existing versions, when I add a a new version, to have this being the topmost, active version, would it?!
Or could I use (post_id)*-1 as menu order to have the download versions sorted descending automatically?Forum: Plugins
In reply to: [Download Monitor] Batch Create Downloads from ScriptWhat do you mean with “Menu order”? How would I do that?
Forum: Plugins
In reply to: [Download Monitor] Batch Create Downloads from ScriptI’ve finally found a solution by developing an own plugin that provides a proper rest api and then creates a download version. It’s a pity that Download Monitor doesn’t offer this by itself.
But I still have one problem: when adding the Download version programmatically it always appear sorted at the second position right below the last active version. Therefore it’s not active and I still need to enter the backend to drag it up one position for it to get activated.
I cannot find out where that sort order is saved. Could you please enlighten me how to change that sort order programmatically? Thanks!
Forum: Plugins
In reply to: [Download Monitor] Batch Create Downloads from ScriptThanks, that helped. It comes though now without error, but unfortunately the parent is not being set. Transients are disabled now, when I enter the parent manually in the database the version appears in the backend.
Now it’s just about getting that parent ID being set…
- This reply was modified 1 year, 9 months ago by gunther12.
Forum: Plugins
In reply to: [Download Monitor] Batch Create Downloads from ScriptThanks, currently trying a work around, this is the current status:
I can create the download version, just the parent is 0. The post appears in the database.
Then I read the ID ($versionID) of the new download version and try to pass it to the POST endpoint in order to update the parent ID. To do so, I send this:
{ "post_parent": 63338 }
to this endpoint:
$SITE_URL/wp-json/wp/v2/posts/$versionID"
Unfortunately I get:
{ "code": "rest_post_invalid_id", "message": "Invalid post ID.", "data": { "status": 404 } }
…although the ID is set according to the database.
Any ideas?
Forum: Plugins
In reply to: [Download Monitor] Batch Create Downloads from ScriptAlso, even if I fill in the post_parent manually in the database, the Download Monitor doesn’t show the version although the whole DB row in wp_posts table is correct like the row of the version that I created from the backend.
There must be something else missing?
Forum: Plugins
In reply to: [Download Monitor] Batch Create Downloads from ScriptHmm, isn’t this a bug in the implementation of the REST API of the Download Monitor Plugin then, which should be fixed?
Forum: Plugins
In reply to: [Download Monitor] Batch Create Downloads from ScriptYeah, I had tried this also. And I also tried to pass the ID as int and not as string like this, unfortunately nothing fills the post_parent in the database.
{ "status": "publish", "parent": 63338, "title": "Download #63338 File Version", "file_path": "/var/www/.....", "post_name": "download-63338-file-version" }
Forum: Plugins
In reply to: [Download Monitor] Batch Create Downloads from ScriptThanks for coming back to me, this is very valuable.
I’m already able to create a new Post version this way, it appears in the database but unfortunately, the post_parent is not set, it’s always 0 in the database and therefore the new download version doesn’t get linked.
This is the JSON that I’m submitting to the endpoint
$SITE_URL/wp-json/wp/v2/dlm_download_version
where post_parent receives the ID of the parent download post itself.{ "status": "publish", "post_parent": "63338", "title": "Download #63338 File Version", "file_path": "/var/www/......", "post_name": "download-63338-file-version" }
Any ideas, why this doesn’t work as expected? Is there a documentation of the parameters for the endpoint somewhere?
I run wordfence firewall and checked the live traffic but nothing appears when I trigger this error.
Sorry, but I’m lost what to do now. How do I get your plugin to run properly?I activated your Plugin again on my site additionally to the “old” Plugin and will leave it active for a couple of hours (it’s night in Europe now). It’s the second Paypal option (not the default one). Please try the shop on https://gwegner.de/shop/e-books/
Should you need to place an order, of course I will refund it tomorrow.
I hope we can sort this out.The last 3 days since I activated your plugin I had no sales at all because obviously my users got “not allowed” without further notice. On my tests before it had worked however, but of course, I had filled in all information as I was used to. Fortunately today one user made me aware of this issue and now I’m trying to find out whats going on.
So, if I understand you correctly, you say that paypal will only fetch the address first via the separate login window that opens but not perform the actual payment at that time. Then it comes back to Woocommerce, fills some fields with the address and then waits for the user to tick all boxes. Only then the payment will get confirmed and performed. Is that correct?
This is definitely not working here. If I click on the Paypal button without filling in the address data, the paypal window briefly opens then closes again and then I just get “Not allowed” as Error message on the checkout page.
Here is a screencast: https://www.dropbox.com/s/s253mzuzhj7l95b/Bildschirmaufnahme%202022-11-07%20um%2021.19.01.mov?dl=0
- This reply was modified 2 years ago by gunther12.
Please see my shop on LRTimelapse.com. It still uses an old, unsupported Paypal Plugin which I would like to replace. In Europe it is essential, that the user ticks some boxes, confirms it’s address etc. before (!) we fulfill the order. Only then we can accept the payment via Paypal. That’s also why we can’t use the Express checkout where Paypal provides all the data etc. It’s complicated, but unfortunately the Laws in Europe are like this.
It’s two things: Placing an order and paying. Paypal likes to mix this up but that’s not working for us.Maybe you could consider a mode where we could use your Plugin for this scenario also. For now, unfortunately I had to deactivate it.
- This reply was modified 2 years ago by gunther12.
Thank you, much appreciated!
Would you still consider, adding a way to choosing the language according to the language set in WordPress (Multi Lingual) instead of letting Paypal decide because the latter doesn’t seem to work. Thank you!