This is a discussion on product_info code problem within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I need to modify product_info.php and the code in OSCmax looks much different than OScommerce one. Where can I find ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I need to modify product_info.php and the code in OSCmax looks much different than OScommerce one. Where can I find the Oscommerce code in OSCmax for product_info.php? |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| I'm not an expert, but try this: Since OSCMax is template based, you'll probably find what your looking for in the corresponding template file. For example: catalog/templates/aabox/content/product_info.tpl.php Make sure you choose the appropriate template directory for the style you've selected for your site. (In my case it's 'aabox'). |
|
#3
| |||
| |||
| I found some of the code in the templates but it seems that most of the code at the top of page is missing maybe because of template thing. Here is some stuff I need to replace in product_info.php that I cannot find: ------------------------------------------------------------------------ <link rel="stylesheet" type="text/css" href="stylesheet.css"> After that line, copy in the two Javascript Functions from the option.js ------------------------------------------------------------------------------------------------------------ Search for: <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> Change to: <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onload="showPrice(cart_quantity)"> *** NOTE *** Some browsers do not like the onload. So, one option is to NOT put this part here, but rather use this method instead: Search for: <!-- body_text_eof //--> Add the following lines afterwards: <script language="javascript"> <!-- showPrice(cart_quantity); //--> </script> Any ideas on what to do for this? |
|
#4
| |||
| |||
| Sorry tommygunner, I searched, but couldn't couldn't find anything similar (nor any 'option.js' file). Perhaps someone else might be able to point you in the right direction. Good luck! |
|
#5
| ||||
| ||||
| main_page.tpl.php
__________________ Michael Sasek osCMax Developer
|
|
#6
| |||
| |||
| Quote:
|
|
#7
| |||
| |||
| http://www.oscommerce.com/community/...o+price+update Here is the mod I want to install. I have it working on OSC mil2 but am trying to get it installed on OSCmax |
|
#8
| |||
| |||
| Quote:
|
|
#9
| ||||
| ||||
| You could make a new main template just for the product info page, copy main_page.tpl.php to a new file like product_info_main_page.tpl.php and edit that file. Then change the /catalog/product_info.php file to call the new tpl file you made, instead of the standard main_page.tpl.php. That should do it for you.
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Modifying Product_info.php | Migraine | osCommerce 2.2 Modification Help | 0 | 05-04-2005 03:23 AM |
| product_info.php | Migraine | osCommerce 2.2 Modification Help | 1 | 04-20-2005 08:18 AM |
| how to add manufacturer to product_info.php | atech | osCommerce 2.2 Modification Help | 0 | 04-14-2004 09:03 PM |
| changing name of product_info.php | Anonymous | osCMax v1.7 Discussion | 1 | 03-26-2004 06:20 AM |