marianitx
Forum Replies Created
-
Forum: Plugins
In reply to: [Paid Memberships Pro - Email Templates Add On (.org)] Emails formattingHi Andrew, thanks for your response. It’s really weird, actually bold text is only displayed in desktop version in PC, not in Mac, not in Android. Don’t know what it could be. And yes, it is the whole message.
Have a nice day!
I am trying with this code:
<?php if ( ! function_exists( 'see_comments_after_login' ) ) { add_filter( 'comments_template', 'see_comments_after_login', 11 ); function see_comments_after_login( $comments_template ) { return is_user_logged_in() ? $comments_template : __FILE__; } }
Should I paste it like it is here? or do I have to substitute any part of the code like “__FILE__”??
Thanks again,
María
Hi Andrew,
thanks for your quick answer. I understand what you mean, and I will do what you suggest if I’m not able to implement it my self. The only thing is that,in this post thread, I was provided with more than one code snippetand I got a bit confused. This is why, I think, the reason is not working is because I did not get yet the right code to paste. Actually, the link you just provided is for exactly the opposite to what I need: I need comments to be removed for non registered users.Thanks again!!
María
Hi Andrew, thanks for your answer.
Unfortunately I cannot open the link you are providing, as it is only visible for plus members.I created a new snippet and copied and pasted exactly same code that Kim provided. Take a look at this screenshot:
https://drive.google.com/file/d/1rPeSFcyHEoea-bQRF5bm9nZgigV8wYt1/view?usp=sharing
What am I doing wrong? When it says “if functions exists” do I have to create that function?
Thanks in advance,
María
Hi Kim,
I just installed Code Snippet plugin, created a new snippet and pasted this code:<?php if (!is_user_logged_in()) { return; }
I marked “Run everywhere”, but no changes are being displayed at all. Coments are still being visualized for non logged users.
Any clue what am I doing wrong?
Thanks again,
María
Hi Kim, thanks for your answer.
Actually, sounds great, this solution would do the trick, at least for the moment. I was following instructions and pasting the code in my coments.php file at the very top, but unfortunately I got a sintax error and the page got broken. I’m not sure what I did wrong, cause I just copy and pasted exactly this:
<?php if (!is_user_logged_in()) { return; }
Any hint?
Regards,
María
Hi Jory, thanks for your quick answer.
Sorry, but I’m new into this Custom Posts world, so I don’t really know how to do what you say. How to use relationship fields? I’m not a code person at all… Is there any intuitive way or guide that I can follow?
Cheers,
María
Hi David, thanks for your answer.
Yes, at the moment, the website is running in a test platform and you need password and user to log in. I’ll let you know once it goes live, whether the problem is resolved or not. But I was talking again to Stripe support and it looks like the issue goes in the direction you pointed out.Thanks again and have a nice day.
María
- This reply was modified 4 years ago by marianitx.
Forum: Plugins
In reply to: [WooCommerce] Products not displaying on english pageHi, anyone can help?
Forum: Plugins
In reply to: [WooCommerce] Products not displaying on english pageHi Amanda, thanks for your answer.
The link you are clicking is the one in the section in the homepage though, this one is a direct link, https://prueba.spaidart.com/store, and as I said before, the product page is displayed under this link perfectly. The problem I meant is that my current shop page gets a new permalink with polylang, adding the shortcut EN ==> https://prueba.spaidart.com/en/store, so if I go to my main navigation (clicking the hamburger menu icon) and click ‘Buy Online’ this link is not working, cause is pointing to this shop page with this new permalink (https://prueba.spaidart.com/en/store)
it is weird, cause if I go to Admin/Pages/All pages, I can’t find the shop page which is working, the one you can see now, I just have the one with the EN shortcut which can’t be displayed.
I did a workaround to make it work though. I just added a direct link to the buy online menu of the main navigation instead of a page. (if you navigate in the english version, you will see all links have the EN shortcut, except this one).However it sounds a bit confuse, I hope Im being able to explain my self.
Btw, which browser or device are you using? the layout looks broken in the link you sent before , everything is placed on the right side of the screen.
thanks again!
María
System report: (I have to solve the issue with not existing tables. The problem was only related to Multisite setups, the tables did exist, but the status report couldn’t find them. This issue has been aparently solved, I just have to update my woocommerce version)
### WordPress Environment ### Home URL: https://prueba.spaidart.com Site URL: https://prueba.spaidart.com WC Version: 3.5.0 Log Directory Writable: ? WP Version: 4.9.8 WP Multisite: ? WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.0.31 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version PHP Post Max Size: 128 MB PHP Time Limit: 60 PHP Max Input Vars: 1000 cURL Version: 7.60.0 OpenSSL/1.0.2k SUHOSIN Installed: – MySQL Version: 5.6.35-cll-lve Max Upload Size: 1 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.5.0 WC Database Prefix: wpj4_ MaxMind GeoIP Database: ? Total Database Size: 5.99MB Database Data Size: 5.58MB Database Index Size: 0.41MB wpj4_woocommerce_sessions: ? Table does not exist wpj4_woocommerce_api_keys: ? Table does not exist wpj4_woocommerce_attribute_taxonomies: ? Table does not exist wpj4_woocommerce_downloadable_product_permissions: ? Table does not exist wpj4_woocommerce_order_items: ? Table does not exist wpj4_woocommerce_order_itemmeta: Data: 0.01MB + Index: 0.01MB wpj4_woocommerce_tax_rates: ? Table does not exist wpj4_woocommerce_tax_rate_locations: ? Table does not exist wpj4_woocommerce_shipping_zones: ? Table does not exist wpj4_woocommerce_shipping_zone_locations: ? Table does not exist wpj4_woocommerce_shipping_zone_methods: ? Table does not exist wpj4_woocommerce_payment_tokens: ? Table does not exist wpj4_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB wpj4_woocommerce_log: ? Table does not exist wpj4_blogs: Data: 0.00MB + Index: 0.00MB wpj4_blog_versions: Data: 0.00MB + Index: 0.00MB wpj4_commentmeta: Data: 0.00MB + Index: 0.00MB wpj4_comments: Data: 0.00MB + Index: 0.01MB wpj4_links: Data: 0.00MB + Index: 0.00MB wpj4_ms_snippets: Data: 0.00MB + Index: 0.00MB wpj4_options: Data: 1.16MB + Index: 0.07MB wpj4_postmeta: Data: 0.44MB + Index: 0.15MB wpj4_posts: Data: 3.44MB + Index: 0.08MB wpj4_registration_log: Data: 0.00MB + Index: 0.00MB wpj4_signups: Data: 0.00MB + Index: 0.00MB wpj4_site: Data: 0.00MB + Index: 0.01MB wpj4_sitemeta: Data: 0.51MB + Index: 0.01MB wpj4_snippets: Data: 0.00MB + Index: 0.00MB wpj4_termmeta: Data: 0.00MB + Index: 0.01MB wpj4_terms: Data: 0.00MB + Index: 0.01MB wpj4_term_relationships: Data: 0.01MB + Index: 0.02MB wpj4_term_taxonomy: Data: 0.00MB + Index: 0.01MB wpj4_usermeta: Data: 0.01MB + Index: 0.01MB wpj4_users: Data: 0.00MB + Index: 0.01MB ### Post Type Counts ### attachment: 105 custom_css: 1 customize_changeset: 44 elementor_library: 6 jetpack_migration: 2 jp_img_sitemap: 1 jp_sitemap: 1 jp_sitemap_master: 1 mc4wp-form: 1 nav_menu_item: 17 page: 35 polylang_mo: 2 post: 4 product: 56 revision: 352 shop_order: 8 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (19) ### Polylang: by Frédéric Demarle – 2.3.11 Adaptive Images for WordPress: by Nevma – 0.6.64 Child Theme Configurator: by Lilaea Media – 2.3.0.4 Code Snippets: by Shea Bunge – 2.12.0 CSS Hero: by The CSS Hero Team – 3.4 Duplicate Post: by Enrico Battocchi – 3.2.2 EU Cookie Law: by Alex Moss Marco Milesi Peadig Shane Jones – 3.0.5 MailChimp for WordPress: by ibericode – 4.2.5 Packlink PRO shipping solution: by 202 ecommerce – 1.0.2 WooCommerce Weight Based Shipping: by weightbasedshipping.com – 5.2.2 Widgetkit: by YOOtheme – 2.9.20 WooCommerce Customizer: by SkyVerge – 2.6.0 – Not tested with the active version of WooCommerce WooCommerce Stripe Gateway: by WooCommerce – 4.1.12 WooCommerce Menu Cart: by Jeremiah Prummer Ewout Fernhout – 2.7.2 WooCommerce: by Automattic – 3.5.0 – 3.5.2 is available WordPress HTTPS: by Mike Ems – 3.4.0 WP Force SSL: by Kostas Vrouvas – 1.3 Gutenberg: by Gutenberg Editor Team – 4.1.1 ### Settings ### API Enabled: – Force SSL: ? Currency: EUR (€) Currency Position: right Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) ### WC Pages ### Shop base: #111 - https://prueba.spaidart.com/en/store/ Basket: #126 - https://prueba.spaidart.com/en/store/cart/ Checkout: #127 - https://prueba.spaidart.com/en/store/cart/checkout/ My account: #128 - https://prueba.spaidart.com/en/my-account/ Terms and conditions: #3 - /en/privacy-policy/ ### Theme ### Name: YOOtheme Child Version: 1.15.7.1540982591 Author URL: https://yootheme.com Child Theme: ? Parent Theme Name: YOOtheme Parent Theme Version: 1.15.7 – 1.17.0 is available Parent Theme Author URL: https://yootheme.com WooCommerce Support: ? ### Templates ### Overrides: yootheme-child/woocommerce/emails/customer-invoice.php