Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Greenmania template released


rakimonmic

Recommended Posts

Thanks for this template Alex, I needed a complex third party template to test some stuff on my dev server.

 

For those who were wanting to see it the basics of the template can be seen at my dev server

 

I haven't done the products_listing/listing_col yet but you will get the general idea.

 

To see the template you have to choose greenmania from the templates dropdown.

Edited by FWR Media
Link to comment
Share on other sites

it won't let me download it. the download button is there...but it won't let me click it...HELP!!! :)

 

hi i download the greenmania template and install it now can any one help me remove the google ads. and i would like to add

a drop down box where customer can choice to select product size. please help

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
It can be even more useful to me if some would help me to use it I has uploaded through my FTP what do I do next??

 

 

If you don't know how to install this template you should not set up a commercial oscommerce based store because you may leave space for hacking attempts.

 

If you want to experiment though, you can find info about how to install on the oscommerce documentation page. There is lots of info which can be very usefull to you.

Link to comment
Share on other sites

Hi,

 

I uploaded the catalog folder through FTP on a NEW database and i have warnings and cant access admin or any other page.

These are the warnings on my home page =

 

Warning: session_save_path(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (d:\users) in d:\users\foxycardsuk\public_html\includes\functions\sessions.php on line 169

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at d:\users\foxycardsuk\public_html\includes\functions\sessions.php:169) in d:\users\foxycardsuk\public_html\includes\functions\sessions.php on line 102

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at d:\users\foxycardsuk\public_html\includes\functions\sessions.php:169) in d:\users\foxycardsuk\public_html\includes\functions\sessions.php on line 102

 

............

and these are the warnings on my admin page =

 

Warning: session_save_path(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (d:\users) in d:\users\foxycardsuk\public_html\admin\includes\functions\sessions.php on line 165

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at d:\users\foxycardsuk\public_html\admin\includes\functions\sessions.php:165) in d:\users\foxycardsuk\public_html\admin\includes\functions\sessions.php on line 102

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at d:\users\foxycardsuk\public_html\admin\includes\functions\sessions.php:165) in d:\users\foxycardsuk\public_html\admin\includes\functions\sessions.php on line 102

 

Warning: Cannot modify header information - headers already sent by (output started at d:\users\foxycardsuk\public_html\admin\includes\functions\sessions.php:165) in d:\users\foxycardsuk\public_html\admin\includes\functions\general.php on line 22

 

..............

 

Paul

Link to comment
Share on other sites

  • 2 months later...

Hi

 

Everything was working great until about 15min ago (new database installed). I now get this error:

 

Fatal error: Call to undefined function product_name() in C:\Program Files\WAMP\www\Rebel\includes\modules\product_listing.php on line 151

 

Line 151 is

 

echo product_name();?></td><td class="m2"></td>

 

Any ideas?

Link to comment
Share on other sites

Ok, it was an error with the <?PHP

 

BEFORE:

 

<tr>
  <td class="m1"></td><td align="center" bgcolor="191E21"><?php 		  /* You are free to use the Greenmania template as long as this code and the copyright in the footer remain intact */ 
echo product_name();?></td><td class="m2"></td>
 </tr>
</table>
<?php

 

AFTER

 

?>
<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
 <tr>
  <td class="m1"></td><td align="center" bgcolor="191E21">	/* You are free to use the Greenmania template as long as this code and the copyright in the footer remain intact */
</table>
<?php

Edited by ReBeL Tech
Link to comment
Share on other sites

Hey,

I just installed this template today. The shop works fine, but I cannot enter the admin site. When I try to open the administration tool I get the following error message:

 

Parse error: syntax error, unexpected '.', expecting ')' in /www/******/*******/shop/catalog/admin/includes/functions/database.php on line 13

 

Can anyone please help me finding the error?

 

 

This is the code inside database.php:

 

<?php
/*
 $Id: database.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2007 osCommerce

 Released under the GNU General Public License
*/

 function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {
   global $$link;

   if (USE_PCONNECT == 'true') {
     $$link = mysql_pconnect($server, $username, $password);
   } else {
     $$link = mysql_connect($server, $username, $password);
   }

   if ($$link) mysql_select_db($database);

   return $$link;
 }

 function tep_db_close($link = 'db_link') {
   global $$link;

   return mysql_close($$link);
 }

 function tep_db_error($query, $errno, $error) { 
   die('<font color="#000000"><b>' . $errno . ' - ' . $error . '<br><br>' . $query . '<br><br><small><font color="#ff0000">[TEP STOP]</font></small><br><br></b></font>');
 }

 function tep_db_query($query, $link = 'db_link') {
   global $$link;

   if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
     error_log('QUERY ' . $query . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
   }

   $result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error());

   if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
      $result_error = mysql_error();
      error_log('RESULT ' . $result . ' ' . $result_error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
   }

   return $result;
 }

 function tep_db_perform($table, $data, $action = 'insert', $parameters = '', $link = 'db_link') {
   reset($data);
   if ($action == 'insert') {
     $query = 'insert into ' . $table . ' (';
     while (list($columns, ) = each($data)) {
       $query .= $columns . ', ';
     }
     $query = substr($query, 0, -2) . ') values (';
     reset($data);
     while (list(, $value) = each($data)) {
       switch ((string)$value) {
         case 'now()':
           $query .= 'now(), ';
           break;
         case 'null':
           $query .= 'null, ';
           break;
         default:
           $query .= '\'' . tep_db_input($value) . '\', ';
           break;
       }
     }
     $query = substr($query, 0, -2) . ')';
   } elseif ($action == 'update') {
     $query = 'update ' . $table . ' set ';
     while (list($columns, $value) = each($data)) {
       switch ((string)$value) {
         case 'now()':
           $query .= $columns . ' = now(), ';
           break;
         case 'null':
           $query .= $columns .= ' = null, ';
           break;
         default:
           $query .= $columns . ' = \'' . tep_db_input($value) . '\', ';
           break;
       }
     }
     $query = substr($query, 0, -2) . ' where ' . $parameters;
   }

   return tep_db_query($query, $link);
 }

 function tep_db_fetch_array($db_query) {
   return mysql_fetch_array($db_query, MYSQL_ASSOC);
 }

 function tep_db_num_rows($db_query) {
   return mysql_num_rows($db_query);
 }

 function tep_db_data_seek($db_query, $row_number) {
   return mysql_data_seek($db_query, $row_number);
 }

 function tep_db_insert_id($link = 'db_link') {
   global $$link;

   return mysql_insert_id($$link);
 }

 function tep_db_free_result($db_query) {
   return mysql_free_result($db_query);
 }

 function tep_db_fetch_fields($db_query) {
   return mysql_fetch_field($db_query);
 }

 function tep_db_output($string) {
   return htmlspecialchars($string);
 }

 function tep_db_input($string, $link = 'db_link') {
   global $$link;

   if (function_exists('mysql_real_escape_string')) {
     return mysql_real_escape_string($string, $$link);
   } elseif (function_exists('mysql_escape_string')) {
     return mysql_escape_string($string);
   }

   return addslashes($string);
 }

 function tep_db_prepare_input($string) {
   if (is_string($string)) {
     return trim(tep_sanitize_string(stripslashes($string)));
   } elseif (is_array($string)) {
     reset($string);
     while (list($key, $value) = each($string)) {
       $string[$key] = tep_db_prepare_input($value);
     }
     return $string;
   } else {
     return $string;
   }
 }
?>

Link to comment
Share on other sites

Hmm so something is strange.

 

When you view a product that has been purchased before -

"Customers who bought this product also purchased" shows the product with correct picture,price and title but the product description is messed up. By that I mean - it all the product desciption always shows one description

 

How do I like it to the right one?

Link to comment
Share on other sites

did anyone actually manage to do this?

 

I'm having trouble getting TEXT_MAIN to show on my index file. I want to include a description of my site. Can someone look over my coding and see if there is an error? Or has TEXT_MAIN been disabled on this template? If so, how can I re-enable it?

 

<?php
/*
 $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2007 osCommerce

 Released under the GNU General Public License
*/

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
define('TEXT_MAIN', '<br><br>
Welcome to <b><i><font color="#669933">One Stop Mommy Organics</font></i></b> serving the organic needs of families. Young children are extremely vulnerable to toxic exposures. We at <b><i><font color="#669933">One Stop Mommy Organics</font></i></b> are dedicated to bring you the safest organic products available on the market.<br>
<br>
<br>
<center><img src="includes/languages/english/images/main02.JPG" border="0" width="300px" alt="One Stop Mommy Organics" /></center><br><br>
We provide carefully selected, environmentally and health friendly items for you and your family. Our biggest concern is your littlest being. We research to get you the healthiest products that you can feel good using.<br>
<br>
Let us know what you are looking for. Is there something that is not available that you feel would benefit a lot of health minded parents?<br>
<br>
Here at <b><i><font color="#669933">One Stop Mommy Organics</font></i></b>, we work hard researching and locating or creating the products you demand. We realize the hard work and time commitment of a parent so we do the research for you. When you buy from us you will know what you are getting. Our wood toys are researched to make sure they are PVC-Free and made in factories that provide a safe working environment for their employees. We make sure our organic cotton is really organic every step of the way. We sell lines of bedding, clothing, and diapers to meet the needs of parents.<br>
<br>
<br>
Have fun shopping for items that you know will keep your little ones and your family safe!<br>
<br>
<center><img src="includes/languages/english/images/main03.JPG" border="0" alt="One Stop Mommy Organics" /></center><br>
');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
 define('HEADING_TITLE', 'Let\'s See What We Have Here');
 define('TABLE_HEADING_IMAGE', '');
 define('TABLE_HEADING_MODEL', 'Model');
 define('TABLE_HEADING_PRODUCTS', 'Product Name');
 define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
 define('TABLE_HEADING_QUANTITY', 'Quantity');
 define('TABLE_HEADING_PRICE', 'Price');
 define('TABLE_HEADING_WEIGHT', 'Weight');
 define('TABLE_HEADING_BUY_NOW', 'Buy Now');
 define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
 define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
 define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
 define('TEXT_SHOW', '<b>Show:</b>');
 define('TEXT_BUY', 'Buy 1 \'');
 define('TEXT_NOW', '\' now');
 define('TEXT_ALL_CATEGORIES', 'All Categories');
 define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
 define('HEADING_TITLE', 'What\'s New Here?');
} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Categories');
}
?>

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...
  • 1 month later...
Hi.. does anyone knows how to change that menu rollovers by language.. I mean when customer change the site language the menu buttons will change

 

Today I found the solution with moving the stylesheet.css and with modifying the index.php here is what I did:

 

1) First copy the catalog/images/template/ file to catalog/includes/languages/english/images/template

 

For Turkish as a second language;

 

2) Copy the catalog/images/template/ file to catalog/includes/languages/turkish/images/template (of course with the Turkish images)

3) Copy the catalog/stylesheet.css file to the catalog/includes/languages/english/ and catalog/includes/languages/turkish/

4) Open catalog/index.php and find:

<link rel="stylesheet" type="text/css" href="stylesheet.css">

5) Then change that code to:

<link rel="stylesheet" type="text/css" href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . DIR_WS_LANGUAGES . $language . '/stylesheet.css'; ?>">

6) Thats it! The menu buttons that you modified according to the language will change by language of your store.

Link to comment
Share on other sites

  • 3 months later...

Can someone help me out with this template pls, its my first time using a template. I have it installed successfully but the header bit on the screen shot with the menu buttions, language images and curreny selector and cart etc aren't on, how do i install/make those bits show up?

 

Im guessing i have to replace some header code or something?

 

many thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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