Results 1 to 4 of 4

Thread: Shortcode for price

  1. #1
    Thread Starter
    imageworksltd's Avatar
    Join Date
    Mar 2013
    Location
    United Kingdom
    Posts
    273
    Thanks
    1
    Thanked 37 Times in 36 Posts

    Shortcode for price

    I'm trying to create a function so that I can use a shortcode to pull in the price of an item. I have the following so far but it isn't working.

    I feel I'm close because the result is always £0 - so if anyone could help that would be greatly appreciated.

    PHP Code:
    function get_cp_price() {
        
    cp_get_price$post->ID'cp_price' );
    }
    add_shortcode'itemprice''get_cp_price' ); 

  2. #2
    Thread Starter
    imageworksltd's Avatar
    Join Date
    Mar 2013
    Location
    United Kingdom
    Posts
    273
    Thanks
    1
    Thanked 37 Times in 36 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    imageworksltd's Avatar
    Join Date
    Mar 2013
    Location
    United Kingdom
    Posts
    273
    Thanks
    1
    Thanked 37 Times in 36 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,497
    Thanks
    75
    Thanked 553 Times in 502 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Shortcode within
    By amirgulamali in forum Help Using ClassiPress
    Replies: 4
    Last Post: July 1st, 2016, 05:21 AM
  2. Dimitris Vantage Shortcode
    By adunoon in forum Help Using Vantage (Legacy)
    Replies: 2
    Last Post: November 21st, 2013, 11:09 PM
  3. [SOLVED] use shortcode possible?
    By zappingjean in forum Clipper General Discussion
    Replies: 4
    Last Post: April 25th, 2013, 10:01 PM
  4. Map working with php but not with shortcode
    By allthedeals in forum Mapsupreme
    Replies: 2
    Last Post: January 16th, 2013, 11:55 PM
  5. Shortcode
    By frcamp in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: February 17th, 2011, 03:52 PM