Zen Cart Logo
Forums / General Questions / override includesmodulespagesshopping_cartheader.php.php??

override includesmodulespagesshopping_cartheader.php.php??

Views: 3,682

Results 1 to 8 of 8
27 Nov 2012, 4:19 PM
#1
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

override includesmodulespagesshopping_cartheader.php.php??

Possible to override this to make button update use CSS buttons instead of image file??
Of course, also requires shortening the excessively long ALT text...
Thank you, Tom

27 Nov 2012, 4:22 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: override includesmodulespagesshopping_cartheader.php.php??

Files in the modules/pages folder aren't overridable.

27 Nov 2012, 4:27 PM
#3
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Re: override includesmodulespagesshopping_cartheader.php.php??

stevesh:

Files in the modules/pages folder aren't overridable.

One must modify the actual file in the pages folder, then.
Can you perhaps suggest anything on how to modify it??
I will give it a try etc.
Thank you, Tom

27 Nov 2012, 4:31 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: override includesmodulespagesshopping_cartheader.php.php??

Can you perhaps suggest anything on how to modify it??
Save a copy altering the extention to .sav or something similar

27 Nov 2012, 4:32 PM
#5
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Re: override includesmodulespagesshopping_cartheader.php.php??

kobra:

Save a copy altering the extention to .sav or something similar

I know how to save a copy of the original.
I meant how to modify the $button update code to use CSS buttons rather than image files.
Thank you, Tom

27 Nov 2012, 4:35 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: override includesmodulespagesshopping_cartheader.php.php??

What do you have set in
admin > config > layout settings > CSS Buttons

27 Nov 2012, 4:48 PM
#7
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Re: override includesmodulespagesshopping_cartheader.php.php??

Has nothing to do with admin settings, which are already configured to show CSS buttons.

Please see THIS thread which explains the issue: http://www.zen-cart.com/showthread.php?50146-Using-CSS-Buttons-still-seeing-quot-Update-cart-quot-gif

THIS mod fixes things, 1st one is original, shows image, 2nd one is new, shows CSS button:

//$buttonUpdate = ((SHOW_SHOPPING_CART_UPDATE == 1 or SHOW_SHOPPING_CART_UPDATE == 3) ? zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT) : '') . zen_draw_hidden_field('products_id[]', $products[$i]['id']);
$buttonUpdate = ((SHOW_SHOPPING_CART_UPDATE == 1 or SHOW_SHOPPING_CART_UPDATE == 3) ? zen_image_submit(BUTTON_IMAGE_CHECKOUT, BUTTON_UPDATE_ALT2) : '') . zen_draw_hidden_field('products_id[]', $products[$i]['id']);

Now to find/fix the alt text for the update button...hopefully not too long, plus do some additional experimenting...

Thank you, Tom

27 Nov 2012, 5:12 PM
#8
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: override includesmodulespagesshopping_cartheader.php.php??

Look in /includes/languages/english/YOUR_TEMPLATE/button_names.php. If the file's not there, copy it from /includes/languages/english/button_names.php and make your edits in the template-override directory.