PDA

View Full Version : Displaying "competitive" price


pbrodsky
10-18-06, 06:04 PM
I'm sorry if this post shows up twice. I had an error when posting the first time and don't know if it will show up later.

We are moving are site to Miva v5. On our current site, we use Price Wizard Pro to display a "Sold Elsewhere" price with a strikethu font and different color than our price.

How can I get that same functionality in MM5? We don't use the COST field so the data (competitors price) can be stored there. I just don't know how to get the data to display along with the correct label.

Thanks,
Paul

pbrodsky
10-18-06, 06:11 PM
I just came across this page and in an ideal world, I would like to be able to do something like this as well with the pricing information.

http://mivacentral.com/Merchant2/merchant.mv?store_code=m&screen=PROD&product_code=STL-MYFAVORITES

Vic - WolfPaw Computers
10-18-06, 06:27 PM
Add the competitors price in the Cost field.

Edit your PROD Page and click on Product Display Layout in the tabs on the upper right. Make sure you are in Advanced mode.

Edit the template to include the cost field and label you wish to display.


I'm sorry if this post shows up twice. I had an error when posting the first time and don't know if it will show up later.

We are moving are site to Miva v5. On our current site, we use Price Wizard Pro to display a "Sold Elsewhere" price with a strikethu font and different color than our price.

How can I get that same functionality in MM5? We don't use the COST field so the data (competitors price) can be stored there. I just don't know how to get the data to display along with the correct label.

Thanks,
Paul

pbrodsky
10-18-06, 08:21 PM
Thanks Vic. Do you know where I can find a good reference on the proper syntax for referencing field names? I looked at the Miva Documentation and either just looked over it, or couldn't find it.

Thanks,
Paul

Vic - WolfPaw Computers
10-18-06, 08:36 PM
You're best bet is to download and install LATU.net's Store Helper module.

It will expose all the variable and tokens available on any screen the component is assigned to.

pbrodsky
10-18-06, 09:29 PM
Thanks, I will do that now. In the mean time, I just guess at the field name and guess right (makes sense that 'cost' would be named 'cost'). It worked great.

However, I than wanted to take it to the next level and make sure it only shows up when there is something in there since I don't have competitive prices for everything. Here is the IF statement I used.

<mvt:if expr="l.settings:product:formatted_cost GT 0">
Sold Elsewhere:<s><b>&mvt:product:formatted_cost;</b></s><br>
</mvt:if>


That seemed to kill it though and it no longer shows up. I've tried many variations of this but haven't gotten it to work.

Paul

Vic - WolfPaw Computers
10-18-06, 09:36 PM
PLease do not use smiles when posting code, or use the # icon in the edit toolbar to surround your code with the code tag. Makes it easier to read.

You are using 'formatted_cost' which is a string, not a number.

Try:

<mvt:if expr="NOT ISNULL l.settingsroduct:formatted_cost">

pbrodsky
10-19-06, 05:21 AM
Vic,

Sorry about the smiles, I had just cut and past the code and the forum using the quick reply and software converted to that. Hopefully this one will look better.

Thanks. I had tried a variation of that without success. Your code suggestion didn't quite get me there but your comment that "formatted_cost" is a string turned the lightbulb on. Here is what I ended up with with:

<mvt:if expr="l.settings.product:cost GT 0">