Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2006
    Posts
    5
    Plugin Contributions
    0

    Default product quantity customisation

    I need to make some change to the way the product quantity is diplayed.
    Namely rather than displaying the actual number, to display a message depending on the number: "limited stock" if product_quantity < 10; "available" otherwise.

    I have trouble finding the exact file which contains the relevant php code.

    Thank you

    Bradut

  2. #2
    Join Date
    Feb 2006
    Location
    Central Coast, NSW, Australia
    Posts
    560
    Plugin Contributions
    0

    Default Re: product quantity customisation

    Quote Originally Posted by bradut View Post
    I need to make some change to the way the product quantity is diplayed.
    Namely rather than displaying the actual number, to display a message depending on the number: "limited stock" if product_quantity < 10; "available" otherwise.

    I have trouble finding the exact file which contains the relevant php code.

    Thank you

    Bradut
    Sorry for reviving a very old thread, but it's exactly what I am trying to achieve.

    We have feeds from suppliers that might have either a qty available, or might have text such as "Available" or "7-10 Days", as examples, and we want to be able to display this information on the Qty field.

    We did get offered this snippet of code by Glenn (gjh42), but for the life of me, I could not get it to do what we want, or really know exactly (other than in tpl_product_info_display.ph) where it would go

    I have amended the actual database field (products/products_quantity) to be varchar32 instead of float, if that helps ??



    Could really do with some assistance on this.

 

 

Similar Threads

  1. Special Product (Customisation)
    By fe1lho in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 16 Sep 2010, 04:47 PM
  2. Product info customisation
    By joe3b in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 11 Jun 2010, 01:58 PM
  3. Product Listing Customisation
    By ranganathanmca in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jul 2009, 04:26 PM
  4. Product Listing Customisation
    By mattys in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Apr 2009, 08:07 AM
  5. Product customisation. Help?????
    By Nick1973 in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 6 Mar 2009, 10:43 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