osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

product_info code problem

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-13-2005, 12:34 PM
New Member
 
Join Date: Mar 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tommygunner
Default product_info code problem

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 03-13-2005, 04:11 PM
Member
 
Join Date: Oct 2004
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
nemail
Default RE: product_info code problem

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').
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-13-2005, 07:28 PM
New Member
 
Join Date: Mar 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tommygunner
Default some luck

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-14-2005, 02:16 AM
Member
 
Join Date: Oct 2004
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
nemail
Default RE: some luck

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-14-2005, 08:40 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,075
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: some luck

main_page.tpl.php
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 03-14-2005, 09:22 AM
New Member
 
Join Date: Mar 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tommygunner
Default Re: RE: some luck

Quote:
Originally Posted by nemail
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!
Sorry, option.js is the contibution file I'm copying from. It is a script that changes price when you select different options.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 03-14-2005, 09:30 AM
New Member
 
Join Date: Mar 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tommygunner
Default RE: Re: RE: some luck

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 03-14-2005, 09:33 AM
New Member
 
Join Date: Mar 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tommygunner
Default Re: RE: some luck

Quote:
Originally Posted by msasek
main_page.tpl.php
Ohh, I see the the stylesheet now at the top of that file. The only problem I see with this is that I need to insert an onload thing into body. This stuff is supposed to go on product_info page to show price update thingy. If I put the stuff in main file, it will try and load onto main page which probably won't be right.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 03-14-2005, 11:09 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,075
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: Re: RE: some luck

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


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 12:17 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax