Nela
Forum Replies Created
-
Hi @afzalpansuvi, thank you for your response.
Temporarily switch to a default theme like Storefront to see if the issue is theme-specific.
Deactivate all plugins except WooCommerce and see if the products appear. If they do, reactivate each plugin one by one to identify the culprit.
I can’t do this. As I’ve said it’s a live site and my client is currently promoting a workshop (sold through WooCommerce) so it has to remain completely functional as long as the promotion is active. We can’t have potential buyers running into a broken website, and I don’t want to work on this in the middle of the night.
Since you have template overrides in your theme, ensure they are up-to-date with the latest WooCommerce version. Outdated templates can cause display issues.
I’ve literally copied the files single-product.php and content-single-product.php from Woo’s templates directory last week before editing them, and besides those pages work with no issues. There are currently no other templates in the override directory so archive-product.php should be pulled from the default templates, not my theme.
A list of any recent changes made to the site before the issue occurred.
I mean the “changes” I made to the website is literally put up the first WooCommerce product up for sale and everything that involves. The store was inactive before this.
Details of any customizations applied to WooCommerce templates.
My functions.php file (only sections referring to WooCommerce):
function templumest_textdomain() { load_child_theme_textdomain( 'templumest' ); add_theme_support('woocommerce'); remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); } add_filter ('woocommerce_add_to_cart_redirect', function( $url, $adding_to_cart ) { return wc_get_checkout_url(); }, 10, 2 ); // Change add to cart text on single product page pll_register_string('woo', 'Kupi odmah'); add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_add_to_cart_button_text_single' ); function woocommerce_add_to_cart_button_text_single() { return __(pll__('Kupi odmah'), 'woocommerce' ); } // Change add to cart text on product archives page add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_add_to_cart_button_text_archives' ); function woocommerce_add_to_cart_button_text_archives() { return __(pll__('Kupi odmah'), 'woocommerce' ); }
My single-product.php file:
<?php /** * The Template for displaying all single products * * This template can be overridden by copying it to yourtheme/woocommerce/single-product.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://woocommerce.com/document/template-structure/ * @package WooCommerce\Templates * @version 1.6.4 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } get_header( 'shop' ); ?> <?php /** * woocommerce_before_main_content hook. * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb - 20 */ remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 ); do_action( 'woocommerce_before_main_content' ); ?> <?php while ( have_posts() ) : ?> <?php the_post(); ?> <?php wc_get_template_part( 'content', 'single-product' ); ?> <?php endwhile; // end of the loop. ?> <?php /** * woocommerce_after_main_content hook. * * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content) */ do_action( 'woocommerce_after_main_content' ); ?> <?php /** * woocommerce_sidebar hook. * * @hooked woocommerce_get_sidebar - 10 */ do_action( 'woocommerce_sidebar' ); ?> <?php get_footer( 'shop' ); /* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */
My content-single-product.php file:
<?php /** * The template for displaying product content in the single-product.php template * * This template can be overridden by copying it to yourtheme/woocommerce/content-single-product.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://woocommerce.com/document/template-structure/ * @package WooCommerce\Templates * @version 3.6.0 */ defined( 'ABSPATH' ) || exit; global $product; /** * Hook: woocommerce_before_single_product. * * @hooked woocommerce_output_all_notices - 10 */ do_action( 'woocommerce_before_single_product' ); if ( post_password_required() ) { echo get_the_password_form(); // WPCS: XSS ok. return; } ?> <div id="product-<?php the_ID(); ?>" <?php wc_product_class( '', $product ); ?>> <?php echo '<h1>'.get_the_title().'</h1>'; /** * Hook: woocommerce_before_single_product_summary. * * @hooked woocommerce_show_product_sale_flash - 10 * @hooked woocommerce_show_product_images - 20 */ //do_action( 'woocommerce_before_single_product_summary' ); ?> <div class="summary entry-summary"> <?php /** * Hook: woocommerce_single_product_summary. * * @hooked woocommerce_template_single_title - 5 * @hooked woocommerce_template_single_rating - 10 * @hooked woocommerce_template_single_price - 10 * @hooked woocommerce_template_single_excerpt - 20 * @hooked woocommerce_template_single_add_to_cart - 30 * @hooked woocommerce_template_single_meta - 40 * @hooked woocommerce_template_single_sharing - 50 * @hooked WC_Structured_Data::generate_product_data() - 60 */ remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10); remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 10); remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 10); remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10); remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_meta', 10); remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 10); //do_action( 'woocommerce_single_product_summary' ); ?> </div> <?php /** * Hook: woocommerce_after_single_product_summary. * * @hooked woocommerce_output_product_data_tabs - 10 * @hooked woocommerce_upsell_display - 15 * @hooked woocommerce_output_related_products - 20 */ add_filter( 'woocommerce_product_description_heading', '__return_null' ); add_action('woocommerce_after_single_product_summary', 'woocommerce_template_single_price', 50); add_action('woocommerce_after_single_product_summary', 'woocommerce_template_single_add_to_cart', 50); do_action( 'woocommerce_after_single_product_summary' ); ?> </div> <?php do_action( 'woocommerce_after_single_product' ); ?>
Parent theme (Genesis) does not have any overrides at all.
Thank you very much for your help, J!
I thought clearing the cache manually should show the changes, but I guess not.
I added the recommended rules to the “Never cache the following pages” list.I also found these rules in the “Non-trailing slash pages” field and removed them:
([a-z0-9_\-]+)?sitemap\.xsl [a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)? sitemap(_index)?\.xml(\.gz)?
I certainly haven’t added them manually, so I don’t know where that came from.
Hi Shaylee,
I was under the impression that this official www.ads-software.com support forum is where we are able to send in our issues, and that a support representative will forward anything submitted here to a relevant department. There’s really nothing else I have to add. You can easily recreate the scenario on your end with the information I provided.I don’t need any personalized support, I would rather it be transparent and public so that other users can see it.
I’d also appreciate not marking topics “Resolved” when the issue has in fact not been resolved.
My issue persists either until the bug is fixed in the new version of the plugin, or if you state that this is now a “feature not a bug”, and HTML in translations is simply no longer allowed.
Publish quiz is on the left handside beside the name of the quiz
queeneveCould you please provide a screenshot of that?
It’s not anywhere to be seen in my quiz settings. My screen still looks exactly like the screenshot I posted earlier.
P.S. to be clear, my issue is not “resolved”. I didn’t have time to do any of the suggested troubleshooting, and my quiz still doesn’t work.
Hi, thank you for your reply.
I clear the W3 cache after each plugin update, but I’ve now purged the entire CloudFlare cache and it seems to be working again. I’ll be keeping an eye on it.Hi Sumit,
the Troubleshoot plugin has some very concerning reviews that make me wary of installing it right now when my website is getting a lot of traffic from important clients. I’ll get around to that when my website is not getting so much attention in case the plugin causes any issues.You can spot the publish button in the screenshot attached.
Which screenshot? What screen is the button located on? I don’t see any screenshot in your reply. I also don’t see the Publish button anywhere in the QSM settings.
Concerning the “How many questions per page would you like?” issue, you can easily disable it. Just head to QSM > Quizzes and Survey > Select the quiz
As I’ve said my quiz is not listed on that page. I have to find it in a roundabout way.
> Options tab > General subtab > Limit number of Questions > Add ‘0’ in the box > Save changes. That should take care of the message.
It doesn’t. This is my setting:
This is the warning, always present on the Questions tab:
The same error has been appearing on my multiple websites since the last WP core update.
These lines are present in wp-config.php:if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(FILE) . ‘/’);
require_once(ABSPATH . ‘wp-settings.php’);Forum: Plugins
In reply to: [Contact Form 7] Send action is triggered twice (version 5.7)It’s still happening in Firefox on desktop, version 108.0, troubleshoot mode (all add-ons disabled)
Chrome desktop and Firefox on mobile do not display this behavior.
inchannel, here’s the code that worked for me:
.page .qmn_btn, .page .qmn_quiz_container .qmn_btn, .page .qmn_quiz_container .btn { color: #fff !important; background: #c51f43 !important; border: none !important; }
Replace your own custom colors and add any other styles you want to override.
Paste it either into your theme CSS file, or in the “Additional CSS” setting of the customizer.Forum: Plugins
In reply to: [Gmail SMTP] Test email errorHi,
the plug-in started acting up and increased the website loading time by 30 seconds (!) – when I deactivated it, it came back to normal. I won’t be using it.Luckily, I don’t need it anyway, because the hosting company allows the mail function through without the need for SMTP.
Forum: Plugins
In reply to: [Gmail SMTP] Test email errorIt doesn’t help. It essentially says “if your website is hosted on GoDaddy, then this plugin won’t work”.
(The website is not hosted on GoDaddy, but the domain is registered on GoDaddy, and MX records are set to Google).Also, please notice it’s not the same error. My error is not “Connection refused (111)”, but “Network is unreachable (101)”. I can’t find any reference in your documentation to this specific error.
Do you confirm that this is the issue that has something to do with GoDaddy being unable to accurately point to Gmail SMTP so this method won’t work?
Forum: Fixing WordPress
In reply to: the_content(); not displaying contentOh goodness.
I suspect that the page is actually not using the template I set it to use.My original template was called front-page.php
I made another test template homepage.php and added TEST to the template name and changed some of the code.
I’ve set the static page to use the new “TEST” template.But the output doesn’t match this template at all – it matches the front-page.php still.
EDIT:
get_page_template()
function is crap, doesn’t return the correct result.I used a function someone posted here instead: https://www.ads-software.com/support/topic/show-which-template-is-being-used
This function returned
front-page.php
That confirmed my suspicions.Why does WP ignore my template setting on the static page?
Forum: Fixing WordPress
In reply to: the_content(); not displaying contentStill no content ??
Forum: Fixing WordPress
In reply to: the_content(); not displaying contentfor what page are you trying to use the template?
be aware that any page set as ‘posts page’ will not use any page templates.
It’s a static page that’s set as a homepage.
do all the other outputs, for example the html structure, appear?
Yes, everything, including the <div id=”investments”></div> appears, it’s just that the DIV is empty.
All these custom field variables and the image slider work.
Forum: Plugins
In reply to: [Event Rocket] How to display past and future events on the homepage?It worked, thank you very much!
The appearance is the same as the Main Events Page, so it looked great out of the box.Yeah it didn’t even occur to me that I should just make a new page and use it as the homepage ??
Silly me!