uc_cart - HELP!

Posts: 24
Joined: 10/16/2007

I have an uc_block on my site, but I want that cart always be closed, and don't show products...
Or help, how can I set by default my cart-block to be closed.. because by default it always is open!
Sorry for my English!

Posts: 24
Joined: 10/16/2007

Anybody know how can I solve my problem

Posts: 60
Joined: 09/04/2007

Perhaps you could try at admin/build/block/configure/uc_cart/0.
You may find that link at admin/store/settings/cart/edit/block.
Play around with the various settings.

Check "Hide this block by default but let individual users show it." and "Hide block if cart is empty.".

Hope that helps.

Posts: 24
Joined: 10/16/2007

No, you don't understand me.
I want that the cart-block was like on that picture below.
I mean cart ALWAYS is closed, and the users can't open it! How can I realize this???

AttachmentSize
cart.JPG4.35 KB
Posts: 115
Joined: 08/07/2007
Uber DonorBug FinderEarly adopter... addicted to alphas.Spreading the word - Ubercart for president.

You could remove the little arrow that points down, perhaps, so now one will click on it.

(This reminds me of a solution for addressing that pesky check-engine light on your car dash. Just remove the lightbulb and the annoying light will never come on.)

Posts: 4700
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

If you don't mind losing the cart icon, you can set it to be collapsed by default and set the block's title manually to "Shopping Cart". This will override the images. The contents are hidden with JS, though, so anyone browsing your site with JS off will still see the contents. The only way around that totally is to override it in your theme.

Posts: 24
Joined: 10/16/2007

Oh, I understand now how it can be realized...
You only need to find a uc_cart_block.js and here find next:
if (expanded_block == false)"
and change "false" on "true"

Then you need to find in this file next code:

/**
* Toggle the shopping cart block open and closed.
*/
function cart_toggle(uc_cart_path) {
  $('#block-cart-contents').toggle();

  isrc = $('#block-cart-title-arrow').attr('src');
  if (isrc.toLowerCase().match("up") != null) {
    $('#block-cart-title-arrow').attr('src', uc_cart_path + '/images/bullet-arrow-down.gif');
  }
  else {
    $('#block-cart-title-arrow').attr('src', uc_cart_path + '/images/bullet-arrow-up.gif');
  }
}                                                                            

And DELETE IT...

Done, I have an uc_cart-block, that user can't open! =)

Posts: 146
Joined: 11/10/2007
Bug Finder

umm... I'm using the zen theme that I modified and my cart block isn't showing the cart image or the collapsible features?

Any ideas?

--

Give and you will receive, you will be given much. Pressed Down, Shaken together, Running Over, it will spill into your lap.