Jump to content
THEDert

Call For Pricing

Recommended Posts

Is there a module that can disable current items pricing to make it say Call For Pricing?

  • Like 1

Share this post


Link to post
Share on other sites

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:

Share this post


Link to post
Share on other sites

I just have 5 or 6 products that I want it to say call for pricing. Nothing real fancy.

Share this post


Link to post
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 ;-)

Share this post


Link to post
Share on other sites

I haven't done any changes.

Your solution is perfect. I just want a display that says call for pricing instead of displaying the $0.00 price.

You're Awesome!

Share this post


Link to post
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

Share this post


Link to post
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}

Share this post


Link to post
Share on other sites

If you need any additional mods let me know & if they are as quick as these ones no problem, otherwise if there is more work involved ie. converting prestashop to a catalogue PM me & I will see what I can come up with :coolsmile:

Share this post


Link to post
Share on other sites

One question. I though tyou were talking about the product.tpl file on the firsrt code post. I don't seem to have a product-list.tpl file.

Share this post


Link to post
Share on other sites

I started on this site before RC released and was afraid if I update it I will lose the layout and design of the current test site.

Share this post


Link to post
Share on other sites

I will look into this later for you please in the meantime PM me with your FTP details username & password etc.

Share this post


Link to post
Share on other sites

Dear Amwdesign,

Would appreciate if you can give guide to change the feature product as well. After the above change, the Price 0 is still display. How to change it to Call for price.

Thanks for help.

Share this post


Link to post
Share on other sites

I have PrestaShop 1.6. Can I replace product-list.tpl code for that you proposed?

 

Code for product.tpl works fine.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More