Hi again,
Now, I was thinking we fixed the original problem. But we have another error … once i add a product to the basket and click on view basket is empty!
And if you login as admin and repeat the process, the product is visible on the basket!
That’s mean only logged in users can see what in the basket, and not anyone else. Please visit this link here https://www.aircargoweek.com/table-reservations/
Try and add a product into the basket and click view basket …
I look forward to hearing from you.
Thanks
Thanks for your advice.
Tried several times but it doesn’t work from the style.css
So, I instead put all my css in theme panel / custom code /custom css
Seems to be working okay now.
Thanks again!
Hi Simion,
Thanks, we were able to solve the issue.
One last question. We’ve updated the newspaper theme Version: 9.0.1 and we installed a child theme Newspaper 7 Child themeVersion: 7.7c
The child theme is active. The style.css sheet is not loading… tried to add some css but it doesn’t load! Also the code below is from the functions.php located in the child theme;
*/
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’, 1001);
function theme_enqueue_styles() {
wp_enqueue_style(‘td-theme’, get_template_directory_uri() . ‘/style.css’, ”, TD_THEME_VERSION, ‘all’ );
wp_enqueue_style(‘td-theme-child’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘td-theme’), TD_THEME_VERSION . ‘c’, ‘all’ );
}
How can we make the child theme style sheet load properly ??
Thanks
I also checked the woocommerce folder / templates /and i can see the single-product.php and archive-product.php
But we get 502 Bad Gateway
Hi and thanks for your help.
I deleted the woocommerce.php file from theme directory … now i get this error when i want to click on the single product.
error :
502 Bad Gateway
Yes this file exist in main theme folder. Also there is a folder with the same name.
Code below in the file ; please copy the code and check line 61
<?php
/* —————————————————————————-
the page template
*/
td_global::$current_template = ‘woocommerce’;
get_header();
// test fork radu test 1
//set the template id, used to get the template specific settings
$template_id = ‘woo’;
$loop_sidebar_position = td_util::get_option(‘tds_’ . $template_id . ‘_sidebar_pos’); //sidebar right is default (empty)
//read the custom single post settings – this setting overids all of them
$td_page = get_post_meta($post->ID, ‘td_page’, true);
if (!empty($td_page[‘td_sidebar_position’])) {
$loop_sidebar_position = $td_page[‘td_sidebar_position’];
}
switch ($loop_sidebar_position) {
case ‘sidebar_left’:
echo td_page_generator::wrap_start();
?>
<div class=”span4 column_container” role=”complementary” itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WPSideBar”>
<?php get_sidebar(); ?>
</div>
<div class=”span8 column_container td-no-pagination” role=”main” itemscope=”itemscope” itemprop=”mainContentOfPage” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/CreativeWork”>
<?php
woocommerce_breadcrumb();
woocommerce_content();
?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
case ‘no_sidebar’:
echo td_page_generator::wrap_start();
?>
<div class=”span12 column_container td-no-pagination” role=”main” itemscope=”itemscope” itemprop=”mainContentOfPage” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/CreativeWork”>
<?php
woocommerce_breadcrumb();
woocommerce_content();
?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
default:
echo td_page_generator::wrap_start();
?>
<div class=”span8 column_container td-no-pagination” role=”main” itemscope=”itemscope” itemprop=”mainContentOfPage” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/CreativeWork”>
<?php
woocommerce_breadcrumb();
woocommerce_content();
?>
</div>
<div class=”span4 column_container” role=”complementary” itemscope=”itemscope” itemtype=”<?php echo td_global::$http_or_https?>://schema.org/WPSideBar”>
<?php get_sidebar(); ?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
}
get_footer();
?>
Hello,
We contact our hosting and they reported the below;
PHP Fatal error: Call to undefined method td_page_generator::wrap_start() in /nas/content/live/acweek/wp-content/themes/Newspaper/woocommerce.php on line 61, referer: https://www.aircargoweek.com/basket/
Could you please help us. Thanks