View Full Version : Scripting to modify price.
Goldbergers
07-28-08, 09:58 PM
Hello,
I am attempting to figure out a solution on miva 5.5 that will allow me to have "call for price" on items that fluctuate too often to update. My reasoning was, price all items that are "Call for price" to be the same.. ie $0.01 or $1234.56 and use an If statement to replace it, however I can't seem to get this to work.
Does anyone have suggestions on where I ought to put my script, or if they think this will work? or any modules that will give me this feature (cheaply)
Thanks!
Laurence.
Goldberger's Pharmacy.
<mvt:if expr="l.settings:product:price EQ 1234.56">
call for price
<mvt:else>
&mvt:product:formatted_price;
</mvt:if>
Goldbergers
07-29-08, 02:54 PM
Cool thanks, that's just about what I had, however I can't get it to work.. tried putting the code in various places on the desired pages, and in description of the product, neither works.
Laurence.
<mvt:if expr="l.settings:product:price EQ 1234.56">
call for price
<mvt:else>
&mvt:product:formatted_price;
</mvt:if>
Bruce - PhosphorMedia
07-29-08, 06:43 PM
You need swtich to "Advanced" and then replace the standard "price" displays in the various screen templages. For example, from the Category Page, its Category Product List Layout and the advanced mode link is at the bottom of the screen. Need to do this for Product and Search as well, and if you don't remove the add to basket items for these products, you need to suppress the faked price in the checkout screens as well, which use a different price variable.
Goldbergers
07-29-08, 08:18 PM
Thanks Bruce. Seems Bizarro. I can't find that advanced mode link anywhere on any of the pages.. I recall seeing it in previous versions, but can't seem to find it now. Am I dense? Seems like Miva ought to just add "call for price" as a default option. d:
Laurence
You need swtich to "Advanced" and then replace the standard "price" displays in the various screen templages. For example, from the Category Page, its Category Product List Layout and the advanced mode link is at the bottom of the screen. Need to do this for Product and Search as well, and if you don't remove the add to basket items for these products, you need to suppress the faked price in the checkout screens as well, which use a different price variable.
Bruce - PhosphorMedia
07-29-08, 09:36 PM
RE: call for price...i understand that this appears here and in other web sites...but you kind of have to wonder...why sell *E* commerce software that requires one to CALL someone on the phone<G>.
Goldbergers
07-29-08, 09:42 PM
yeah... i know, believe me, it's hard dealing with a client who wants a static dynamic page (: but this is coming from the top.. who'd rater not pay somebody to update the price every day... kinda just wants everything static, but still using MIVA. sigh.
Laurence.
RE: call for price...i understand that this appears here and in other web sites...but you kind of have to wonder...why sell *E* commerce software that requires one to CALL someone on the phone<G>.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.