Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2008
    Location
    Allen, TX
    Posts
    29
    Plugin Contributions
    0

    Default shopping_cart/header.php

    Could someone please tell me where roductsID on line 95 is defined?

  2. #2
    Join Date
    Feb 2008
    Location
    Allen, TX
    Posts
    29
    Plugin Contributions
    0

    Default Re: shopping_cart/header.php

    PHP Code:
    :ProductsID 
    What I am trying to do is to include a new attribute to the shopping cart. I have 4 attributes that list automatically on the shopping cart. I added a new one in the db but it is not showing up. So, I am trying to find where attributes are defined in the code to test what is going on.
    Last edited by tiffbrink; 25 Feb 2013 at 09:34 PM.

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: shopping_cart/header.php

    Any reason why you are looking for this?

    It's probably in /includes/modules/pages/shopping_cart/
    20 years a Zencart User

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

    Default Re: shopping_cart/header.php

    It is retrieved from the database depending on what product page you are on

  5. #5
    Join Date
    Feb 2008
    Location
    Allen, TX
    Posts
    29
    Plugin Contributions
    0

    Default Re: shopping_cart/header.php

    What I am trying to do is to include a new attribute to the shopping cart. I have 4 attributes that list automatically on the shopping cart. I added a new one in the db but it is not showing up. So, I am trying to find where attributes are defined in the code to test what is going on.

  6. #6
    Join Date
    Feb 2008
    Location
    Allen, TX
    Posts
    29
    Plugin Contributions
    0

    Default Re: shopping_cart/header.php

    Yes, that is where I got the code
    PHP Code:
    :ProductsID 
    from. I am not familiar with this colon syntax and it doesn't tell me where it is defined.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: shopping_cart/header.php

    That's a placeholder in the query, which is replaced in the next line of code where the query is run thru bindVars() for sanitization and is substituted for the properly sanitized input. The parameters passed to bindVars() will show you what each placeholder is replaced with.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v151 override \includes\modules\pages\shopping_cart\header.php.php??
    By tlyczko in forum General Questions
    Replies: 7
    Last Post: 27 Nov 2012, 06:12 PM
  2. Displaying php errors in shopping_cart.php
    By jsmuck02 in forum General Questions
    Replies: 1
    Last Post: 25 Apr 2008, 07:53 AM

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