chart function is strange... correct ?

General Support for technical Issues relating to AlegroCart
Post Reply
skau
Posts: 24
Joined: Tue Jan 24, 2012 11:01 am

chart function is strange... correct ?

Post by skau » Sun Feb 05, 2012 4:29 am

Hi, running 1.2.7 version

in my template I've configured the cart module: it's ok.. tells me only how many product and how many items are in cart.. and the link to the cart... when i add a product the cart is correctly updated

Then I've configured an other cart in template (on other column) and this second one display me the product (name, with hyperlink) and how many items are in cart, and the price and EVEN the correct price in case of discount item.. and the link to the cart.. BUT IT DOES NOT UPDATE INSTANTLY, I have to refresh manually the page with f5.

Well,the second type of display is much more useful, but it appears only having an other chart on the template, and then I have the updating problem..

Any idea on how to get work only the second one ???

Thank you so much in advance
Michele- ROme

User avatar
leo
admin
Posts: 4320
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: chart function is strange... correct ?

Post by leo » Sun Feb 05, 2012 9:31 am

So, you would like to get rid of the ShowCart() function and display the mini-cart always open.

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: chart function is strange... correct ?

Post by Brent » Sun Feb 05, 2012 10:33 am

I have a question. When you added the cart in the other column, is the first cart still there?
I can only have one cart on a page. Java script that updates will only update the first one it finds.

skau
Posts: 24
Joined: Tue Jan 24, 2012 11:01 am

Re: chart function is strange... correct ?

Post by skau » Mon Feb 06, 2012 4:08 am

yess. I mean this is why the "complete" chart is not update !!

the complete chart appears only if I've configured an other chart on template !!

So, just to replicate, on template put on left column a chart module and on the right one an other chart module

Hi, Michele

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: chart function is strange... correct ?

Post by Brent » Mon Feb 06, 2012 8:51 am

I am still confused.
Are you trying to do this on the CART page.
If you add a product from a module on the cart part, on the mini cart module will update. The main cart will not.
It is created when the page is loaded only. There is so much information used to create the main cart, it is not updated except on page load.

skau
Posts: 24
Joined: Tue Jan 24, 2012 11:01 am

Re: chart function is strange... correct ?

Post by skau » Tue Feb 07, 2012 12:15 am

Hi Brent,
I've uploaded screenshots on www.megaskau.com

figure 1) in my template I've configured 2 mini-cart module

figure 2) time is zero.. no product selected, the 2 mini-chart are empty

figure 3) i've selected 1 product: the first mini-cart shows it, the second one not

figure 4) i've hit f5 to update page, and now the second mini-chart shows information much more complete then the first one

What I wish is to have only the second type of mini-chart, because it displays much more informations, but obviously updated

How can I do ??

Thank you so much
Michele

User avatar
leo
admin
Posts: 4320
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: chart function is strange... correct ?

Post by leo » Tue Feb 07, 2012 2:03 am

So, back to my question.
Would you like to display the mini-cart always open?

skau
Posts: 24
Joined: Tue Jan 24, 2012 11:01 am

Re: chart function is strange... correct ?

Post by skau » Wed Feb 08, 2012 1:36 am

yess the "full information" mini-chart

User avatar
leo
admin
Posts: 4320
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: chart function is strange... correct ?

Post by leo » Wed Feb 08, 2012 6:24 am

Ok, then in the catalog/controller/addtocart.php comment out the line

Code: Select all

$output .= '$(\'#cart_products\').hide(3500);' . "\n";
and in the catalog/template/default/module/cart.php delete

Code: Select all

$(document).ready(function(){
	$('#cart_products').hide(0);
});

skau
Posts: 24
Joined: Tue Jan 24, 2012 11:01 am

Re: chart function is strange... correct ?

Post by skau » Wed Feb 08, 2012 7:07 am

GREAT !!!!

works good

thank you soooooo much for helping me

Michele (Rome)

Post Reply