在我刷新页面之前,我网站上的某些内容不会显示 [英] Something on my site doesnt display until I refresh the page
问题描述
我有这个网站 http://www.taranmarlowjewelry.com/....请注意,当您第一次访问该网站时,请查看右上角....那里什么都没有,刷新页面,然后在右上角出现我的购物车.
I have this site http://www.taranmarlowjewelry.com/ ....notice when you first goto the site, look at the top right corner....there is nothing there, refresh the page and in the top right corner my shopping cart appears.
我的问题是当我第一次访问我的网站时为什么没有出现在右上角,我将如何解决这个问题......在这里寻找朝着正确方向迈出的一步.
My question is why doesnt that appear in the top right corner when I first goto my site and how would I go about fixing this issue....looking for a step in the right direction here.
谢谢,J
我什至像这样手动将cookie放入主题的functions.php文件中...
I even manually put in the cookie in my theme's functions.php file at the bottom like so...
function set_new_cookie() {
setcookie("PHPSESSID", '6a52e6037be6342014834c475b6c0637', time()+3600); /* expire in 1 hour */
}
add_action( 'init', 'set_new_cookie');
它设置了它,它没有显示任何错误,但它没有解决我的问题.
it sets it, it doesn't show any errors, but it does not solve my problem.
推荐答案
进入 wp-ecommerce/wpsc-includes/shopping_cart_functions.php 并调整这一行
Go into wp-ecommerce/wpsc-includes/shopping_cart_functions.php and adjusting this line
if ( isset( $cart ) ) {
echo wpsc_shopping_basket_internals( $cart, false, true );
}
到这里
//if ( isset( $cart ) ) {
echo wpsc_shopping_basket_internals( $cart, false, true );
//}
这篇关于在我刷新页面之前,我网站上的某些内容不会显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!