Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

OSC to CSS v2


152 replies to this topic

#121 funkygee

  • Community Member
  • 8 posts
  • Real Name:.:FG:.

Posted 22 October 2010, 08:04

Hi all here!

I came across a problem when I started my 2.3 experience the day before. I've downloaded source from github,first of all its looks smart for me cause of 960gs. I would like to install a previous version of email authentication contrib in it, where 2 additional files should be uploaded as new :
catalog/account_activate.php and
catalog/account_activate_success.php
and some others should be modified :
catalog / login.php
catalog / create_account.php
catalog / includes / filenames.php
catalog / includes / languages / (for all languages).php
catalog / includes / langauges / (for all lanuages) / login.php
catalog / includes / langauges / (for all lanuages) / create_account.php
catalog / includes / langauges / (for all lanuages) / create_account_success.php

but it seems partialy working only, reg. emil sent out, but when submitting the reg. form http://mydomain.com/create_account.php is not displayed, but errors mainly referenced to passwordhash.php occured. Then the system hangs back to the base-like outfit, character coding also messes up , something not integrated or so. What contrib do you suggest instead of this old one to achive mail registration with this new css - 960gs based system?
(Important : It was the first contrib, all files where installed AS found @git. )

Thanks a lot.

#122 npn2531

  • Community Member
  • 951 posts
  • Real Name:Jase
  • Gender:Not Telling

Posted 22 October 2010, 17:53

View Postalba, on 22 October 2010, 05:47, said:

Im curios does this mod replace or enhance what is now available in v2.3?

I love the examples ive seen of this addon and while i have always used STS in the past to work with templates (with div based template files rather than table based) im wondering what the best approach is now with the new release of v2.3?

any advise would be greatly appreciated
The latest github post of 2.3 is a complete shop, with all the latest programming and security updates. OSC to CSSv2 will not have the 2.3 upgrades, as it installs on the existing version of OSCommerce.

Otherwise the difference is in how the 960 grid tableless structure is incorporated, and these differences are not fundamental. But with both you are using the same 960 grid structure. I would make my decision not on these differences in how the 960 grid is implemented, but rather on whether or not you want to use the existing version of OSCommerce 2.2a or 2.3.

To get a good understanding of these differences examine and compare the two files, includes/template_top.php and includes/template_bottom.php in both 2.3 and in OSC to CSS v2.

Edited by npn2531, 22 October 2010, 17:56.


#123 bnguru

  • Community Member
  • 66 posts
  • Real Name:Steve Rosnick
  • Location:Grayslake, IL

Posted 23 October 2010, 04:36

View Postnpn2531, on 22 October 2010, 17:53, said:

The latest github post of 2.3 is a complete shop, with all the latest programming and security updates. OSC to CSSv2 will not have the 2.3 upgrades, as it installs on the existing version of OSCommerce.

Otherwise the difference is in how the 960 grid tableless structure is incorporated, and these differences are not fundamental. But with both you are using the same 960 grid structure. I would make my decision not on these differences in how the 960 grid is implemented, but rather on whether or not you want to use the existing version of OSCommerce 2.2a or 2.3.

To get a good understanding of these differences examine and compare the two files, includes/template_top.php and includes/template_bottom.php in both 2.3 and in OSC to CSS v2.


Could you post a link to find this download please?
Steve in Grayslake, IL

#124 bnguru

  • Community Member
  • 66 posts
  • Real Name:Steve Rosnick
  • Location:Grayslake, IL

Posted 24 October 2010, 02:35

I just noticed tonight that my sitte displays correctly in Firefox, but not in Explorer. Can anyone suggest what causes this and how to correct it?
Again site location: http://www.trainliquidators.com/catalog/
Steve in Grayslake, IL

#125 pdcelec

  • Community Member
  • 606 posts
  • Real Name:Paul Clifford
  • Gender:Male
  • Location:UK

Posted 28 October 2010, 08:33

Hi
I have found a bug in products_new.php in this section


<div class="pl-dateadded">
<?php // echo TEXT_DATE_ADDED . ' ' . tep_date_short($products_new['products_date_added']);?>
<?php echo '<span class="smalltext">Added ' . tep_date_short($products_new['products_date_added'].'</span class="smalltext"');?>
</div>

should be (note the position of the closing) after ($products_new['products_date_added']).
<div class="pl-dateadded">
<?php // echo TEXT_DATE_ADDED . ' ' . tep_date_short($products_new['products_date_added']);?>
<?php echo '<span class="smalltext">Added ' . tep_date_short($products_new['products_date_added']).'</span class="smalltext"';?>
</div>

#126 funkygee

  • Community Member
  • 8 posts
  • Real Name:.:FG:.

Posted 12 November 2010, 15:01

Hi guys,

I have not found a topic to post some issues on the new 2.3 version, that i'm testing based on the github version. I have the problem of the passwordhash.php , i cannot access some functionality of the test store, like admin, login, etc. Som kind of passwordhash error comes up on line 51 ( /includes/classes/passwordhash.php on line 51, Warning: is_readable() [function.is-readable] ) and everything stops. If someone can help me to figure out this. Or this is just because its not a released version yet, and will be solved when the final comes out ( hopefully tonight).


Thanks a lot,

FG,Hun.

Edited by funkygee, 12 November 2010, 15:03.


#127 trianglehead

  • Community Member
  • 16 posts
  • Real Name:simon

Posted 13 November 2010, 10:36

Hi guys. What a breath of fresh air this conversion is! I've just installed it along with the 'securityPro' contribution. I've found though that both the 'buy now' and 'add to cart' buttons do not seem to do anything. They do not add anything to the cart nor does the json cart pop up.

I'm not able to post a link as I'm working on localhost.

Does anyone have any ideas as to what's going wrong?

#128 pdcelec

  • Community Member
  • 606 posts
  • Real Name:Paul Clifford
  • Gender:Male
  • Location:UK

Posted 13 November 2010, 11:52

View Posttrianglehead, on 13 November 2010, 10:36, said:

Hi guys. What a breath of fresh air this conversion is! I've just installed it along with the 'securityPro' contribution. I've found though that both the 'buy now' and 'add to cart' buttons do not seem to do anything. They do not add anything to the cart nor does the json cart pop up.

I'm not able to post a link as I'm working on localhost.

Does anyone have any ideas as to what's going wrong?


Are you connected to the internet whilst on localhost as the jquery library is called from google (see the install for application_top.php)

#129 trianglehead

  • Community Member
  • 16 posts
  • Real Name:simon

Posted 13 November 2010, 14:36

View Postpdcelec, on 13 November 2010, 11:52, said:

Are you connected to the internet whilst on localhost as the jquery library is called from google (see the install for application_top.php)


Yes connected to the internet. Will download and save them to the directory to see if this helps although, I can't see this making any difference.

#130 npn2531

  • Community Member
  • 951 posts
  • Real Name:Jase
  • Gender:Not Telling

Posted 14 November 2010, 00:19

If you aren't connected to the internet and therefore the external jquery reference the buy and add to cart buttons should revert to normal behavior, so it does sounds like something is amiss.

If you get the IE popup warning about secure and insecure items, then either download the jquery files from the jquery site or google site, or use this sort of reference for the external jquery files:

<script type="text/javascript" src="<?php echo (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://') . 'ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'; ?>"></script>


#131 trianglehead

  • Community Member
  • 16 posts
  • Real Name:simon

Posted 14 November 2010, 09:39

View Postnpn2531, on 14 November 2010, 00:19, said:

If you aren't connected to the internet and therefore the external jquery reference the buy and add to cart buttons should revert to normal behavior, so it does sounds like something is amiss.

If you get the IE popup warning about secure and insecure items, then either download the jquery files from the jquery site or google site, or use this sort of reference for the external jquery files:

<script type="text/javascript" src="<?php echo (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://') . 'ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'; ?>"></script>


Well, I've now used both your code above and also tried downloading the files. Neither of them seem to work. I've resigned mysekf to the fact that it's not going to work so have commented out the 'add to cart' button and reinstated the original one. I don't however know what the original code for the buy now button was. Am I able to copy and paste it straight out of the original osc 2.2 files?

Edited by trianglehead, 14 November 2010, 09:39.


#132 npn2531

  • Community Member
  • 951 posts
  • Real Name:Jase
  • Gender:Not Telling

Posted 14 November 2010, 14:04

View Posttrianglehead, on 14 November 2010, 09:39, said:

Well, I've now used both your code above and also tried downloading the files. Neither of them seem to work. I've resigned mysekf to the fact that it's not going to work so have commented out the 'add to cart' button and reinstated the original one. I don't however know what the original code for the buy now button was. Am I able to copy and paste it straight out of the original osc 2.2 files?
Yes, you should be able to cut and paste it from OSC2.2. Also the 'add to cart' button is a contribution or two and also appears in various places in the forum. See 'tips and tricks' .

#133 shakeran

  • Community Member
  • 15 posts
  • Real Name:hamid
  • Gender:Male
  • Location:iran

Posted 29 November 2010, 16:50

Hi every body
How can I remove the white margins from left and right sides of my pages?
thanks.

[b]فروشگاه بزرگ اینترنتی شاکران


#134 npn2531

  • Community Member
  • 951 posts
  • Real Name:Jase
  • Gender:Not Telling

Posted 29 November 2010, 17:29

OSC 2 CSS is set up, centered, 960px wide. If your screen or browser is viewing more that 960px there will be white space. However, you could set the background to another color in the stylesheet.

example:
html{
background:#000000;
}


#135 leonardo2212

  • Community Member
  • 108 posts
  • Real Name:Leonardo Marusic

Posted 08 March 2011, 22:21

Hello!
I use your elegant grey muted look.... Have one problem, how can I change language on product_info page on the table? (reviews, manufacturer info etc...)
Thank you!

#136 anghorpl

  • Community Member
  • 1 posts
  • Real Name:Konrad

Posted 21 March 2011, 12:37

After applying OSC2CSS those nice "add-to-cart" box that appears has two issues:

1) Easy: window is in English even my language is set to Polish (where can I find strings to modify this window)?

2) no matter what I do when adding something to cart I've got "NULL" information instead of product details. Same happening to shopping cart infobox - but once I go to another page or reload all data in shopping cart are correct.

Any help appreciated :)

#137 Vinyl

  • Community Member
  • 6 posts
  • Real Name:Sébastien Gicquel
  • Gender:Male

Posted 12 May 2011, 12:02

Thank you for sharing this nice job !

But i have 2 issues :

- Image has normal size on product_info.php. Do you know what's the problem ?

Here is my code in product_info.php which shows the image

	<script language="javascript"><!--
document.write('<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '"target="_blank"   title="'. $product_info['products_name'].'"  rel="prettyPhoto[gallery1]"   >' . tep_image(DIR_WS_IMAGES . (!empty($product_info['products_image_med'])?$product_info['products_image_med']:(!empty($product_info['products_image_pop'])?$product_info['products_image_pop']:(!empty($product_info['products_image'])?$product_info['products_image']:''))), addslashes($hello), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_WIDTH:''), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_HEIGHT:''), 'hspace="5" vspace="5"') . '<div class="center">' . (!empty($product_info['products_image_description'])?$product_info['products_image_description']:TEXT_CLICK_TO_ENLARGE) . '</div></a>'; ?>');
//--></script>


- I've got "NULL" information instead of product details in shopping cart.

Any idea ?

thank you.

#138 Vinyl

  • Community Member
  • 6 posts
  • Real Name:Sébastien Gicquel
  • Gender:Male

Posted 12 May 2011, 12:46

ok, i answer to myself ;-)

Here is what i've done for the issue "Image has normal size on product_info.php".

I've replaced this code :

       <script language="javascript"><!--
document.write('<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '"target="_blank"   title="'. $product_info['products_name'].'"  rel="prettyPhoto[gallery1]"   >' . tep_image(DIR_WS_IMAGES . (!empty($product_info['products_image_med'])?$product_info['products_image_med']:(!empty($product_info['products_image_pop'])?$product_info['products_image_pop']:(!empty($product_info['products_image'])?$product_info['products_image']:''))), addslashes($hello), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_WIDTH:''), (ADDIMAGES_RESTRICT_PARENT=='true'?DISPLAY_IMAGE_HEIGHT:''), 'hspace="5" vspace="5"') . '<div class="center">' . (!empty($product_info['products_image_description'])?$product_info['products_image_description']:TEXT_CLICK_TO_ENLARGE) . '</div></a>'; ?>');
//--></script>

by this one :

	<script language="javascript"><!--
document.write('<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '"target="_blank"   title="'. $product_info['products_name'].'"  rel="prettyPhoto[gallery1]"   >' . tep_image(DIR_WS_IMAGES . (!empty($product_info['products_image_med'])?$product_info['products_image_med']:(!empty($product_info['products_image_pop'])?$product_info['products_image_pop']:(!empty($product_info['products_image'])?$product_info['products_image']:''))), addslashes($hello), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<div class="center">' . (!empty($product_info['products_image_description'])?$product_info['products_image_description']:TEXT_CLICK_TO_ENLARGE) . '</div></a>'; ?>');
//--></script>


#139 PiLLaO

  • Community Member
  • 109 posts
  • Real Name:Gustavo

Posted 30 May 2011, 14:01

View Postnpn2531, on 29 November 2010, 17:29, said:

OSC 2 CSS is set up, centered, 960px wide. If your screen or browser is viewing more that 960px there will be white space. However, you could set the background to another color in the stylesheet.

example:
html{
background:#000000;
}
Using this, the color selected cover all parts of the page. how could fix this?

Thanks!!

#140 mcbsolutions

  • Community Member
  • 164 posts
  • Real Name:Steve Walker
  • Gender:Male

Posted 13 June 2011, 08:57

Hello,
In an infobox, what is the best way to center an image using this CSS version? Pulling my hair out trying several things and its not centering.
I'm sure there is an easy fix. Thanks!!

Steve