Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    help question override \includes\modules\pages\shopping_cart\header.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

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: override C:\UniServer\www\includes\modules\pages\shopping_cart\header.php.php??

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

  3. #3
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    Default Re: override C:\UniServer\www\includes\modules\pages\shopping_cart\header.php.php??

    Quote Originally Posted by stevesh View Post
    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

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: override C:\UniServer\www\includes\modules\pages\shopping_cart\header.php.php??

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

  5. #5
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    Default Re: override C:\UniServer\www\includes\modules\pages\shopping_cart\header.php.php??

    Quote Originally Posted by kobra View Post
    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

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: override C:\UniServer\www\includes\modules\pages\shopping_cart\header.php.php??

    What do you have set in
    admin > config > layout settings > CSS Buttons
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    Default Re: override C:\UniServer\www\includes\modules\pages\shopping_cart\header.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.p...-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

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,893
    Plugin Contributions
    96

    Default Re: override C:\UniServer\www\includes\modules\pages\shopping_cart\header.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.

 

 

Similar Threads

  1. v139h Can I override the /includes/modules/pages/shopping_cart/header_php.php ?
    By devyani in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Mar 2013, 10:59 PM
  2. v151 Stumped Override for includes / languages/ CUSTOM / header.php
    By ChadAustin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jan 2013, 07:39 PM
  3. Replies: 3
    Last Post: 15 Oct 2012, 02:03 PM
  4. how to override includes > modules > pages > page_folder > header_php.php
    By monkeytown in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Feb 2008, 05:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg