Results 1 to 9 of 9
  1. #1
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Making Text Changes to Shopping_Cart.php

    I am trying to add some text under the heading "Your Shopping Cart Contents" and if I add it to the title, I have very little control over the look of the font. I want it normal, not bold, not italic.

    I feel I should be able to add the text and the control I want to the define('TEXT_INFORMATION', but nothing shows up when I add to that spot, and if I add any more quotes, it just kind of breaks the page.

    So this is what I have now:

    define('NAVBAR_TITLE', 'The Shopping Cart');
    define('HEADING_TITLE', 'Your Shopping Cart Contents'<br/><br/>

    <font face="verdana, geneva, sans-serif" size="1" color="#444443" style="normal">

    'Ready to check out?<br /><br />

    The simplest Checkout method is obtained by clicking the <font color="#ed3a84">Go To Checkout</font> button below, and then following the prompts to continue checking out.<br /><br />

    Pay with PayPal or a credit/debit card. You don’t need a PayPal account in order to use their safe service!'<br />


    define('HEADING_TITLE_EMPTY', 'Your Shopping Cart');
    define('TEXT_INFORMATION',

    and this is the result. Suggestions?
    Attached Images Attached Images  

  2. #2
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Making Text Changes to Shopping_Cart.php

    actually this line says:

    define('TEXT_INFORMATION',' ');

  3. #3
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: Making Text Changes to Shopping_Cart.php

    Quote Originally Posted by DarkAngel View Post
    actually this line says:

    define('TEXT_INFORMATION',' ');
    Right now it looks like this, and when I add the quote as you show it, or any text, it doesn't show up or the page doesn't open:


    define('HEADING_TITLE_EMPTY', 'Your Shopping Cart');
    define('TEXT_INFORMATION',
    define('TABLE_HEADING_REMOVE', 'Remove');
    define('TABLE_HEADING_QUANTITY', 'Qty.');
    define('TABLE_HEADING_MODEL', 'Model');
    define('TABLE_HEADING_PRICE','Unit');
    define('TEXT_CART_EMPTY', 'Your Shopping Cart is empty.');
    define('SUB_TITLE_SUB_TOTAL', 'Sub-Total:');
    define('SUB_TITLE_TOTAL', 'Total:');

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

    Default Re: Making Text Changes to Shopping_Cart.php

    You can't remove a define value without leaving the single quotes. It should look like this now;

    define('TEXT_INFORMATION', ''); That's two single quotes, not a regular quotation mark.

    If you want to add text, define('TEXT_INFORMATION', 'Your Text Here');

  5. #5
    Join Date
    May 2012
    Posts
    564
    Plugin Contributions
    0

    Default Re: Making Text Changes to Shopping_Cart.php

    Quote Originally Posted by stevesh View Post
    You can't remove a define value without leaving the single quotes. It should look like this now;

    define('TEXT_INFORMATION', ''); That's two single quotes, not a regular quotation mark.

    If you want to add text, define('TEXT_INFORMATION', 'Your Text Here');
    When I add text to that spot, between the quote marks, I cannot get the page to load at all.

  6. #6
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Making Text Changes to Shopping_Cart.php

    Quote Originally Posted by traytray View Post
    Right now it looks like this, and when I add the quote as you show it, or any text, it doesn't show up or the page doesn't open:


    define('HEADING_TITLE_EMPTY', 'Your Shopping Cart');
    define('TEXT_INFORMATION',
    define('TABLE_HEADING_REMOVE', 'Remove');
    define('TABLE_HEADING_QUANTITY', 'Qty.');
    define('TABLE_HEADING_MODEL', 'Model');
    define('TABLE_HEADING_PRICE','Unit');
    define('TEXT_CART_EMPTY', 'Your Shopping Cart is empty.');
    define('SUB_TITLE_SUB_TOTAL', 'Sub-Total:');
    define('SUB_TITLE_TOTAL', 'Total:');
    Hi steve,

    I do not know why her copy has the text in the file like that. I have also sent her a copy of what my text editor sees as well as the fact that I know it does not look like that cause I had to upload a pristine copy to make it not give the blank page loading (which is caused by the file if she uploads it again that way).

    I personally have entered her text that right now is in the header title section of the page ----I have entered it, changed it to something totally different and saved it then uploaded it to the server to no avail.

    I know that it should appear when entered there cause it is the same file I too used in my own store but not her store...IT refuses to be seen on her shopping cart page.

    Any ideas why it would be prevented from being seen?

    I will look through the stylesheet to see if there is something there set to not display that section but I don't think so, please let me know what you think.

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

    Default Re: Making Text Changes to Shopping_Cart.php

    Quote Originally Posted by traytray View Post
    When I add text to that spot, between the quote marks, I cannot get the page to load at all.
    If you mean you're seeing a blank page, check your /logs or /cache folder for error log files.

  8. #8
    Join Date
    Apr 2014
    Location
    United Kingdom
    Posts
    10
    Plugin Contributions
    0

    Default Re: Making Text Changes to Shopping_Cart.php

    Quote Originally Posted by traytray View Post
    When I add text to that spot, between the quote marks, I cannot get the page to load at all.
    I had the exact same problem. Wouldn't let me add text between the quote marks at define('TEXT_INFORMATION', '') However I think I know what the issue is and it now works for me, basically DO NOT use apostrophes in the text so change the words e.g don't to do not etc.

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Making Text Changes to Shopping_Cart.php

    Yes, unescaped apostrophes will kill a page. You can use apostrophes in a define if you escape them with a backslash \, like don\'t.

 

 

Similar Threads

  1. v154 Docs index, includes/classes/shopping_cart.php, and CHANGES-714
    By llynix in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 12 Jan 2015, 08:32 PM
  2. v151 Making Changes in Email_extras.php
    By archers in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Oct 2013, 03:42 AM
  3. v139h Get text Attribute from within shopping_cart.php
    By maxell6230 in forum General Questions
    Replies: 2
    Last Post: 25 Apr 2012, 11:07 PM
  4. What did you put in your shopping_cart.php for text?
    By gemiller in forum General Questions
    Replies: 1
    Last Post: 16 Mar 2010, 07:56 PM
  5. Can't replace the default text in shopping_cart.php
    By noelsaw in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Sep 2009, 05:37 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR