I think I’m goinf to finish the web site soon.
1 last thing still I still need to solve.
For some reason I promised my client to change on the top cart the code so instead of displaying the sum of the purchaces, I display there the number of items of the cart.
The problem is that each time I make a purchase – the number updates to “1″ and only after refresh I get the right number of items in the shopping cart.
http://80.179.140.91/~sivan2/products-page/%D7%AA%D7%99%D7%A7%D7%99%D7%9D-%D7%95%D7%90%D7%A8%D7%A0%D7%A7%D7%99%D7%9D/
So the code goes like that –
I did found in the function where this code updates –
function shoppica_update_cart(){
if ( ($_REQUEST['wpsc_ajax_action'] == ‘add_to_cart’) && $_REQUEST['ajax'] == TRUE ) {
$totalprice = wpsc_cart_total_widget();
$totalcount = wpsc_cart_item_count();
$product = get_post( $_REQUEST['product_id'] );
$thumb = wpsc_the_product_thumbnail(100,100, $_REQUEST['product_id']);
?>
jQuery(‘#checkout_total’).html(“”);
But I cannot get it to work.
I don’t understand enough all this code and I did try for many hours all the variations I could think of.
Do you think you can help me without too much work on your hand?
I think you have my pass and username…
Thanks!!!!
Guy
|
|
Hello,
The problems is in your WP E-commerce version. We are still not able to fix all bugs with 3.8.11. The way is to switch back to WP E-commerce 3.8.9.
Also this code will be change with next theme update which we are preparing for 3.8.11
Best,
ThemeBurn team
|
|