codimex
Forum Replies Created
-
You guys really rock! The snippet works as magic! I suspected
product_catshould be involved somewhere around, but couldn’t find exactly where. Thank you so much, Kris!!! Marking as happily resolved!Hi! I really doubt my form export will be useful for this case (you need the Woocommerce structure as well), but, anyway, here you go:
{"type":"form","data":{"fields":[{"id":"postdata-1","element_id":"postdata-1","form_id":"wrapper-1511347711918-1669","parent_group":"","type":"postdata","cols":"12","data_status":"draft","post_title_label":"Post Title","post_content_label":"Post Content","post_excerpt_label":"Post Excerpt","post_image_label":"Featured Image","category_label":"Category","post_tag_label":"Tags","select_author":"1","category_multiple":"0","post_tag_multiple":"0","post_type":"product","post_title":"1","post_content":"1","category":"1","post_image":"1","options":[{"label":"","value":""}],"wrapper_id":"wrapper-1511347711918-1669","product_cat":"1"}],"settings":{"pagination-header":"nav","paginationData":{"pagination-header-design":"show","pagination-header":"nav"},"formName":"Product submission","version":"1.22.1","form-border-style":"none","form-padding":"","form-border":"","fields-style":"open","validation":"on_submit","akismet-protection":"1","form-style":"default","enable-ajax":"true","autoclose":"true","submission-indicator":"show","indicator-label":"Submitting...","form-type":"default","submission-behaviour":"behaviour-thankyou","thankyou-message":"Thank you. Your post has been submitted.","submitData":{"custom-submit-text":"Submit product","custom-invalid-form-message":"Error: Your form is not valid, please fix the errors!"},"validation-inline":"1","form-expire":"no_expire","form-padding-top":"0","form-padding-right":"0","form-padding-bottom":"0","form-padding-left":"0","form-border-width":"0","form-border-radius":"0","cform-label-font-family":"Roboto","cform-label-custom-family":"","cform-label-font-size":"12","cform-label-font-weight":"bold","cform-title-font-family":"Roboto","cform-title-custom-family":"","cform-title-font-size":"45","cform-title-font-weight":"normal","cform-title-text-align":"left","cform-subtitle-font-family":"Roboto","cform-subtitle-custom-font":"","cform-subtitle-font-size":"18","cform-subtitle-font-weight":"normal","cform-subtitle-text-align":"left","cform-input-font-family":"Roboto","cform-input-custom-font":"","cform-input-font-size":"16","cform-input-font-weight":"normal","cform-radio-font-family":"Roboto","cform-radio-custom-font":"","cform-radio-font-size":"14","cform-radio-font-weight":"normal","cform-select-font-family":"Roboto","cform-select-custom-family":"","cform-select-font-size":"16","cform-select-font-weight":"normal","cform-multiselect-font-family":"Roboto","cform-multiselect-custom-font":"","cform-multiselect-font-size":"16","cform-multiselect-font-weight":"normal","cform-dropdown-font-family":"Roboto","cform-dropdown-custom-font":"","cform-dropdown-font-size":"16","cform-dropdown-font-weight":"normal","cform-calendar-font-family":"Roboto","cform-calendar-custom-font":"","cform-calendar-font-size":"13","cform-calendar-font-weight":"normal","cform-button-font-family":"Roboto","cform-button-custom-font":"","cform-button-font-size":"14","cform-button-font-weight":"500","cform-timeline-font-family":"Roboto","cform-timeline-custom-font":"","cform-timeline-font-size":"12","cform-timeline-font-weight":"normal","cform-pagination-font-family":"","cform-pagination-custom-font":"","cform-pagination-font-size":"16","cform-pagination-font-weight":"normal","payment_require_ssl":"","submission-file":"delete","store_submissions":"1","form_name":"product-submission","form_status":"publish"},"client_id":null,"integration_conditions":[],"behaviors":[{"slug":"behavior-1234-4567","label":"","autoclose-time":"5","autoclose":"true","newtab":"sametab","thankyou-message":"Thank you. Your post has been submitted.","email-thankyou-message":"","manual-thankyou-message":"","submission-behaviour":"behaviour-thankyou","redirect-url":""}],"notifications":[]},"status":"publish","version":"1.22.1"}As I said, you should probably need the WooCommerce structure to check your code snippet to include certain product categories works. I don’t think this code…
add_filter( 'forminator_field_postdata_category_list', function( $categories ){ $only_cat_ids = [ 123, 456 ]; foreach( $categories as $id => $cat ){ if( ! in_array( $cat->term_id, $only_cat_ids ) ){ unset( $categories[ $id ] ); } } return $categories; } );…is valid for product categories, just for regular post categories. If that is the case, which one would be the right syntax? Thank you!
Forum: Plugins
In reply to: [Event Booking Manager for WooCommerce] My Account critical errorWorks perfectly! Thank you! I’m seeing no error now!
Thank you for your answer. Just a few considerations:
- I’m not talking about the sunseted “qTranlsate-x”, but “qTranslate-XT”, an ongoing, up-to-date multilingual plugin project (reviving the old one) in the GitHub repository, maintained by a community of expert developers. Check it out here: https://github.com/qtranslate/qtranslate-xt A lot of major plugins in the WordPress repository already provide support for it. Please, at least, consider it, since translation is carried out natively.
- Oh, so do you mean recurring payments can’t be carried out by Woocommerce payments methods? I’ll take it into consideration, then
Thank you again and congrats for this plugin! Best regards.
Forum: Plugins
In reply to: [Booking Activities] Email notifications not translated with qTranslate-XTYes, I know. I shouted out for a WPML-support back then, as well as in my plugin review. :o) I’m happily and seamlessly using it on a different project.
Forum: Plugins
In reply to: [Booking Activities] Email notifications not translated with qTranslate-XTThank you! I’ll make tests with the information you’re providing. You’re right, I was reluctant to use Loco Translate for those strings (the ones of the “My Account” page, etc.), but I guess it’s time to contribute to your amazing plugin helping out with the repository translation ;o) (“Loco” is amazing, but, dare I say, it doesn’t promote community workflow, which is the basis of WordPress). Excellent support, as always! My love (for Booking Activities) will go on! Marking as resolved. Have a nice week!
Forum: Plugins
In reply to: [Extra Product Options Builder for WooCommerce] TranslationSame here. Can’t find those strings on Loco Translate.
Forum: Plugins
In reply to: [Booking Activities] Email notifications not translated with qTranslate-XTBTW, Woocommerce’s core emails are correctly translated and submitted to users, according to the language in which they booked their events. I had to translate a few frontend strings with Loco Translate (“Event”, “Status”, “Actions”, “You can also manage your Bookings”, etc.), but the notification translation problem persists. Thank you!
Got it fixed. By editing the database table
XXXX_newsletter_emailsvia phpMyAdmin, I looked up my newsletter id (26) and changed the values to “sent”, “157” and so on, and now it appears as sent. Thank you!Forum: Plugins
In reply to: [WC Fields Factory] WPML compatibilityOhh, the code looked promising, but unfortunately this doesn’t work for me. I see that you’ve added a specific validation for WPML (step 4), but, still, I’m getting the same default language strings in both default and supported languages, ignoring the translations.
At this point, I don’t know what else to do to make it work for me. I’ll try different options and, in case I’ll solve it, I’ll post my working solution here. On the other hand, if you come up with a different approach, I’d really appreciate any help.
Thank you for your willingness to help, Sark! Have a nice week.
Forum: Plugins
In reply to: [WC Fields Factory] WPML compatibilityLooks like the
ICL_LANGUAGE_CODEconstant is deprecated (official link here). Maybe this has something to do with the issue. Any ideas?Forum: Plugins
In reply to: [WC Fields Factory] WPML compatibilityHi. Sark! Thank you for answering. Unfortunately, I can’t share an url here, since, as I said, I’m running it in a staging site, and I don’t know if I’ll be managing this client in the future.
I’ve read the instructions here. If your plugin determines language by using their
ICL_LANGUAGE_CODEconstant (which, as a matter of fact, I don’t really know what is it), is there any way I can check on my end if this is working? Perhaps I’m facing this issue because it is a staging site (I’m not ready to go live yet).I know it’s hard to help if we don’t provide an url, but any help would be really appreciated given the circumstances. Thank you again!
Big thank you again for your answer (on a Sunday!), even extending your help to other plugins. I’m marking this as resolved with honors; also, I couldn’t ask for more help after your detailed posts!!!
WOW. JUST WOW! Thank you, thank you, thank you for taking the time to write such a detailed answer! I’m really impressed! I’ll be posting my 5-star review in a moment, after posting this.
1. First you need to figure out if your server is NGINX or Apache/Lightspeed. I told you how to figure that out. You can also ask your host about it and they will tell you.
I’ve just checked with them in their support channel. They confirm this to me (I’m translating it on-the-fly):
The main web server is Apache (version 2.4) and uses NGINX direct delivery just for caching; therefore, if you have to choose a server, choose Apache.
Does it make sense to you? Also, this post from their KB might help.
Besides, I’m on a shared server (no VPS nor dedicated one) and I do have an .htaccess file. So, assuming I’m running on Apache, should I click on “Yes” in the “Add browser caching rule for static files” option? There are a lot of warnings in that section and I’m afraid I can break anything. :”(
You should not have more than one page caching system in your site. Be that at the plugin level or at the server level.
Ok, then. I’m not installing other cache option. Nevertheless, if no other cache plugin is recommended, why is there a “third party” tab in your plugin? I’ve read many people use it together with Autoptimize. Also, what about excluding asset loading via Asset CleanUP plugin, is it recommended in combination with “Super Page Cache for Cloudflare”?
Thank you again, Saumya. I’m too newbie about everything involving the “cache-sphere”, and you’ve helped me clarifying my issues a lot.
- This reply was modified 3 years, 8 months ago by codimex. Reason: Adding more info
A quick update. I managed to get most of my issues solved by playing around with your plugin and a little bit of coding. Regarding the gift cards, I found out that that plugin autodisables and hides the option of virtual product in its product type, so I coded a scrpit that “re-virtualizes” the gift card product type as a virtual product. It works and your plugin successfully ignores it, as expected. 🙂
As for the shipping zones, I found out that I had to enter every combination of minimum amount for every country and shipping method, even though they don’t apply in the frontend.
I have one more question, which will make it the support forum. Thank you again!