In the quest for an accessible Actinic site I've discovered why most have the default image buttons in the shopping cart: hacking around with perl scripts. Ugh. Anyway here's how to change them to input submits.
Go to the design library and edit all the shopping cart buttons to input type="submit". The alt attribute becomes value.
Open your site's CartManager.pl and locate the following code
Remove the .x from each string.
Upload.
Now you can style your buttons more or less sitewide properly with CSS, and they'll scale when users choose a different font size. If you want image buttons back, use CSS to do it.
Disclaimer: I'm a perl and cgi noob. This technique is probably fundamentally flawed, but I think it fits with the whole Actinic ethos
Go to the design library and edit all the shopping cart buttons to input type="submit". The alt attribute becomes value.
Open your site's CartManager.pl and locate the following code
Code:
if(!defined $::g_InputHash{"ACTION"}) { if(defined $::g_InputHash{"ACTION_UPDATE.x"}) { $::g_InputHash{"ACTION"} = $::g_sUpdateCartLabel; } elsif(defined $::g_InputHash{"ACTION_SAVE.x"}) { $::g_InputHash{"ACTION"} = $::g_sSaveShoppingListLabel; } elsif(defined $::g_InputHash{"ACTION_GET.x"}) { $::g_InputHash{"ACTION"} = $::g_sGetShoppingListLabel; } elsif(defined $::g_InputHash{"ACTION_BUYNOW.x"}) { $::g_InputHash{"ACTION"} = $::g_sCheckoutNowLabel; } elsif(defined $::g_InputHash{"ACTION_CONTINUE.x"}) { $::g_InputHash{"ACTION"} = $::g_sContinueShoppingLabel; } elsif(defined $::g_InputHash{"ACTION_SEND.x"}) { $::g_InputHash{"ACTION"} = $::g_sSendCouponLabel; } } }
Upload.
Now you can style your buttons more or less sitewide properly with CSS, and they'll scale when users choose a different font size. If you want image buttons back, use CSS to do it.
Disclaimer: I'm a perl and cgi noob. This technique is probably fundamentally flawed, but I think it fits with the whole Actinic ethos
Comment