Jump to content

Call For Pricing


THEDert

Recommended Posts

There is no actual module, you just need to change these files ;-P

product-list.tpl
product.tpl

Also if you have any of the other module blocks you will need to change them
example edit homefeatured.tpl to remove pricing from the featured products

are you saying you want to disable all cart functionality if so you are talking about a much bigger job PM me I may be able to help you, although if you edit the tpl files this will also work for a quick hack to remove pricing manually from your template :coolgrin:

Link to comment
Share on other sites

OK the easiest solution would be if the price is 0 for the default message to be displayed instead of the price & cart would be "Call for Pricing"

If this is what you require let me know which sections you need this modification in & I will provide you with the replacement code if you have already have made your own modifications, please post them first so I can replace your code without overriding changes :P

Idealy you only need to change 2 files but if you have the extra blocks let me know which ones ;-)

Link to comment
Share on other sites

We will start with product-list.tpl let me know how you get on with this first than I will send the rest of the mods

please repace product-list with this: %-P

>
{if isset($products)}
   <!-- Products list -->
</pre>
<ul>
   {foreach from=$products item=product name=products}



{if $product.new == 1}{l s='new'}{/if}{$product.name|truncate:35}

{$product.description_short|strip_tags|truncate:360}


               {if $product.on_sale}
{l s='On sale!'}
               {elseif $product.reduction_price != 0 || $product.reduction_percent != 0}
{l s='Price lowered!'}
               {/if}

               {if $product.price != 0}{convertPrice price=$product.price}{/if}
               {if $product.price == 0}Call for Pricing{/if}                
               {if $product.price != 0}{if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if}{/if}

           {if $product.price != 0}                   
               {if ($product.allow_oosp OR $product.quantity > 0)}
{l s='Add to cart'}
               {else}
{l s='Add to cart'}
               {/if}
           {/if}    
{l s='View'}




   {/foreach}
</ul>
<br>   <!-- /Products list --><br>{/if

Link to comment
Share on other sites

This one is even easier :cheese:
product.tpl

Just add in the following 2 lines after <!-- add to cart form --> around line 108

{if $product->price == 0}Call for Pricing!{/if} 
{if $product->price != 0}



then your form code remains the same <form id="buy_block" ..........
after the form tag closes on the next line add:

{/if}

Link to comment
Share on other sites

  • 1 year later...
  • 3 years later...
  • 1 year later...
  • 8 months later...
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...