Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2011
    Location
    West Yorkshire - England
    Posts
    38
    Plugin Contributions
    1

    Default Hide product prices if item is priced by attributes (php help)

    Afternoon all

    I have a handful of products which are priced by attributes. I dont like how the default behaviour displays the products base price plus the cost of attributes on top of that.
    To work around I made the product cost £0 but then the attributes were priced fully.
    The store still shows the price on the product listing as

    Code:
    <h2 id="productPrices" class="productGeneral">
    £30.00</h2>
    I still want to display this element of the page if the product IS NOT priced by attributes

    I think I have identified where I should insert some code to do this..

    includes/templates/<mytheme>/templates/tpl_product_info_display.php

    and I think I need a php statement to say

    if product_priced_by_attribute = 1 then dont display element

    Im just unsure how to write this in php, any attempts I try just cause the rest of the page not to render.

    Does anyone know how to write what I am after?

    Feel free to look at this link for an example

    http://test.italianhampers.co.uk/ind...products_id=55

    Any help greatly appreciated.

    Regards
    Andy

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

    Default Re: Hide product prices if item is priced by attributes (php help)

    Quote Originally Posted by mi16chap View Post
    Afternoon all

    To work around I made the product cost £0 but then the attributes were priced fully.
    I'm not sure what this means. To price a product by attributes, the base price of the product should be set to 0.00.

  3. #3
    Join Date
    Oct 2011
    Location
    West Yorkshire - England
    Posts
    38
    Plugin Contributions
    1

    Default Re: Hide product prices if item is priced by attributes (php help)

    I have managed to do this without any code changes.

    1) set the products price to 0.00
    2) set the product to product is free =NO
    3) set the product is priced by attributes=NO
    4) add your attributes to your product, including additional price for each attribute

    This will then hide the master price on the product listing, and display the attribute drop down menu instead.
    All non attribute products will display their prices as normal.

 

 

Similar Threads

  1. how to hide prices in attributes listings?
    By zerocool9455 in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 25 Dec 2010, 10:08 PM
  2. Product (not) Priced by Attributes - Help!
    By guyp in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 26 Mar 2008, 03:49 PM
  3. item priced by attributes on special
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Dec 2007, 02:23 AM
  4. Priced by Attributes problem - HELP!
    By kgmmusic in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 6 Sep 2007, 05:28 PM
  5. Replies: 15
    Last Post: 9 May 2007, 04:10 PM

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