Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

offer price


nouck

Recommended Posts

I just installed the lastest offer price.

 

I can't get the link or the image to show up in the product_info.php file.

 

Maybe I don't quite get the instruction... I know it is my end.

 

Do you know what is wrong? No error, just no link for offer price in the info product page.

Link to comment
Share on other sites

Be sure you placed in the product name the HTML tag so the offer price shows on that product, otherwise the box is disabled.[quote][code]




Linda, what do you mean by that? that is the part I am confusing.  Can you show example?



Nouck[/code]

Link to comment
Share on other sites

In the /includes/english/offer_price.php language file is the definition for the HTML code that needs to be added to the products_name field.

 

NOTE: Be sure to lengthen your products_name field in the products table and the orders_products table.

 

// Use one tag or the other to determin if you want a TEXT link or an IMAGE link on the product_info.php page

define('OFFER_PRICE_TEXT','Offer Your price'); // Include in products_name field <!--//* OFFER_PRICE_TEXT *//-->

define('OFFER_PRICE_IMAGE','offer_price.gif'); // Include in products_name field <!--//* OFFER_PRICE_IMAGE *//-->

Link to comment
Share on other sites

Well heck if I didn't change that code at the last mintue :shock:

 

You need to do two things. Be sure to widen the fields and then where you want the offer price to show, add the HTML code as shown below.

 

Use this code instead, I shortened it and forgot to update the comments in the language file.

// Use one tag or the other to determin if you want a TEXT link or an IMAGE link on the product_info.php page

define('OFFER_PRICE_TEXT','Offer Your price'); // Include in products_name field <!--//* OPT *//-->

define('OFFER_PRICE_IMAGE','offer_price.gif'); // Include in products_name field <!--//* OPI *//-->

Link to comment
Share on other sites

okie,

 

I really feel stupid....

 

in the product_info.php, i added this line?

 

<!--//* OPT *//--> somewhere in there?

 

I edit product_info page?

 

 

I am new to this html tag thingie.

 

sorries.

 

Nouck

Link to comment
Share on other sites

No, when you are editing in the Admin the Product Info, you want to place in the Product Name field, say the product is Widgets, you would type in for a text link:

 

Widgets <!--//* OPT *//-->

 

For the image link:

 

Widgets <!--//* OPI *//-->

 

The php then sees that code and addes the link for that product on the product_info.php page for you on the products where you have added the HTML code.

 

If that HTML code is not in the products_name field, then the Offer Price will not show.

Link to comment
Share on other sites

arrhh... thanks, I got it to works! Very very nice.

 

also, when you make changed to <!--//* OPT *//--> , you have shorten it up, you also, have to replace it in

/catalog/includes/offer_price.php also.

 

I was having a hard time, nothing showing up until I replace <!--//* OPT *//--> to <!--//* OFFER_PRICE_TEXT *//-->' in the /catalog/includes/offer_price.php

 

Thank you for help! :-)

 

Now, I am turning this things into, product query, how do I change the offer price field, into text, where the customer enter the offer price, I want to use that box as a text input. right now, that box only taking the number only, wich is price. i want to be able to keyed in characters also.

 

Nouck

Link to comment
Share on other sites

Everything should be using the short version of the tag

<!--//* OPT *//--> or <!--//* OPI *//-->

 

The offer price field is specifically designed to be just that, an offer price.

 

If you want to add additional fields on that page, the offer_price_submit.php file is written pretty much line for line as to how the email will come to you so you can add additional information to the submit page and then add that to the email.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...