maps1990
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Changing “user role” after having generated API keysHi there,
Any clue?
Thanks!
MForum: Plugins
In reply to: [WooCommerce] Changing “user role” after having generated API keysDear Woocommerce devs
A related question pops to my mind : can the Woocommerce Rest API system handle non-standard users roles created by third party plugins?
Say you create a new user profile that only allows to change product prices, nothing more, nothing less. Would the Woocommerce API keys created for this non-standard user role reflect the permissions that have been granted?Forum: Plugins
In reply to: [WooCommerce] Changing “user role” after having generated API keysHi,
Thanks for your reply!
About doing a test: unfortunately I know absolutely nothing about APIs, and as much as I would enjoy gaining enough knowledge to be able to make the test, I can’t afford it right now time-wise.
Let’s see if somebody can confirm!
Hi Stuart,
Thanks a lot for your reply.
About creating one specific key per user : I came to the same conclusion (for the same reason).
About the type of user to select (Client, Admin, etc), if it helps other readers: after having been confronted to the need of creating another API key for another third party, who needed Read AND Write accesses, I felt that the default user roles (Admin, Shop Manager, etc) would inevitably give too many rights compared to what was needed, and I got aware that several plugins enable you to create new user profiles, so that you can give only the rights you need to give (e.g. “change an order status”, or “add a product”, etc).
Hope this helps too.
Cheers
Hi Robert,
I see that the page your linked says the following (see part in bold):
Special Product Attributes
These attributes cannot be used with the “Content Attributes” listed above, as they will likely cause a conflict and not display. You should only use one of the following special attributes.
– best_selling – Will display your best selling products. Must be set to true.
– on_sale – Will display your on-sale products. Must be set to true.
Does this explain why your proposed solution is not working or does this sentence only apply to particular cases?
Cheers,
M
Hi Robert,
I hope you are well. The past months have been hectic and I couldn’t come back to this topic before now.
First of all thanks again for helping me on this.
I copy pasted the shortcode in a text block and it does display products, although some of them are on sale.Any idea of the possible reason?
Forum: Plugins
In reply to: [Coupon Generator for WooCommerce] Customizing coupon codesHi Robert & Jeroen,
I see Robert’s code as well as some other, possibly newer code aimed at adding a prefix, in the GitHub link Jeroen gave.
Can one of you please explain where to put this code in order to customize coupons? In woocommerce-coupon-generator.php maybe?
Since you seem to have succeeded, any further advice to people like me with little experience and willing to add prefixes, would be very much appreciated.
Thank you to the both of you!
Maps
Forum: Plugins
In reply to: [WooCommerce] HTML blocks in products Short Description: layout errorsOh my bad, I indeed use Woodmart but I thought they were a standard feature of Woocommerce. Thank you!
Hi Robert,
I started writing a reply thanking you (so much!) and saying I would come back to you after the Christmas period, but I figured it was maybe useless to just write to say that, so I didn’t post. Seems I was wrong!
I haven’t fully tested your solution yet because I had finally implemented the one I said I wanted to avoid (marking items individually with tags), but I’ll try it more thoroughly after 24th December and come back to you. (I had taken a bit of time to try it at the time you posted but it didn’t work and I couldn’t afford to spend more time on it at that time, I want to dig deeper in that direction though and give you feedback during the winter break).
Cheers,
M
- This reply was modified 5 years, 5 months ago by maps1990.
Forum: Plugins
In reply to: [WooCommerce] HTML blocks in products Short Description: layout errorsNo one?
Yep my mistake I meant PO.
I had read the linked page at the time, but this time I figured it was unnecessary since you gave me straightforward indications.
Similarly, at this point I’m not sure why I needed to make modifications only on the Woocommerce front (and not on the only other custom PO file I have, which is the Theme) but since things seem to be working and I have a busy week I’m good with this.
Thank you for the support
Oh one last thing: my initial request was about the Woocommerce POT file, can I add the same code to my theme POT file to obtain the same result?
(weirdly enough it doesn’t seem necessary though, the PO file is as old as the woocommerce one, but as per the test I just did, syncing only adds source strings, no translations)
- This reply was modified 5 years, 7 months ago by maps1990.
Tim,
Ok thanks for these final elements, I added \n to the line before the last one like in your example.
Best,
M
Hi Tim,
Ok so I found these 2 files
wp-content/languages/plugins/woocommerce-fr_FR.po
wp-content/languages/loco/plugins/woocommerce-fr_FR.poI go to the second one and add X-Loco-Template-Mode: POT to the header like in the linked pic?
No need to add the quotation marks?Edit: I just did and it didn’t work, so I added the ” and it did work the second time. As I’m rather inexperienced regarding this can you please confirm what I did is correct, meaning: 1/ the choice of file, 2/ adding the “, and 3/ the location I chose to add this text in the file?
Thank you,
M
Hi Tim,
It seems the bug is back: I just synced and the translations were synced too.
Could you please look into it?
Thank you,
M