Custom pricing

General ShopSite user discussion

Custom pricing

Postby dbooker24 » Thu Aug 20, 2009 10:52 am

We have agreement with some manufactures to adhere to a Minimum Advertised price which we want to show on our wensite, but we want once the item has been added to the cart to have it reflect our actual price that is generally lower then the MAP price. How can i acomplish this in shopsite?


Thanks dbooker24
dbooker24
 
Posts: 2
Joined: Thu Aug 20, 2009 10:46 am
Location: KANSAS CITY

Postby Jim » Thu Aug 20, 2009 11:02 am

You could put the MAP price as the product price and what you sell it for as the Sale price. Then create a custom product template that doesn't display the sale price (or maybe says add to cart to see our price in place of the sale price). That way they would see the regular price on the page but when it is added to the cart the sale price would be in effect.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby dbooker24 » Thu Aug 20, 2009 11:49 am

if I do that though it still loads the mark through the MAP price on the main initial product page. How do i fix that?
dbooker24
 
Posts: 2
Joined: Thu Aug 20, 2009 10:46 am
Location: KANSAS CITY

Postby Jim » Thu Aug 20, 2009 12:52 pm

Use a custom product template that has the code that displays the marked through price removed. If you are using a ShopSite provided template you could copy the part of the product template that displays the price to your local template directory and then edit that template to remove the section. You would probably then need to rename that modified template back to the initial name so that it overrides the ShopSite provided file.
Many of the ShopSite templates use an include file for the price section so you may have to do the above on an include file instead of the main product template.
Below it the include file called Product-Price. Following that I have pulled out the section of code that you would need to change. (Note this may be different for other templates)
Code: Select all
# NOTE: Quantity Pricing overrides other pricing options
# and is handled in the Product-AddToCartButton section

[-- VAR.SaleOn "no" --]

[-- IF PRODUCT.SaleOn--]
  [-- IF PRODUCT.SaleAmount --]
    [-- VAR.SaleOn "yes" --]
  [-- Else --]
    [-- VAR.SaleOn "no" --]
  [-- END_IF --]
[-- END_IF --]



# if merchant wants price displayed
[-- IF PRODUCT.DisplayPrice --]
    <br>

  [-- IF PRODUCT.VariablePrice? --]
    <b>[--STORE.Price --]:</b> [-- STORE.CurrencySymbol --]<input type=text name="[-- PRODUCT.RecordNumber --]:price" size="4" maxlength="10" value="">
  [-- ELSE --]

    [-- IF VAR.SaleOn "yes" --]
      <strike>[-- PRODUCT.Price --]</strike>
      [-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --][-- PRODUCT.SaleAmount --][-- PRODUCT.PriceStyle End --][-- PRODUCT.PriceSize End --]
      [-- IF PRODUCT.AltPrice--]
        <strike>[-- PRODUCT.AltPrice --]</strike>
        [-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --][-- PRODUCT.AltSaleAmount --][-- PRODUCT.PriceStyle End --][-- PRODUCT.PriceSize End --]
      [-- END_IF --]
      [-- STORE.OnSaleText --]

    [-- ELSE --]
# product is not on sale
      [-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --][-- PRODUCT.Price --][-- PRODUCT.PriceStyle End --][-- PRODUCT.PriceSize End --]
      [-- IF PRODUCT.AltPrice--]
        [-- PRODUCT.AltPrice --]
      [-- END_IF --]
    [-- END_IF --]
  [-- END_IF --]
[-- ELSE --] 
# merchant does not want price displayed, but is there a sale price?
  [-- IF PRODUCT.VariablePrice? --]
#don't display sale price
  [-- ELSE_IF VAR.SaleOn "yes" --]
#   display sale price, but not regular price
    [-- IF VAR.MoreInfoPage "yes" --]
# do nothing
    [-- ELSE --]
      <br>
    [-- END_IF --]

    [-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --][-- PRODUCT.SaleAmount --][-- PRODUCT.PriceStyle End --][-- PRODUCT.PriceSize End --]
    [-- IF PRODUCT.AltPrice--]
      [-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --][-- PRODUCT.AltSaleAmount --][-- PRODUCT.PriceStyle End --][-- PRODUCT.PriceSize End --]
    [-- END_IF --]
    [-- STORE.OnSaleText --]
  [-- END_IF --]

[-- END_IF --]

Code: Select all
    [-- IF VAR.SaleOn "yes" --]
      [-- PRODUCT.Price --]
      [-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --] ADD TO CART TO SEE YOUR PRICE [-- PRODUCT.PriceStyle End --][-- PRODUCT.PriceSize End --]
      [-- IF PRODUCT.AltPrice--]
        [-- PRODUCT.AltPrice --]
        [-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --]ADD TO CART TO SEE YOUR PRICE [-- PRODUCT.PriceStyle End --][-- PRODUCT.PriceSize End --]
      [-- END_IF --]
      [-- STORE.OnSaleText --]

    [-- ELSE --]
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 154 guests