Jump to content



Latest News: (loading..)

- - - - -

mobile version of my oscommerce website


  • Please log in to reply
20 replies to this topic

#1   ianhaney

ianhaney
  • Members
  • 852 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 07 June 2012 - 03:16 PM

Hi

I want to create a mobile version of my oscommerce website, is there a oscommerce plugin or anything that can do this

Thanks

Ian

#2   npn2531

npn2531
  • Members
  • 1,060 posts
  • Real Name:Jase
  • Gender:Not Telling

Posted 07 June 2012 - 04:18 PM

There are a couple:
http://addons.oscommerce.com/info/7445
http://addons.oscommerce.com/info/8370

or better  yet,  google 'mobile oscommerce'

Near the top is my favorite, css-oscommerce>>mobile oscommerce
not only because I wrote it, but because it plugs right into your existing site, it's lightweight and fast, uses the existing payment and shipping methods, and works for all mobile phone devices.

#3   ianhaney

ianhaney
  • Members
  • 852 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 07 June 2012 - 04:30 PM

Hi npn2531

I googled mobile oscommerce and am on the link and am on downloads

Do I download mobile-oscommerce-1.0.zip

Edited by ianhaney, 07 June 2012 - 04:30 PM.


#4   ianhaney

ianhaney
  • Members
  • 852 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 07 June 2012 - 04:38 PM

I have downloaded the files and uploaded them all to my server and added the coding to the included/filenames.php like the word document says

What do I need to do now Jase

#5   ianhaney

ianhaney
  • Members
  • 852 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 07 June 2012 - 05:11 PM

I went to www.irhmedia.co.uk/mobile-install.php but came up with the following

need categories_mini, cd.categories_metadescription, c.categories_image_m need pd.products_minidescp,p.products_image_small require kgt coupons

How do I get the mobile site to look like my desktop version as went to mobile-cart.php and had Noira and that, sorry not really understanding it

#6   ianhaney

ianhaney
  • Members
  • 852 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 07 June 2012 - 06:51 PM

Hi npn2531

I am getting the hang of it now, I just can't seem to find where the menu is where it says Home | Log In | Cart | Checkout

I want to change the word Cart to Basket

What file would it be in please

#7   npn2531

npn2531
  • Members
  • 1,060 posts
  • Real Name:Jase
  • Gender:Not Telling

Posted 07 June 2012 - 06:56 PM

You can ignore the part about kgt coupons. The mobile site is not going to look like your site until you change the html. You will need to add the new fields above in the categories, categories_description, products and products_description tables. Use phpMyadmin to do this. You will also need to manually enter the info into those fields using phpMyadmin.

Alternatively you could install one of these contributions. They allow you to add extra fields and data from the admin, which really is better and easier. :
http://addons.oscommerce.com/info/7810
http://addons.oscommerce.com/info/2202

#8   npn2531

npn2531
  • Members
  • 1,060 posts
  • Real Name:Jase
  • Gender:Not Telling

Posted 07 June 2012 - 07:10 PM

I don't support the mobile version or have the time to support it, it's works and all, but it just there for people to use and improve on. Since I don't support it or have it polished to a T, I have not posted it as a contribution. And thus this forum is not the place to discuss it.
But you can post questions on the google code depository where it's posted and often you will get responses from others who have installed it.

#9   ianhaney

ianhaney
  • Members
  • 852 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 07 June 2012 - 08:15 PM

Ok cool no worries

I have posted a question in the google bit you mentioned but dunno if you can quickly say about the following

<?php
$handsetdetection= '<script type="text/javascript" src=" '.(isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://') . 'api.handsetdetection.com/sites/js/12055.js"></script>';
echo $handsetdetection;
?>

I put the above coding in application_top.php at the very top but knackered my desktop site up, where else in the file can I put it

Email me if possible at ianhaney@irhmedia.co.uk

#10   npn2531

npn2531
  • Members
  • 1,060 posts
  • Real Name:Jase
  • Gender:Not Telling

Posted 07 June 2012 - 08:51 PM

Try putting it in the header where the other jquery and javascript files are. Also the syntax is a bit tricky because you are trying to do both the http and https in the oscommerce format. You can also look at this site which got this code from:

www dot hand-interactive dot com/resources/detect-mobile-javascript.htm

#11   ianhaney

ianhaney
  • Members
  • 852 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 07 June 2012 - 09:25 PM

Cool thank you

I put it in the template_top.php file with the other jquery and js bit is so it looks like this

Hopefully its ok

<?php
$handsetdetection= '<script type="text/javascript" src=" '.(isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://') . 'api.handsetdetection.com/sites/js/12055.js"></script>';
echo $handsetdetection;
?>
<?php
/*
  $Id$
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
  Copyright (c) 2010 osCommerce
  Released under the GNU General Public License
*/
  $oscTemplate->buildBlocks();
  if (!$oscTemplate->hasBlocks('boxes_column_left')) {
	$oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
  }
 
  if (!$oscTemplate->hasBlocks('boxes_column_right')) {
	$oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
  }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<?php include(DIR_WS_INCLUDES . 'easy_meta_tags.php'); ?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" />
<script type="text/javascript" src="ext/jquery/jquery-1.4.2.min.js"></script>
<link href="ext/jquery/jpecrga/jpecrga-default.css" rel="stylesheet" type="text/css" />
<script src="ext/jquery/jpecrga/jpecrga-3.0.0.js"></script>
<script type="text/javascript">
  $(document).ready( function () {
										$.ws.jpecrga({
												gaKey: '<?php echo tep_output_string(MODULE_HEADER_TAGS_GOOGLE_ANALYTICS_ID); ?>',
	  geolocate: false
	
										});
								});
		</script>
<!-- begin theme switcher -->
	
<?php
   
	   if( !defined( 'MODULE_THEMES_SWITCHER_STATUS' ) ) {
	 ?>
		  <link rel="stylesheet" type="text/css" href="ext/jquery/ui/ui-darkness/jquery-ui-1.8.6.css"/>
		  <link rel="stylesheet" type="text/css" href="catalog/mystyle.css"/>
<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.6.min.js"></script>
	 <?php

	   }else{
  
		  $theme_name = MODULE_THEMES_SWITCHER_THEME;
	 
		  $ui_version_js = MODULE_THEMES_SWITCHER_VERSION_JS;
	 
		  $ui_version_css = MODULE_THEMES_SWITCHER_VERSION_CSS;
		  ?>
   
	  <link rel="stylesheet" type="text/css" href="ext/jquery/ui/<?php echo $theme_name ; ?>/<?php echo $ui_version_css ; ?>" />
	 
		  <script type="text/javascript" src="ext/jquery/ui/<?php echo $ui_version_js ; ?>"></script>
	 
<?php	  
 
		}
	  ?>
	 
<!-- end theme switcher -->
<?php
  if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) {
?>
<script type="text/javascript" src="ext/jquery/ui/i18n/jquery.ui.datepicker-<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>.js"></script>
<script type="text/javascript">
$.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']);
</script>
<?php
  }
?>
<script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" />
<script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="ext/960gs/<?php echo ((stripos(HTML_PARAMS, 'dir="rtl"') !== false) ? 'rtl_' : ''); ?>960_24_col.css" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<?php echo $oscTemplate->getBlocks('header_tags'); ?>
<link rel="stylesheet" type="text/css" href="ext/category_menu/category_menu.css" />
</head>
<body>
<div id="bodyWrapper" class="container_<?php echo $oscTemplate->getGridContainerWidth(); ?>">
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<div id="bodyContent" class="grid_<?php echo $oscTemplate->getGridContentWidth(); ?> <?php echo ($oscTemplate->hasBlocks('boxes_column_left') ? 'push_' . $oscTemplate->getGridColumnWidth() : ''); ?>">


#12   ianhaney

ianhaney
  • Members
  • 852 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 07 June 2012 - 09:45 PM

Sorry

I tested out the mobile version of the site on my wifes IPhone and put in www.irhmedia.co.uk and it took me to your noira mobile website and not my irhmedia mobile website

could that be to do with the javascript detection coding I put in or something else

#13   ianhaney

ianhaney
  • Members
  • 852 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 07 June 2012 - 10:00 PM

Its cool sorted it, think it was using your details but I went to the handdetection website and created my own profile and all is good, tested it again on my wifes iphone and it redirected to my mobile version of the website

Thank you so much for all your help, really appreciate it

#14   npn2531

npn2531
  • Members
  • 1,060 posts
  • Real Name:Jase
  • Gender:Not Telling

Posted 07 June 2012 - 11:04 PM

Glad it worked well!

#15   ianhaney

ianhaney
  • Members
  • 852 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 16 June 2012 - 09:55 AM

Hi npn2531

I am still playing around with the mobile oscommerce like changing colours etc and love it

I was just wondering though on the mobile-index.php its got Reviews and Specials, how do I change them to Say Login and Create Account

Kind regards

Ian

#16   bensuba

bensuba
  • Members
  • 20 posts
  • Real Name:ben
  • Gender:Male

Posted 04 August 2012 - 04:22 AM

This is not free , right? u will have to register on that website and paying?

#17   fatpastyhead

fatpastyhead
  • Members
  • 5 posts
  • Real Name:fred ford

Posted 28 October 2012 - 09:40 AM

Hello. I need help with this and did not see the point in opening a new thread so I hope someone will see this.

So far I have done the following with mobile oscommerce.

I have downloaded and uploaded all the files to their required places.

I have edited includes/classes/boxes.php and added the extra classes from OSC to CSSv2

I have added all the definitions to includes/filenames.php

I went into phpadmin and added the following:

categories_mini in categories

categories_metadescription in categories_description

categories_image_m in categories

products_minidescp in products

products_image_small in products

All works fine apart from the mobile-cart.php - if there is no product it shows "Your Shopping Cart is Empty!" but as soon as i add something i just get 500 internal server error.

I have absolutely no idea what to do from here. I must be doing something wrong but I don't know what? any help would be greatly appreciated.

#18   fatpastyhead

fatpastyhead
  • Members
  • 5 posts
  • Real Name:fred ford

Posted 29 October 2012 - 08:49 PM

Nevermind I have fixed it. I noticed a few people were having this issue so here is the fix.

add the following code to the bottom of the modified boxes.php, just before the closing tag.

// added new class for shopping cart  
  class shoppingcartTable extends tableBox {
    function shoppingcartTable($contents) {
      $this->table_parameters = 'class="shoppingcart"';
      $this->tableBox($contents, true);
    }
  }
///// EOF ORIGINAL TABLEBOXES

and voila, it works a treat.

#19   monand

monand
  • Members
  • 2 posts
  • Real Name:monique pauwels

Posted 18 November 2012 - 03:45 PM

Hello.I am beginer with mysql/phpmyadmin and need help with adding the following though phpmyadmin:
categories_mini in categories
categories_metadescription in categories_description
categories_image_m in categories
products_minidescp in products
products_image_small in products
It would  be great if someone can tell me the sql code to paste for adding this. Apart not knowing how to add this to my database, all works very fine
thank in advance for help

#20   npn2531

npn2531
  • Members
  • 1,060 posts
  • Real Name:Jase
  • Gender:Not Telling

Posted 19 November 2012 - 06:37 PM

Install this contribution and it you should be able to add the fields from the admin, and best of all you will be able to add the text of these fields from the admin instead of going to phpmyAdmin:
http://addons.oscommerce.com/info/2202

however, to add them manually to the database:
ALTER TABLE 'categories_description' ADD 'categories_minidescp' VARCHAR( 120 ) NOT NULL ,
ADD 'categories_metadescription' VARCHAR( 120) NOT NULL
and
ALTER TABLE 'products_description' ADD 'products_minidescp' VARCHAR( 120 ) NOT NULL ,
ADD 'products_image_small' VARCHAR( 12 ) NOT NULL

note, change the value of varchar as needed. You can also use TEXT instead of VARCHAR