So, I have this site here http://www.taranmarlowjewelry.com , and when you first got to the site, you will notice that the upper right is empty, if you refresh the shopping cart page appears in the upper right corner.
I believe why it does not appear when you first went to the site because the cookie is not set or something like that.
If I delete the cookie name PHPSESSIDwith a value fd9lshsp92opvo9aotvoljajj0(the value changes each time you delete the cookie and create a new one), the shopping basket in the upper right corner disappears again.
The cookie doesn't seem to be true ... but then again I don't know much about cookies.
How should I set this cookie correctly?
I don’t know where it is PHPSESSIDinstalled in wordpress, so I can’t find the code for it ... but here is the code for the shopping cart, I’m not sure that it will be good.
<div style="float:right;" class="taranShoppingCart"><?php echo wpsc_shopping_cart(); ?></div>
which spits out ....
<div class="shoppingcart">
<table style="color:#F69F8E;">
<tfoot>
<tr class="cart-widget-total">
<td class="cart-widget-count" style="text-align:right; padding-right:25px; padding-bottom:5px;" colspan="3">
<a href="?page_id=15">Shopping Bag 6 item(s)</a>
</td>
</tr>
<tr>
<td style="padding-right:15px;">
<a href="?page_id=15">Hello admin</a>
</td>
<td style="padding-right:15px;">
<a href="http://www.taranmarlowjewelry.com/wp-login.php?action=logout&_wpnonce=f26aa87ea3">Logout</a>
</td>
<td>
<div class="live_search_form">
<form class="product_search" action="http://www.taranmarlowjewelry.com/?page_id=14/" method="GET" style="font-size:0px !important;">
<input id="wpsc_search_autocomplete" class="wpsc_product_search wpsc_live_search_embed .wpsc_live_search" style="padding:0px !important; height:25px !important; vertical-align:top;" autocomplete="off" name="product_search">
<script type="text/javascript">
jQuery('#wpsc_search_autocomplete').keypress( function(e){
if ( e.keyCode == 13 ) {
var url = 'http://www.taranmarlowjewelry.com/?page_id=14'+'?product_search='+jQuery(this).val();
url = encodeURI(url);
jQuery(window.location).attr('href', url);
}
});
</script>
<input id="button" class="searchBtn" type="submit" value="GO" name="button">
</form>
</div>
</td>
</tr>
</tfoot>
</table>
</div>
Any help would be greatly appreciated, thanks for your time.
Thanks J
source
share