Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Doh! Doh! Doh! Disabling product_info.php


boomah

Recommended Posts

G'Day Folks;

 

Re: Last post

 

// Also I was wondering if the product listing page could also have the "price" and "add to cart" as well as the "product name", "manufacturer" and "model"... //

 

Doh! It helps to explore your osCommerce Admin, and the osCommerce Wiki site is a must to visit... :-)

http://wiki.oscommerce.com

 

I still am at a loss as how to disable the product_info.php page and or the link to it from the product listing page...

 

As usual, any help is very much appreciated :-)

 

Cheers

 

Shane

Beer is proof that God loves us and wants us to be happy.

:: Homer Simpson

Link to comment
Share on other sites

Why would you want to disable the product_info page? Do you not want to display the details of a partcular product to your users?

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

good point, but i like that idea as well, cause it is good if all you list is parts for example, where there is no description,

Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Link to comment
Share on other sites

Well actually, I want to display a rather largish listing of available Inkjet, Laser, Fax and Copier supplies from an endless list of brands...I really do not need a description for each and every item in the product listing page, if any at all.

 

I thought about creating a separate info box with links to the products as separate pages in simple html list form, but that breaks the functionality of osCommerce, ie. becomes simply static html.

 

I do not have the PHP knowlege to hack osCommerce to suit my specific needs :-)

 

So, If I can show a list of my products from the categories menu with the buy now button (replace buy now with add to cart), then that would suffice :-)

 

Ideally I would love to have two separate categories boxes, one with products listing page with link to product_info and the other as above...

 

Anyways, if you guys have any ideas or hack suggestions (disabling link to product_info) that would be much appreciated!

 

Cheers Folks

 

Shane

Beer is proof that God loves us and wants us to be happy.

:: Homer Simpson

Link to comment
Share on other sites

That is going to be tough as just about everywhere that a product is listed, it is linked to the product_info.php page.

 

What you want could be done but it will take a lot of hacking to remove all of the tep_href_link calls.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Thanks for your reply Jim!

 

Some Pipe Dreams...

 

--:: Add value: enable/disable product_info link to admin/configuration/product listing in shop admin ::--

 

:-) :-) :-) :-)

 

I know it is a "Big If" to proceed... but I was wondering if you could provide me with an example tep_href_link to product_info and an example on commenting out that particular call, rather than deleting it.

 

Cheers

 

Shane

Beer is proof that God loves us and wants us to be happy.

:: Homer Simpson

Link to comment
Share on other sites

It can take many forms but it will always contain

tep_href_link(FILENAME_PRODUCT_INFO,

There may be some code before and after it but you will have to look at each instance.

 

To comment the code just place to // before it. Here is the above line commented out

// tep_href_link(FILENAME_PRODUCT_INFO,

and that should do it.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Or you can always try giving the variable FILENAME_PRODUCT_INFO a value of #

 

That way, you will still have a link, but if you click it will get to the same page you are (I think)

Link to comment
Share on other sites

Thanks guys;

 

nothing ventured nothing gained...

 

I spent part of yesterday isolating pages that the link appeared.

 

It proved not to be to much of a task... they mostly exist in the Order History Box, Shopping Cart Box, shopping_cart.php and products.php in the catalog etc etc etc (not to concerned about admin at this stage).

 

I backed up those pages first and set about commenting out those lines... but the foward slashed kept showing up on my pages... so I removed the link entirely and hey presto! (I will endeavour to go back and comment out those lines as you set out above Jim)

 

Anyways, in some respects this hack is messy but provided a soution none the less :-)

 

Cheers

 

Shane

Beer is proof that God loves us and wants us to be happy.

:: Homer Simpson

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...