Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Location
    Scotland
    Posts
    55
    Plugin Contributions
    0

    Default Get attribute details for product - coding problem

    Hi - am trying to get the option_id for an attribute of a product in tpl_checkout_shipping_default.php.

    I thought the following code would do the trick:

    if ($order->products[$i]['attributes'][0]['option_id'] == [whatever]

    but it isn't working.

    notes: $i is in 'for' loop which loops through all the products; I only ever have 0 or 1 attributes per product; if I have an attribute it is always read only.

    What am I doing wrong??

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Get attribute details for product - coding problem

    READ ONLY Attributes do not get added to the Shopping Cart so they are not added to the Order ...

    They are just for display purposes on the product _info page as a READ ONLY or information line ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Oct 2006
    Location
    Scotland
    Posts
    55
    Plugin Contributions
    0

    Default Re: Get attribute details for product - coding problem

    Thanks Ajeh - thought that may be the cause.
    Have now executed a SQL stmt and it's all working fine.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Get attribute details for product - coding problem

    Thanks for the update and glad you were able to straighten this out ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. need coding help for google search attribute availability
    By snowsports in forum General Questions
    Replies: 1
    Last Post: 7 Nov 2011, 08:02 PM
  2. Problem adding text field attribute for product.
    By bluesky1992 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 4 Nov 2011, 10:36 PM
  3. how to get details button for product details
    By tparvaiz in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Aug 2011, 03:18 PM
  4. How to get rid of ' ... details ' in product list all view
    By acetate in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 May 2007, 10:40 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