Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2008
    Posts
    31
    Plugin Contributions
    0

    Default Price Per Item / Weight

    i dont know if im explaining this corretly in my other posts

    I have created a template, I am a web developer so Ihave no issues with changing code.

    Though I would like to know how to do the following:

    If i add a product in the admin, i set a price. Lets say the product is Sirloin Steak, at £10.00

    I have another product called Braising Steak but this time i want the price to be £10.00/Per Kg

    How would I have the system display "Per Kg" after the price, for that individual product? All i can think of is adding an extra field in the products table of the database and changing a bunch of code to allow it to work..

    Is there a quicker way?

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Price Per Item / Weight

    A bit tedious, but you can create Product-specific stylesheets in ZC (read the readme files in the CSS folder of the classic template to see how).

    Then, create a <DIV ID...> (probably in tpl_product_info_display, in the BOF PRICE element) to show a DEFINE TEXT where the text is "Per Kg".

    When done, you can experiment with CSS declarations like "display: none; " to either reveal or hide the new element, depending on the product.

    You could also try conditionals in the php " if xxxxx ", where the DEFINE is called if the product ID matches the one where the "per Kg " is needed.

    This will need hard coding of the product ids into the core code - tedious, but what can you do

 

 

Similar Threads

  1. Price per item plus per order - how?
    By one tall man in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 20 Feb 2012, 03:09 PM
  2. Per item and weight
    By wotnow in forum General Questions
    Replies: 6
    Last Post: 24 Oct 2011, 01:34 AM
  3. Weight per Item?
    By Ambitions in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 17 May 2010, 11:15 PM
  4. Price per item but selling per 5/10/15
    By farris12 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 5 Sep 2008, 05:34 PM
  5. Pricing Per Weight / Item
    By glenelkins in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 May 2008, 12:44 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