Contributions
Call For Pricing / Negotiable Pricing
This is a Mod to display the word "Call For Pricing" when the price is set to $0, this is useful for people who wishes the clients to call the store owner if they have a negotiable item(s).
You can also change the word "Call For Pricing" to anything you wish, you might also want to set a variable in language so that it can be dynamic.
Paul
Expand All / Collapse All
Preciso que em vez de aparecer valor R$ 0,00 apareca PREÇO SOB CONSULTA
Preciso que em vez de aparecer valor R$ 0,00 apareca PREÇO SOB CONSULTA
Salutations,
EXCELLENT code initial.
Merci à Paul Barrera.
Je me suis permis de modifier son code sur la mise en relation pré-remplie.
Voici la version que j'utilise :
---------
<a href="' . tep_href_link(FILENAME_CONTACT_US, 'enquiry=Bonjour,%0D%0A%0D%0AJe serais intéressé par : ' . $product_info['products_name'] . ' (' . $product_info['products_model'] .')%0D%0ASitué à l'adresse : ' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_id .'%0D%0A%0D%0AMa proposition / question est :%0D%0A') . '') . '">Echange</a>
---------
Il suffit de remplacer <a href=contact_us.php>call for pricing</a> par le code ci-dessus, sur toutes les pages faisant référence à ce mot-clef (call for pricing).
Voici ce que cela donne sur notre site : http://destock.wda-fr.org
Merci encore,
Mathieu CHARREYRE
HTTP://www.wda-fr.org
Note: Le .zip contient le même fichier.
Extension if you use featured products
Based on version 1.5.
This is a helpfile for the people who use featured products, to implement "call for pricing" in the featured_product box and site.
greetings
SCHATT / Ralf Schattmaier
Whoops! Missed a step in the fix for use with STS. Use this file.
Bug Fix for catalog/includes/modules/new_products.php
Line 34
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>'.TEXT_CALL_FOR_PRICE);
was missing a '.' before TEXT_CALL_FOR_PRICE
Plus
Additional step for price display on product_info.php for catalogs with Simple Template System (STS) 3.00 Beta
CORRECTED VERSION......
I noticed that when I click on the call for pricing link, I sometimes forget what product it was and had to go back to see the details. Here is the code to replace the A tag so it will produce a Contact form with the complete details of the product plus thew URL, I think this is a necessary@function to include.
--------
<a href="' . tep_href_link(FILENAME_CONTACT_US, 'enquiry=Price Inquiry%0D%0A%0D%0AProduct Id: ' . $listing_values['products_id'] . '%0D%0AProduct Name: ' . $listing_values['products_name'] . '%0D%0AProduct Url: ' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id'] .'%0D%0A%0D%0A') . '') . '">Call For Price</a>
---------
Just replace the <a href=>call for pricing</a> with the code above in "product_listing.php" or "product_listing_col.php" for columned display, you will also need to play around the corresponding files regarding the code variables, for heavily modified carts, you may need to play around with the code to get it right, I never ran into any problem installing this.
You can see a demo of this function I made through this link below.
http://www.sheero.com/demos/catalog/index.php?cPath=1_8
I hope it helps,
Paul
note: same content only on the zip file
add on |
Paul Barrera |
2 Jul 2005 |
|
I noticed that when I click on the call for pricing link, I sometimes forget what product it was and had to go back to see the details. Here is the code to replace the A tag so it will produce a Contact form with the complete details of the product plus thew URL, I think this is a necessary@function to include.
--------
<a href="' . tep_href_link(FILENAME_CONTACT_US, 'enquiry=Price Inquiry%0D%0A%0D%0AProduct Id: ' . $listing_values['products_id'] . '%0D%0AProduct Name: ' . $listing_values['products_name'] . '%0D%0AProduct Url: ' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id'] .'%0D%0A%0D%0A') . '') . '">Call For Price</a>
---------
Just replace the <a href=>call for pricing</a> with the code above, for heavily modified carts, you may need to play around with the code to get it right, I never ran into any problem installing this.
You can see a demo of this function I made through this link below.
http://www.sheero.com/demos/catalog/index.php?cPath=1_8
I hope it helps,
Paul
note: same content only on the zip file
Includes some Bugfix for the catalog/products_new.php file. Now "call for price" will be correctly shown at the NEW PRODUCTS section.
Gentlemen
I took me a little while to realize that you had the syntax for your argument wrong on the step#3
catalog/includes/modules/new_products.php file
I just attached the corrected file to make it easier on all. Would be good idea to make changes to files and upload the files rather than a text list to make it easier on non-programmers.
New functions in this Version:
- Multilingual Language Support
- Support for the contri. price-break
- German language files
The new_products.php edit "call for pricing manual edit.txt" had too many 9s in the first line of the mod in what I down loaded.
The change on about line 31 on new_products.php should read:
if ($new_products['products_price'] == 999999){
$info_box_contents[$row][$col] = array('align' => 'center',
'params' => 'class="smallText" width="33%" valign="top"',
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>Call For Pricing');
}else{
$info_box_contents[$row][$col] = array('align' => 'center',
'params' => 'class="smallText" width="33%" valign="top"',
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])));
}
This is a more complete setup for anyone needing a "call for pricing" package. I found that it (no offence to the orrigional creator) was lacking in several areas. It would not display the "call for price" under the "what's new", "reviews" or "new products" pages.
This fixes that. I am not a programmer, so this code is in no way elegant, but it is functional!!! I hope this helps anyone that needs this functionality!
Hi~
it still unable to show the call for price in the section of NEW PRODUCT.
please advise.
If you wish to do a Contact Us For Pricing, just do this I guess, replace all the word "Call For Pricing"
<a href=contact_us.php>Call For Pricing</a>
Paul
p.s.
No files added on the zip
This is a Mod to display the word "Call For Pricing" when the price is set to $0, this is useful for people who wishes the clients to call the store owner if they have a negotiable item(s).
You can also change the word "Call For Pricing" to anything you wish, you might also want to set a variable in language so that it can be dynamic.
Paul
Note: Contributions are used at own risk.