mobile version of my oscommerce website
#1
Posted 07 June 2012 - 03:16 PM
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
Posted 07 June 2012 - 04:18 PM
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.
OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120
#3
Posted 07 June 2012 - 04:30 PM
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
Posted 07 June 2012 - 04:38 PM
What do I need to do now Jase
#5
Posted 07 June 2012 - 05:11 PM
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
Posted 07 June 2012 - 06:51 PM
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
Posted 07 June 2012 - 06:56 PM
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
OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120
#8
Posted 07 June 2012 - 07:10 PM
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.
OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120
#9
Posted 07 June 2012 - 08:15 PM
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
Posted 07 June 2012 - 08:51 PM
www dot hand-interactive dot com/resources/detect-mobile-javascript.htm
OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120
#11
Posted 07 June 2012 - 09:25 PM
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
Posted 07 June 2012 - 09:45 PM
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
Posted 07 June 2012 - 10:00 PM
Thank you so much for all your help, really appreciate it
#14
Posted 07 June 2012 - 11:04 PM
OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120
#15
Posted 16 June 2012 - 09:55 AM
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
Posted 04 August 2012 - 04:22 AM
#17
Posted 28 October 2012 - 09:40 AM
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
Posted 29 October 2012 - 08:49 PM
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
Posted 18 November 2012 - 03:45 PM
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
Posted 19 November 2012 - 06:37 PM
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 NULLand
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
OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120









