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
Posts: 157
Fixed: http://gallery.menalto.com/node/33603?from=950&comments_per_page=50
http://pedrogilberto.net/g2/theme.html
http://pedrogilberto.net/g2/
Posts: 1023
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