X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   MAP Pricing Mod (https://forum.x-cart.com/showthread.php?t=8079)

rivermarinesupply 06-14-2004 07:50 AM

MAP Pricing Mod
 
If anyone is intrested, I have a MAP Pricing mod as seen on www.rivermarinesupply.com.

If anyone wants it, I can put it up.

Thanks,
Eduardo.

DogByteMan 06-14-2004 07:52 AM

You have to ask?????

Of course we need it. :wink:

DogByteMan 06-14-2004 08:06 AM

Woahhhhhh Eduardo....

What I see at your site will not comply with MAP policies (such as Garmin). Search engines can and will find the detailed description pages and that appears to carry the actual price. You can not have the price advertised anywhere on your site that can be accessed from search engines or sites that display your products providing a link to the detailed product page (such as froogle) or via the one click required to access yours.

Back to the drawing board... cause this one will surely get you cut off from your distributors

rivermarinesupply 06-14-2004 09:19 AM

DogByte,

If you want to contact me via AIM: Eduardo767, im sure we easily come up with a way to fix that. Infact I am positive I could. :)

Eduardo.

rivermarinesupply 06-14-2004 09:19 AM

DogByte,

If you want to contact me via AIM: Eduardo767, im sure we easily come up with a way to fix that. Infact I am positive I could. :)

Eduardo.

ctechsol 06-14-2004 10:35 AM

I do not see... sorry. Can you elaborate on what I am looking for? I'd be interested to see. Thanks in advance.

ETInteractive.com 06-14-2004 11:28 AM

I did this for a site. Price shows when its added to the cart, only.

I created a new Extra Field called MAP.

set default = N and DO NOT display.

I also created a language label (lng.lbl_map_price)

"Minimum Advertised Price".

and (lng.lbl_map_price)
"Add to cart for pricing"


they just modify the products tpl files (product.tpl, products.tpl) and wherever else price is shown.

Products.tpl--
Code:

{if $products[product].param02 ne "Y"}
{if $products[product].price ne 0}
{if $products[product].list_price gt 0 and $products[product].price lt $products[product].list_price}
{math equation="100-(price/lprice)*100" price=$products[product].price lprice=$products[product].list_price format="%d" assign=discount}
<font class=MarketPrice>{$lng.lbl_market_price}: <s>
{include file="currency.tpl" value=$products[product].list_price}
</s></font>

{/if}
<font class=ProductPrice>{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].price}</font><font class=MarketPrice>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].price}</font>{if $products[product].list_price gt 0 and $products[product].price lt $products[product].list_price}, save {$discount}%{/if}{if $config.Taxes.use_vat eq "Y" and $products[product].vat gt "0"}, {$lng.lbl_including_vat} {$products[product].vat}%{/if}
{else}
<font class="RedLink">{$lng.lbl_amazing_price}</font>
{/if}
{else}

<font class="ProductPrice">{$lng.lbl_map_price}</font>


{/if}
{/if}



Product.tpl--
Code:

{if $product.param02 ne "Y"}
{if $product.price ne 0}
<font class=ProductPriceConverting>{$lng.lbl_price}:</font>
<font class=ProductDetailsTitle>{include file="currency.tpl" value=$product.price}</font><font class=MarketPrice> {include
file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.price}</font>{if
$config.Taxes.use_vat eq "Y" and $product.vat gt "0"}, {$lng.lbl_including_vat}
{$product.vat}%{/if} {else}
<font class="RedLink">{$lng.lbl_amazing_price}</font>
{/if}
{else}


{$lng.lbl_map}

{$lng.lbl_map_price}
{/if}
{/if}


DogByteMan 08-04-2004 08:15 AM

This is not working for me.... Here is my templates from version 3.4.8


products.tpl
Code:

{if $active_modules.Subscriptions ne "" and $products[product].catalogprice}
{include file="modules/Subscriptions/subscription_info_inlist.tpl"}
{else}
{if $products[product].price ne 0}
{if $products[product].list_price gt 0}
{math equation="100-(price/lprice)*100" price=$products[product].price lprice=$products[product].list_price format="%d" assign=discount}
<font class=MarketPrice>{$lng.lbl_market_price}: <s>
{include file="currency.tpl" value=$products[product].list_price}
</s></font>

{/if}
<font class=ProductPrice>{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].price}</font><font class=MarketPrice>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].price}</font>{if $products[product].list_price gt 0}, save {$discount}%{/if}{if $config.Taxes.use_vat eq "Y" and $products[product].vat gt "0"}, {$lng.lbl_including_vat} {$products[product].vat}%{/if}
{else}
<font class=ProductPrice>{$lng.lbl_enter_your_price}</font>
{/if}
{/if}
{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}


product.tpl
Code:

{*if $product.weight ne "0.00"}<tr><td width=30%>{$lng.lbl_weight}</td><td nowrap>{$product.weight} {$config.General.weight_symbol}</td></tr>{/if*}
{if $active_modules.Extra_Fields ne ""}
{include file="modules/Extra_Fields/product.tpl"}
{/if}
{if $active_modules.Subscriptions ne "" and $subscription}
{include file="modules/Subscriptions/subscription_info.tpl"}
{else}
<tr><td>
</td></tr>
<tr><td class=ProductPriceConverting>{$lng.lbl_price}:</td>
<td>
{if $product.price ne 0}


<font class=ProductDetailsTitle>{include file="currency.tpl" value=$product.price}</font><font class=MarketPrice> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.price}</font>{if $config.Taxes.use_vat eq "Y" and $product.vat gt "0"}, {$lng.lbl_including_vat} {$product.vat}%{/if}
{else}
<input type=text size=7 name=price>
{/if}
</td>
</tr>
{/if}
</table>



<table border=0 width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=2>
<font class=ProductDetailsTitle>{$lng.lbl_options}</font>
</td></tr>


I just am not able to get ETInteractive.com's code to work for me.

Any help?

DogByteMan 08-04-2004 08:38 AM

A bit more info to go with the above...

I set up extra field 00 as Map and I changed line {if $product.param02 ne "Y"} to {if $product.param00 ne "Y"}

I turned the extra fields module off then on

I was able to get the code in.... It just didn't produce the map value entered into the field.

ETInteractive.com 08-04-2004 09:35 AM

Did you set up language vars?

Can you post the code you had WITH the mod in it, to view where you had it placed.

I'll try and help when I can.


All times are GMT -8. The time now is 03:29 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.