View Full Version : Show Current Pricing before shopping cart?
ChibiPhotography
Jul-10-2005, 12:17 AM
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
winnjewett
Jul-13-2005, 10:01 PM
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
ChibiPhotography
Jul-14-2005, 10:07 PM
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:
function smHacks(){
if(document.getElementById('r1') != null){
var myString = location.href;
if (myString.indexOf("gallery")!=-1) {
document.getElementById('r1').innerHTML = 'your price list';
}
}
}
Doug
store.chibiphotography.com
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.