Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

mobile version of my oscommerce website


Guest

Recommended Posts

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

Link to comment
Share on other sites

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.

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

Hi npn2531

 

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

 

Do I download mobile-oscommerce-1.0.zip

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

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.

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

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 [email protected]

Link to comment
Share on other sites

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

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

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() : ''); ?>">

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
Share on other sites

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

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...