Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Greenmania template released


rakimonmic

Recommended Posts

  • 2 weeks later...

Hi, very nice template.

The specials page however is not converted to the same uniform template as you have.

Could you please let me have the correct code for this page so that it will look the same as the rest of the site.

thanks

Link to comment
Share on other sites

  • 2 weeks later...

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

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?

 

Try removing any carriage returns you have entered. Also try to put your text in a paragraph.

 

Small detail:

 

<br>

is HTML.

<img src="includes/languages/english/images/main02.JPG" border="0" width="300px" alt="One Stop Mommy Organics" />

is xHTML. Try to use one or the other, probably xHTML is best, where

<br> is <br />

 

If you try making a paragraph for the text, add the attribute class="my-promo-text" (something that does not already exist in the stylesheet). Then in the stylesheet, you can control the color, size etc. of the text like so:

.my-promo-text{
color: #ffffff; /*color of the font, this case white*/
font-family: arial, helvetica, sans-serif; /*font to use*/
font-size: 12pt; /*size of font, in this case 12 pts. can also be px for pixels*/
}

 

Note the dot in front of the word my-promo-text. Then you can remove all of the font tags, which are also not proper xHTML. You will be able to control the font color (make sure it's not the same as the background, etc.), make it bold, almost anything you want, right from the style sheet. The same font style will also be available to use anywhere in your store where you use:

<p class="my-promo-text">etc.</p>

 

BTW, is there a demo of this template somewhere to look at?

Edited by Rajmahall

ECommerce, Custom CMS, and Web Design from Chicago Creative Design

Link to comment
Share on other sites

Very impressive! Now that's the stuff I wanna learn how to do!!! :)

where do I start???

 

First to say, looking at the screenshot, there does not appear to be a placeholder for main text, so it may not be available in this template. I'd still like to see a live demo storefront somewhere!

 

You can access the files and do any editing from control panel>tools>file manager. The style sheet is located in the root directory and is probably named something like stylesheet.css. I think you've indicated you know where to find the main text, but it is in installation_root/includes/languages/english/index.php.

 

There are many resources online to learn about CSS, xHTML, and creating websites and building your code knowledge. There is one forum at sitepoint.com, and a good learning site I remember is http://www.webmonkey.com/. Of course, there is always Google search for terms like "html tutorials", "free web design tutorials", etc.

 

Best of luck creating an effective and great looking storefront!

ECommerce, Custom CMS, and Web Design from Chicago Creative Design

Link to comment
Share on other sites

How do I remove the ads on google??

Go into product_info.php through control panel>tools>file manager. Look for:

 

<script type="text/javascript"><!--
google_ad_client = "this is really cheesy";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_cpa_choice = "CAEQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAaCKw9X3twEcnWKNTwoKICKN683qwBKLvt
wLkBKJi0ya4BKLzE0YEBKMf3_n8o1dKIywEox4jZeijTiKLOASjAufOmAii23_uiASi3qY-dASiM99uJASjzkv_TASjrkbfVAQ";
google_ad_channel = "6404077829";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "32527A";
google_color_text = "000000";
google_color_url = "6C82B5";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Delete it.

ECommerce, Custom CMS, and Web Design from Chicago Creative Design

Link to comment
Share on other sites

Hello. Checked product_info.php for that script and I can't find it. What am I doing wrong? Thanks!

Also when I try to edit stuff via admin/tools I get: "Error: I can not write to this file. Please set the right user permissions on: " - I have seen this elsewhere and I guess its osC looking after me somehow but how do I switch it on so I can write to files without having to download them edit them and upload again (which sucks!). Many thanks!

Link to comment
Share on other sites

Hello. Checked product_info.php for that script and I can't find it. What am I doing wrong? Thanks!

Also when I try to edit stuff via admin/tools I get: "Error: I can not write to this file. Please set the right user permissions on: " - I have seen this elsewhere and I guess its osC looking after me somehow but how do I switch it on so I can write to files without having to download them edit them and upload again (which sucks!). Many thanks!

See above about the google ads script. Anyways is best to use some kind of multi file search tool to go through all files to find something when you don't know where it is. This application uses code bits from lots of different files to create each individual page.

 

When you get the "cannot write..." error message, it is because the permissions of the file are not set correctly. This is something you can correct via a hosting control panel or with most FTP clients. You might also use CHMOD command. I think on most LAMP environments, the correct setting for files that you want to be able to edit is 755. If you don't understand these concepts, it's a good thing to learn about. Google for CHMOD or "File Permissions". There's probably something about it in your hosting Help/Support section.

Edited by Rajmahall

ECommerce, Custom CMS, and Web Design from Chicago Creative Design

Link to comment
Share on other sites

how do I properly turn on the lightbox for new_products.php?

 

I already added the following to my index <head>:

 

<link rel="stylesheet" href="lightbox/prettyPhoto.css" type="text/css" title="prettyPhoto main stylesheet" charset="utf-8" />

<script src="lightbox/jquery-1.2.3.pack.js" type="text/javascript" charset="utf-8"></script>

<script src="lightbox/prettyPhoto.js" type="text/javascript" charset="utf-8"></script>

 

and rel="prettyOverlay[gallery]" to the thumbnail link

 

All I get is:

Firefox3.0: grey tint with a small white bubble with the prettyPhoto loader.gif -- the large image never loads.

IE7: grey tint with absolutely nothing else.

 

Any help would be greatly appreciated. It would seem that my "fix" isn't fixed.

Link to comment
Share on other sites

All I get is:

Firefox3.0: grey tint with a small white bubble with the prettyPhoto loader.gif -- the large image never loads.

IE7: grey tint with absolutely nothing else.

team-h found the hundbegraben on this one in new_products.php -- wetware error -- uncorrected C&P from product_info.php.

 

To open a lightbox instead of going to the details page when the "new products" thumbnail get clicked, the link needs all $ to be $new_products.

 

Not to worry, we stamped Roxie's meal card "no dessert" ;)

 

Nice work as usual, Alex!

Link to comment
Share on other sites

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?

 

 

Did this ever get resolved? I would like to add a TEXT_MAIN area to my home page also.

Link to comment
Share on other sites

Does anyone know how to change the black color under the different columns/menus ?

 

I've been looking through the stylesheet, application_top and _bottom and several other files. Probably it's just me that can't see what's wrong, but I really can't find the specific line to change the color of the "background".

 

Help would be greatly appreciated since I've been searching for hours.

 

/Best Regards

Link to comment
Share on other sites

Hi badezinner. Would you say it is best to add the contributions I want to a fresh install of osC and then overlay the greenmania template or try and add the contribs to greenmania? Thanks for this forward planning advice. :-)

Edited by trainwatcher
Link to comment
Share on other sites

OK so the answer is: overlay stuff on to greenmania.

 

OMG I look in the mirror and see nothing!

 

I must be a help vampire. Guess its the smell of altruism! Some one stop me pleeez - I dont know what I'm doing. :o Still, I think this is a neat template and will endeavour to relay my developments as I max it up and out with add ons! A penance for my crimes against the forum! :rolleyes: and perhaps of use to someone out there...

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