Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Location
    Adelaide, SA
    Posts
    32
    Plugin Contributions
    0

    Default Displaying product dimensions

    Hi guys.

    I gots a problem. I want to display the product dimensions on the product page but don't know how to. I have search and cannot find an answer.

    I understand how to show weight and the rest of the options but I can't find one for dimentsion.

    I have added the AustPost module to the system and don't know if this has anything to do with it.

    Any help?

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Displaying product dimensions

    Quote Originally Posted by Snype View Post
    Hi guys.

    I gots a problem. I want to display the product dimensions on the product page but don't know how to. I have search and cannot find an answer.

    I understand how to show weight and the rest of the options but I can't find one for dimentsion.

    I have added the AustPost module to the system and don't know if this has anything to do with it.

    Any help?
    Adding the AustPost module is actually giving you 90% of the *solution* to your requirement. This is on account of the fact that it is the AP module that adds the dimensions to the database tables. Without this module being installed there simply aren't any dimensions to be displayed.
    In other words, the AP module is literally the only part of zencart that even knows the existence of any product dimensions.

    What this means is that if you require the dimensions to be displayed anywhere else you will need to do some custom coding on the relevent pages.

    Doing this probably isn't going to be too difficult. You would/should have noticed that the AP module overwrites a couple of files in the /admin/ directory. If you run a diff against the original files and the AP supplied ones you will see the changes that were required to make the dimensions editable (read/write). Basically, it is just a matter of duplicating and editing the lines related to the weight display to display these additional fields.
    Use this as an example when editing any other pages where you want dimensions displayed.

    Cheers
    Rod

    ps. If you don't or can't run a diff, there is a text file included with the AP distribution file the spells out the changes that the AP module makes to these files. You can also use that as a guide on what changes need to be made to read dimension data.

    pss. Although the AP module adds these fields during installation it does NOT remove them if/when you uninstall the module. This was by design.

    .
    Last edited by RodG; 2 Oct 2008 at 10:42 AM.

  3. #3
    Join Date
    Mar 2008
    Location
    Adelaide, SA
    Posts
    32
    Plugin Contributions
    0

    Default Re: Displaying product dimensions

    Quote Originally Posted by RodG View Post
    Adding the AustPost module is actually giving you 90% of the *solution* to your requirement. This is on account of the fact that it is the AP module that adds the dimensions to the database tables. Without this module being installed there simply aren't any dimensions to be displayed.
    In other words, the AP module is literally the only part of zencart that even knows the existence of any product dimensions.

    What this means is that if you require the dimensions to be displayed anywhere else you will need to do some custom coding on the relevent pages.

    Doing this probably isn't going to be too difficult. You would/should have noticed that the AP module overwrites a couple of files in the /admin/ directory. If you run a diff against the original files and the AP supplied ones you will see the changes that were required to make the dimensions editable (read/write). Basically, it is just a matter of duplicating and editing the lines related to the weight display to display these additional fields.
    Use this as an example when editing any other pages where you want dimensions displayed.

    Cheers
    Rod

    ps. If you don't or can't run a diff, there is a text file included with the AP distribution file the spells out the changes that the AP module makes to these files. You can also use that as a guide on what changes need to be made to read dimension data.

    pss. Although the AP module adds these fields during installation it does NOT remove them if/when you uninstall the module. This was by design.

    .

    Sweet worked like a charm.

    Thanks.

 

 

Similar Threads

  1. v150 Lost Product Dimensions
    By mike_m29 in forum General Questions
    Replies: 5
    Last Post: 17 Apr 2012, 09:43 PM
  2. v150 Product Dimensions?
    By pcdesign00 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 6 Feb 2012, 08:36 PM
  3. Manual Product Dimensions
    By orien in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 26 Aug 2010, 09:12 AM
  4. Product dimensions
    By enquirer66 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 16 Apr 2008, 12:40 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