Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

MAP Pricing Mod

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 06-14-2004, 07:50 AM
 
rivermarinesupply rivermarinesupply is offline
 

Advanced Member
  
Join Date: Nov 2003
Posts: 65
 

Default 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.
Reply With Quote
  #2  
Old 06-14-2004, 07:52 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

You have to ask?????

Of course we need it.
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #3  
Old 06-14-2004, 08:06 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

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
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #4  
Old 06-14-2004, 09:19 AM
 
rivermarinesupply rivermarinesupply is offline
 

Advanced Member
  
Join Date: Nov 2003
Posts: 65
 

Default

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.
Reply With Quote
  #5  
Old 06-14-2004, 09:19 AM
 
rivermarinesupply rivermarinesupply is offline
 

Advanced Member
  
Join Date: Nov 2003
Posts: 65
 

Default

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.
Reply With Quote
  #6  
Old 06-14-2004, 10:35 AM
 
ctechsol ctechsol is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: New Jersey, USA
Posts: 73
 

Default

I do not see... sorry. Can you elaborate on what I am looking for? I'd be interested to see. Thanks in advance.
Reply With Quote
  #7  
Old 06-14-2004, 11:28 AM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

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}
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
  #8  
Old 08-04-2004, 08:15 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

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?
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #9  
Old 08-04-2004, 08:38 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

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.
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #10  
Old 08-04-2004, 09:35 AM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

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.
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:20 PM.

   

 
X-Cart forums © 2001-2020