orangedk
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] text on shop page not-logged in customers onlyDear Mina and Lorro,
Because your your help last was great, I hope you can help me with an issue I have with woocommerce, where the shoppage is not showing the products. This ONLY happens when wholesale customers are logged in. The code is made in the child theme archive_product.php file. I put the file in pastebin:
Thank very much in advance for your help.
Kind regards,
RonaldForum: Plugins
In reply to: [WP Store Locator] Locations in other countries not showingSorry and thanks Tijmen. That worked ??
Met vriendelijke groet
Ronald- This reply was modified 8 years, 1 month ago by orangedk.
Forum: Plugins
In reply to: [WooCommerce] text on shop page not-logged in customers onlyIT WORKS!
Thank you very much Lorro and Mina!! I don’t know why it didn’t work, but I could imagine that som empty spaces were not accepted by the system. Very nice. And thanks again!!
Kind regards,
RonaldForum: Plugins
In reply to: [WooCommerce] text on shop page not-logged in customers onlyHej Lorro
Thanks for your reply. I pasted the functions.php file in pastebin: https://pastebin.com/W5Pqfhaz. Hope I did it the right way. I just wondering. Mina wrote I should put the code in my child theme’s function.php, that’s what I did, but you wanted to have a look at the whole functions.php? Little confused (but also rather new with using codes).
Thanks a lot for the understanding and patience ??
Kind regards
RonaldForum: Plugins
In reply to: [WooCommerce] text on shop page not-logged in customers onlyThank you both, Mina and Lorro. I did what you suggested, especially with the comma’s. The website didn’t went white ?? , but I can’t see any text. It should show the ‘Additional information goes here’at the shoppage for no-wholesale customers. I can send you a screenshot if you like. Kind regards, Ronald
Forum: Plugins
In reply to: [WooCommerce] text on shop page not-logged in customers onlyHej Mina
Thanks again. Did what you suggested, inserted following in (childtheme’s) functions.php:add_action( ‘woocommerce_archive_description’, ‘pbs_woo_product_archive_additiona_details’, 20 ); function pbs_woo_product_archive_additiona_details( ){ if(! is_user_logged_in() ) { echo <div>Additional Information Goes here</div>; } }
Forum: Plugins
In reply to: [WooCommerce] text on shop page not-logged in customers onlyThanks Mina for your message, but after I put the code on my child theme’s function.php, the site went white; it said there was I error at the line with
echo “<div>Additional Information Goes here</div>”;