Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I have been working on the call for price contribution more specifically the call for pricing link where you click the link and the contact us page opens up and the customer can get pricing without having to type the product information. I can get everything to work, but the product information is not encluded.

 

 

It is supposed to show the product Id and so on. Instead it just shows

 

http://onlinetransmissionparts.com/catalog...id=%0D%0A%0D%0A

 

This is the code I have, Can you see what I am missing?

 

103 <tr>

104 <td class="pageHeading" valign="top"><?php echo $products_name; ?></td>

105 <td class="pageHeading" align="right" valign="top"><?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;} ?></td>

106

107 </tr>

108 </table></td>

 

Any information would be great,

Thank you,

 

Steve

Posted
I have been working on the call for price contribution more specifically the call for pricing link where you click the link and the contact us page opens up and the customer can get pricing without having to type the product information. I can get everything to work, but the product information is not encluded.

 

 

It is supposed to show the product Id and so on. Instead it just shows

 

http://onlinetransmissionparts.com/catalog...id=%0D%0A%0D%0A

 

This is the code I have, Can you see what I am missing?

 

103 <tr>

104 <td class="pageHeading" valign="top"><?php echo $products_name; ?></td>

105 <td class="pageHeading" align="right" valign="top"><?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;} ?></td>

106

107 </tr>

108 </table></td>

 

Any information would be great,

Thank you,

 

Steve

 

Any idea's? This would be a great help for the customers.

Posted
I'm not familiar with this contribution, but it seems that $listing_values does not contain the values. Where is $listing_values initialized? Is this code added to products_info.php?

 

Thank you for the reply, I will search the contribution to see if their is any mention of listing_values along with the rest of the files.

Thanks, Steve

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