[PGtheme 1.1.0] Issue with displaying the ViewCart-Icon for Checkout

LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Fri, 2006-03-31 14:18

Hi Pedro,

found one issue - the "View Cart" Icon works only perfect for the "standard cart". With checkout enabled, the icon is not displayed. I solved it by putting the

{g->callback type="checkout.countCheckoutItems"}
            {if $block.checkout.ShowCart.total != 0}
              <a href="{g->url arg1="view=checkout.SelectProducts" arg2="itemId=`$theme.item.id`" arg3="return=`$theme.item.id`"}" 
onmouseout= "Vcart{$item.id}.src='{$imageURL}view_cart.gif'"
onmouseover= "Vcart{$item.id}.src='{$imageURL_on}view_carton.gif'"
title="{g->text one="(%d item in your cart) - " many="(%d items in your cart) - " count=$block.checkout.ShowCart.total arg1=$block.checkout.ShowCart.total}{g->text text=$theme.params.ViewCartText}">
<img id="Vcart{$item.id}" src="{$imageURL}view_cart.gif" 
alt="{g->text text='View Cart'}" title="{g->text one="(%d item in your cart) - " many="(%d items in your cart) - " count=$block.checkout.ShowCart.total arg1=$block.checkout.ShowCart.total}{g->text text=$theme.params.ViewCartText}"
class="icon"/></a>
            {/if}

again outside of the

{if ($theme.cart =='cart') || ($theme.cart =='checkout' &&  isset ($theme.permissions.checkout_purchase))}
        {if !empty($theme.params.viewCart)} ...

- if statement.

With some finetuning, I even got both carts again to harmonize - I need the ZIP download feature of the standard cart, too.

Thanks,
Lutz

Gallery version = 2.1 core 1.1.0
PHP version = 5.1.1 apache2handler
Webserver = Apache/2.2.0 (Win32) DAV/2 PHP/5.1.2 mod_ssl/2.2.0 OpenSSL/0.9.8a
Database = mysql 5.0.18-nt-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Mon, 2006-04-03 11:39
 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Mon, 2006-04-03 13:54

just patched my install according your changes - cool :)

Thanks Pedro!!!

Gallery version = 2.1 core 1.1.0
PHP version = 5.1.1 apache2handler
Webserver = Apache/2.2.0 (Win32) DAV/2 PHP/5.1.2 mod_ssl/2.2.0 OpenSSL/0.9.8a
Database = mysql 5.0.18-nt-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de