Options

Show Current Pricing before shopping cart?

ChibiPhotographyChibiPhotography Registered Users Posts: 30 Big grins
Hello,

What are the variable names to retreive the current pricing of a photo?

I would like to display a quick price guide next to the photos; however, I want to still be able to price these photos individually if required so I would like to pull the current pricing info rather than building a static pricelist.

Doug
store.chibiphotography.com
Doug Pearson
Chibi Photography
pix.chibiphotography.com

Comments

  • Options
    winnjewettwinnjewett Registered Users Posts: 329 Major grins
    edited July 14, 2005
    Hello,

    What are the variable names to retreive the current pricing of a photo?

    I would like to display a quick price guide next to the photos; however, I want to still be able to price these photos individually if required so I would like to pull the current pricing info rather than building a static pricelist.

    Doug
    store.chibiphotography.com
    One thing I have done is to put the following code into my header:
    <div id=r1></div>
    I then use javascript to insert the current price list into that div tag. This means that I can easily update the prices by changing my header, and not going through a very tedious process of changing every single gallery. You can see the result on my webpage:
    http://brilliantphoton.com
    Notice how the prices don't appear until the page has loaded.

    -winn
  • Options
    ChibiPhotographyChibiPhotography Registered Users Posts: 30 Big grins
    edited July 15, 2005
    better
    Thank you, this is an acceptable workaround for now. I would still rather see a native function in SM.

    I modified your code slightly to avoid showing the pricelist unless in a gallery. I found that the pricelist was showing up in the first description on my category pages and it was slightly annoying.

    1) In the javascript section put:
    [php]function smHacks(){

    if(document.getElementById('r1') != null){

    var myString = location.href;
    if (myString.indexOf("gallery")!=-1) {

    document.getElementById('r1').innerHTML = 'your price list';
    }
    }
    }[/php]
    Doug
    store.chibiphotography.com
    Doug Pearson
    Chibi Photography
    pix.chibiphotography.com
Sign In or Register to comment.