Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello,

I tried to use the "call for pricing" contrib, and it works. Now I wanted to add the nifty little code Paul added to the

Contribution :

 

<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>

 

I added the code to product-info.php and on a very basic level it works ...

 

It adds the following to the enquiry field on contact_us :

Price Inquiry

 

Product Id:

Product Name:

Product Url: http://www.mywebsite.com/test/catalog/prod...hp?products_id=

 

:'(

 

Obviously it just ignores all the listingvalue-thingies, sadly i have no idea how I could use this knowledge and change the little listingvalue-thingies into something that works. :o

 

My Code:

<?php if ($product_info['products_price'] == 0){ echo '<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>'; }else{ echo $products_price;} ?>

 

 

Please help me :'(

  • 2 months later...
Posted
....

Obviously it just ignores all the listingvalue-thingies, sadly i have no idea how I could use this knowledge and change the little listingvalue-thingies into something that works. :o

 

I havnt had any luck with it either. If I find a solution, I'll post it....

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...