Jump to content
Latest News: (loading..)
bumbarash

[Contribution] iOSC - mobile version of OSC on your iPhone

Recommended Posts

@@raiwa yes, this seem to work and be stable. I have been testing since just before Christmas (please keep in mind this is our slowest time of the year - for orders and traffic).

 

Take a look at the screen cap attached however at the page views per session. It seems to be a good result. No one is complaining....

 

Just a couple quick things.

 

Amazon Kindle Fire doesn't seem to pick up the re-direct. And also some of the Galaxy Tab (2 and 4) and Note (2 and 10).

 

Hello Scott @@greasemonkey,

 

For Samsung Galaxy and Note models you could try to add this:

gt-p|gt-n|

to the second block, so it should look like this:

if(preg_match('/(android|bb\d+|meego|android|ipad|playbook|silk).+mobile|puffin\/3.9174it|gt-p|gt-n|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i',substr($useragent,0,4)))

For kindle: all Models included in the user agent switcher work for me correct.

If you know the exact model and it's user agent string which doesn't trigger redirect, we could try to fix it.

 

regards

Rainer

Share this post


Link to post
Share on other sites

@@raiwa thank you kindly Rainer. I have finally taken time tot update to 7.5.6 today.... and I will test this inside the new deivce list file.

 

On another side note. I have issues with the home button frequently - and I thought updating may help... But it didn't.

 

Have you experienced any issues with the home button in the header either not working, or taking you back 1 page?

 

I'm not sure if its me or not - however, i was thinking code like below would help in mobile/header.php

        <li>'.tep_button_jquery( TEXT_HOME, $mobile_url, 'a' , '' , 'id="homes" data-icon="custom"' ).'</li>

Share this post


Link to post
Share on other sites

@@raiwa one other small issue... from 7.5.5... in mobile/includes/classes/header_title.php.

 

You are changing to

if(sizeof($cart->contents) > 0) {
					if ( basename($PHP_SELF) != FILENAME_SHOPPING_CART ) {
						$rightButton = '<a id="shopping_cart" data-role="button" data-icon="custom" href="' . tep_mobile_link(FILENAME_SHOPPING_CART) . '">' . TEXT_SHOPPING_CART . '</a>';
					} else {
						$rightButton = '<a data-role="button" data-icon="arrow-r" href="' . tep_mobile_link(FILENAME_CHECKOUT_SHIPPING) . '">' . HEADER_TITLE_CHECKOUT . '</a>';
					}
				}

Which does not include SSL to checkout_shipping....

 

Shouldn't it be like;

				if(sizeof($cart->contents) > 0) {
					if ( basename($PHP_SELF) != FILENAME_SHOPPING_CART ) {
						$rightButton = '<a id="shopping_cart" data-role="button" data-icon="custom" href="' . tep_mobile_link(FILENAME_SHOPPING_CART) . '">' . TEXT_SHOPPING_CART . '</a>';
					} else {
						$rightButton = '<a data-role="button" data-icon="arrow-r" href="' . tep_mobile_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . HEADER_TITLE_CHECKOUT . '</a>';
					}
				}

Share this post


Link to post
Share on other sites

 

@@raiwa thank you kindly Rainer. I have finally taken time tot update to 7.5.6 today.... and I will test this inside the new deivce list file.

 

On another side note. I have issues with the home button frequently - and I thought updating may help... But it didn't.

 

Have you experienced any issues with the home button in the header either not working, or taking you back 1 page?

 

I'm not sure if its me or not - however, i was thinking code like below would help in mobile/header.php

        <li>'.tep_button_jquery( TEXT_HOME, $mobile_url, 'a' , '' , 'id="homes" data-icon="custom"' ).'</li>

@@greasemonkey,

 

Yes, I had to modify this also in my store, I added data-ajax="false" to the link:

        <li>'.tep_button_jquery( TEXT_HOME, tep_mobile_link(FILENAME_DEFAULT), 'a' , '' , 'id="homes" data-icon="custom" data-ajax="false"' ).'</li>

However it seems this is due to customizations, on an original unmodified store it works correct.

 

 

@@raiwa one other small issue... from 7.5.5... in mobile/includes/classes/header_title.php.

 

You are changing to

if(sizeof($cart->contents) > 0) {
					if ( basename($PHP_SELF) != FILENAME_SHOPPING_CART ) {
						$rightButton = '<a id="shopping_cart" data-role="button" data-icon="custom" href="' . tep_mobile_link(FILENAME_SHOPPING_CART) . '">' . TEXT_SHOPPING_CART . '</a>';
					} else {
						$rightButton = '<a data-role="button" data-icon="arrow-r" href="' . tep_mobile_link(FILENAME_CHECKOUT_SHIPPING) . '">' . HEADER_TITLE_CHECKOUT . '</a>';
					}
				}

Which does not include SSL to checkout_shipping....

 

Shouldn't it be like;

				if(sizeof($cart->contents) > 0) {
					if ( basename($PHP_SELF) != FILENAME_SHOPPING_CART ) {
						$rightButton = '<a id="shopping_cart" data-role="button" data-icon="custom" href="' . tep_mobile_link(FILENAME_SHOPPING_CART) . '">' . TEXT_SHOPPING_CART . '</a>';
					} else {
						$rightButton = '<a data-role="button" data-icon="arrow-r" href="' . tep_mobile_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . HEADER_TITLE_CHECKOUT . '</a>';
					}
				}

 

Yes, this is correct, I'll include this fix in the next update.

 

Thank you

Rainer

Share this post


Link to post
Share on other sites

And another question: Why don't pages load when I turn on 'ajax page load' in the mobile settings?

 

Hello Kira @@Andromeda100,

 

In an unmodified store it should work. Some modifications, usually javascripts which are not jquery mobile compliant or form submissions, produce this error on concrete pages.

These pages can be added to the ajax page load exclusion list in mobile/includes/header.php.

Another possibility to fix it is to add data-ajax="false" or rel="external" to the page link.

For more information please read the file included in the iosc Mobile Add-On Package: "Add-On Support.doc" Chapter 11.

And check also:

http://view.jquerymobile.com/1.3.2/dist/demos/widgets/links/

 

regards

Rainer

Share this post


Link to post
Share on other sites

Hello,

 

After installing the mobile and the german market contrib it appears two error messages after creating an account and confirming an order:

 

'Fatal error: Call to undefined function tep_validate_postcode() in ...'

 

Fatal error: Call to undefined method oscTemplate::getContent
mobile/checkout_success.php

 

I don't know how to solve it...
 

Share this post


Link to post
Share on other sites

Hello,

 

After installing the mobile and the german market contrib it appears two error messages after creating an account and confirming an order:

 

'Fatal error: Call to undefined function tep_validate_postcode() in ...'

 

Fatal error: Call to undefined method oscTemplate::getContent

mobile/checkout_success.php

 

I don't know how to solve it...

 

 

Hello @Günther1968,

 

I'm sorry, I do not use this add-on myself and the support was added by another contributer. However I had a look on it and found that the missing function "tep_validate_postcode" is not part of the standard package. So you can fix it just removing this postcode check in all mobile files. Compare with the main store files.

For the other error, I believe the mobile support package is not suitable for the newest 2.3.4 osc version and it's content modules. So you would need to place a copy of the modified/added content modules of the checkout_success page to the mobile site (mobile/includes/modules/content/checkout_success/..)

Then modify the page module to fit mobile design/layout, buttons etc.

Another solution: use the old version of the mobile checkout_success page without content module, included in the package for osc 2.3.3.4.

 

I sent you a private message with the contact of the person who added the support package for further help.

 

Kind regards

Rainer

Edited by raiwa

Share this post


Link to post
Share on other sites

@@raiwa thank you kindly Rainer

 

 

Yes, I had to modify this also in my store, I added data-ajax="false" to the link:

 

I notice the link in the header logo also does not work ocasionally. Is there an easy way to add data-ajax="false" to?

<div id="headerLogo"><a href="' . tep_mobile_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_HTTP_MOBILE . DIR_MOBILE_IMAGES . 'store_logo.png', STORE_NAME) . '</a>';

Share this post


Link to post
Share on other sites

 

@@raiwa thank you kindly Rainer

 

 

I notice the link in the header logo also does not work ocasionally. Is there an easy way to add data-ajax="false" to?

<div id="headerLogo"><a href="' . tep_mobile_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_HTTP_MOBILE . DIR_MOBILE_IMAGES . 'store_logo.png', STORE_NAME) . '</a>';

 

Hello Scott @@greasemonkey,

 

Should be like that:

<div id="headerLogo"><a href="' . tep_mobile_link(FILENAME_DEFAULT) . '" data-ajax="false">' . tep_image(DIR_WS_HTTP_MOBILE . DIR_MOBILE_IMAGES . 'store_logo.png', STORE_NAME) . '</a>';

Have also a look there:

http://view.jquerymobile.com/1.3.2/dist/demos/widgets/links/

 

regards

Rainer

Share this post


Link to post
Share on other sites

Hello,

 

I am having an error show up when I click on a category on the mobile side.  The error reads: 

 

Warning: Missing argument 1 for tep_mobile_selection(), called in /home/bandman/public_html/mobile_catalogue.php on line 103 and defined in /home/bandman/public_html/includes/functions/general.php on line 62

 

Warning: Missing argument 2 for tep_mobile_selection(), called in /home/bandman/public_html/mobile_catalogue.php on line 103 and defined in /home/bandman/public_html/includes/functions/general.php on line 62

 

Warning: Invalid argument supplied for foreach() in home/bandman/public_html/mobile/includes/functions/general.php on line 66

 

Please let me know if you have any idea why these errors are occurring.  Would it have anything to do with upgrading my PHP?

 

Thanks in advance!

Share this post


Link to post
Share on other sites

Hello,

 

I am having an error show up when I click on a category on the mobile side.  The error reads: 

 

Warning: Missing argument 1 for tep_mobile_selection(), called in /home/bandman/public_html/mobile_catalogue.php on line 103 and defined in /home/bandman/public_html/includes/functions/general.php on line 62

 

Warning: Missing argument 2 for tep_mobile_selection(), called in /home/bandman/public_html/mobile_catalogue.php on line 103 and defined in /home/bandman/public_html/includes/functions/general.php on line 62

 

Warning: Invalid argument supplied for foreach() in home/bandman/public_html/mobile/includes/functions/general.php on line 66

 

Please let me know if you have any idea why these errors are occurring.  Would it have anything to do with upgrading my PHP?

 

Thanks in advance!

 

Hello Eric @@bandmans,

 

Can you please tell your exact iosc mobile version?

Then please post the code you have in mobile_catalogue line 62.

And the function "tep_mobile_selection" in the file: mobile/includes/function/general.php around line 66-77 may be helpful too.

 

Which changes did you made when the error appeared? Only PHP version update? From which PHP version to which version?

 

regards

Rainer

Edited by raiwa

Share this post


Link to post
Share on other sites

@@raiwa,

 

Thank you for your response.  

 

I apologize -- I was incorrect -- I actually didn't upgrade my PHP version.  What happened was that I was upgrading my version of Plesk to 10.4.  While performing the upgrade, my server crashed, and GoDaddy had to move me over to a new server. They also put me on a server that has cPanel in stead of Plesk now.  Somewhere in this transition the issue must have occurred. 

 

I believe I am running version iOSC3_5.4rev2

 

Here are the various snippets of code where the issues are occurring: 

 

 /home/bandman/public_html/mobile_catalogue.php on line 103 (and some additional lines which might help)

if (isset($HTTP_GET_VARS['cPath']) != FALSE) {
echo tep_mobile_selection();
if ($specials_count['total'] > 2000 ) {
echo tep_mobile_selection(tep_mobile_link(FILENAME_SPECIALS), array(tep_image(DIR_WS_HTTP_CATALOG . DIR_MOBILE_IMAGES . 'specials.png'), BOX_HEADING_SPECIALS)).'<div class="fleche"><img src="' . DIR_WS_HTTP_CATALOG . DIR_MOBILE_IMAGES . 'arrow_select.png" /></div>';
}
 
/home/bandman/public_html/includes/functions/general.php on line 62 (and some additional lines, which also includes the foreach() error on line 66)
function tep_mobile_selection($path, $elements) {
  $ret = '<tr class="categories"';
  $ret .= ($path ? ' onclick="window.location.href=\'' . $path .'\'"' : '' );
  $ret .=  '>';
  foreach ($elements as $element) {
  $ret .= '<td class="categories">' . tep_mobile_path_element($path,$element) . '</td>';
  }
  $ret .= '<td class="categories" align="right">';
  //$ret .= ($path) ?  '<a href="' . $path .'">' . tep_image(DIR_MOBILE_IMAGES . 'arrow_select.png') . '</a>' : '<input type="image" src="' .DIR_MOBILE_IMAGES . 'arrow_select.png' . '" border="0" alt="">';
return $ret;
 
  }
 
 
Let me know if you need anything else.  
 
Thanks!

Share this post


Link to post
Share on other sites

Hello Eric @@bandmans,

 

It seems you tried to remove the New Products link.

 

Instead of:

if (isset($HTTP_GET_VARS['cPath']) != FALSE) {
echo tep_mobile_selection();

The unmodified code is:

	if (isset($HTTP_GET_VARS['cPath']) != TRUE ) {
		echo tep_mobile_selection(tep_mobile_link(FILENAME_PRODUCTS_NEW), array(tep_image(DIR_MOBILE_IMAGES . 'new.png'), TEXT_MOBILE_PRODUCTS_NEW)).'<div class="fleche"><img src="' . DIR_MOBILE_IMAGES . 'arrow_select.png" /></div>';

If you wish to remove the New Products button, you should remove all line so it should look like this:

if (isset($HTTP_GET_VARS['cPath']) != FALSE) {

if ($specials_count['total'] > 2000 ) {
echo tep_mobile_selection(tep_mobile_link(FILENAME_SPECIALS), array(tep_image(DIR_WS_HTTP_CATALOG . DIR_MOBILE_IMAGES . 'specials.png'), BOX_HEADING_SPECIALS)).'<div class="fleche"><img src="' . DIR_WS_HTTP_CATALOG . DIR_MOBILE_IMAGES . 'arrow_select.png" /></div>';
}

The error is produced when you leave the "tep_mobile_selection()" function without the required parameters in place.

 

It seems this trick: if ($specials_count['total'] > 2000 ) { is also used for not to show the specials link button.

 

You should rather remove or comment out all this code block if you do not wish to show these links:

<table id="categoriesTable" class="categories" width="100%" cellpadding="0" cellspacing="0">
<?php
	if (isset($HTTP_GET_VARS['cPath']) != TRUE ) {
		echo tep_mobile_selection(tep_mobile_link(FILENAME_PRODUCTS_NEW), array(tep_image(DIR_MOBILE_IMAGES . 'new.png'), TEXT_MOBILE_PRODUCTS_NEW)).'<div class="fleche"><img src="' . DIR_MOBILE_IMAGES . 'arrow_select.png" /></div>';
		if ($specials_count['total'] > 0 ) {
		echo tep_mobile_selection(tep_mobile_link(FILENAME_SPECIALS), array(tep_image(DIR_MOBILE_IMAGES . 'specials.png'), MODULE_BOXES_SPECIALS_TITLE)).'<div class="fleche"><img src="' . DIR_MOBILE_IMAGES . 'arrow_select.png" /></div>';
		}
		?></table><?php
	}
?>

However the change to another hosting could not produce that wrong coding.

 

regards

Rainer

Edited by raiwa

Share this post


Link to post
Share on other sites

Rainer @@raiwa,

 

That did the trick!   That is so weird -- I haven't edited any of the mobile code since I had it installed and working almost a year ago.   Anyhow, obviously it did get edited at some point.  Thanks for all of the help!  

 

Eric

Share this post


Link to post
Share on other sites

@@raiwa I hope all is well. I'm seeing some strange re-direct behavior since upgrading to 7.5.6 last week (from 7.5.3)

 

When clicking an external link to the classic site (facebook for example) from a mobile device I'm not being re-directed to the mobile site.

 

Example 1; if I click the link from facebook; www.mysite.com/specials.php from my iphone I get... www.mysite.com/specials.php. I SHOULD be getting www.mysite.com/mobile/specials.php

 

Example 2; if I type in the IOS browser; www.mysite.com/specials.php from my iphone all is good... I get redirected to www.mysite.com/mobile/specials.php

 

I have confirmed this behavior by clicking a link from your facebook page - which looks to be running mobile 7.5.5

Share this post


Link to post
Share on other sites

Hello Scott @@greasemonkey,

 

Thanks, all ok.

Oh yes, this is due to the classic redirect introduced in 7.5.3., I wasn't aware of it until now, thank you.

The "redirectCancelled=true" parameter is used for both redirects, mobile and classic and stored as a session parameter.

So on mobile site it is stored in sessions in the mobile application_top to avoid redirect to classic if the manual link from classic to mobile is used on a desktop device.

When an external link is used the first time from a mobile device, redirect will work. When its used the second time, the "redirectCancelled" parameter is stored in sessions and prevent a new redirect to mobile.

The solution should be to use a different parameter for mobile and classic. We'll change only the mobile redirect parameter to "MredirectCancelled", it's less job.

 

Here we go:

1. Change line 62-70 in mobile/includes/classes/mobile_redirect.php to:

    function isCancelled() {
    	if (tep_session_is_registered('MredirectCancelled')) 
    		return true;
    	if(isset($_GET['MredirectCancelled']) && $_GET['MredirectCancelled'] == 'true') {
    		tep_session_register('MredirectCancelled');
    		return true;
    	}
    	return false;
    }

2. Change line 2-10 in mobile/includes/classes/classic_redirect.php to:

//BEGIN: CLASSIC REDIRECT_SCRIPT
  $url_replace_from = array('%' . DIR_WS_HTTP_MOBILE .'%', '%' . FILENAME_CATALOG_MB .'%', '%' . FILENAME_SEARCH .'%', '%' . FILENAME_ABOUT .'%', '%credits.php%', '%redirectCancelled=true%',  '/-mp-/', '/-mc-/', '/-mm-/', '/-mpr-/', '/-mpri-/', '/-mpi-/', '/-ma-/', '/-mau-/', '/-mby-/', '/-mf-/', '/-mfc-/', '/-mfri-/', '/-mfra-/', '/-mi-/', '/-mlinks-/', '/-mn-/', '/-mnc-/', '/-mnri-/', '/-mnra-/', '/-mpm-/', '/-mpo-/', '/-mt-/');
  $url_replace_to = array(DIR_WS_HTTP_CATALOG, FILENAME_DEFAULT, FILENAME_DEFAULT, FILENAME_DEFAULT, FILENAME_DEFAULT, 'MredirectCancelled=true', '-p-', '-c-', '-m-', '-pr-', '-pri-', '-pi-', '-a-', '-au-', '-by-', '-f-', '-fc-', '-fri-', '-fra-', '-i-', '-links-', '-n-', '-nc-', '-nri-', '-nra-', '-pm-', '-po-', '-t-');
  $classic_url = (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . preg_replace($url_replace_from, $url_replace_to, htmlspecialchars($_SERVER['REQUEST_URI']));
  
  if(!isset($_GET['MredirectCancelled']) && $_GET['MredirectCancelled'] != 'true' && stripos($classic_url,'MredirectCancelled=true') == 0) {
    $classic_url .= ((stripos($classic_url,'?') > 0) ? '&' : '?') . "MredirectCancelled=true";
  }	
//END: CLASSIC REDIRECT_SCRIPT

3. Change line 16 in catalog/checkout_success.php AND catalog/checkout_payment.php to:

  if ( tep_session_is_registered('mobilesession') && !tep_session_is_registered('MredirectCancelled') )

4. Change line 16 in catalog/shopping_cart.php to:

  if ( tep_session_is_registered('mobilesession') && !isset($_GET['MredirectCancelled']) && !tep_session_is_registered('MredirectCancelled') )

Please confirm if it works ok.
 I'll include it then in the next update.

 

Best regards

Rainer

Share this post


Link to post
Share on other sites

I downloaded this contribution the other day after I switched to Auth net as my processor.   I was previously using a reworked version of my web store on a subdomain as mobile.

 

after finding this I would like to use the iOSC as my mobile frontend and have it kinda working..   My problem is that some of the links go back to the desktop site rather than the mobile site, for the most part I have found and fixed these in the source.

 

However;   I have one that has halted me.

 

if you go here:

http://whoolie.com/mobile_product_info.php?cPath=26&products_id=43

 

click the add to cart button, it does add the item to the cart but pulls up the web version instead of the mobile version.

if you manually change the URL to:  http://whoolie.com/mobile_shopping_cart.php

 

the mobile cart comes up.

 

if you need any more info please let me know!

 

I appear to be trying to use version: Release v2.0c  according to iOSC Description.txt is there a newer version somewhere I should be working with?   My osCommerce version is a modified osCommerce Online Merchant v2.3.3.4

Edited by whoolieshop

Share this post


Link to post
Share on other sites

I downloaded this contribution the other day after I switched to Auth net as my processor.   I was previously using a reworked version of my web store on a subdomain as mobile.

 

after finding this I would like to use the iOSC as my mobile frontend and have it kinda working..   My problem is that some of the links go back to the desktop site rather than the mobile site, for the most part I have found and fixed these in the source.

 

However;   I have one that has halted me.

 

if you go here:

http://whoolie.com/mobile_product_info.php?cPath=26&products_id=43

 

click the add to cart button, it does add the item to the cart but pulls up the web version instead of the mobile version.

if you manually change the URL to:  http://whoolie.com/mobile_shopping_cart.php

 

the mobile cart comes up.

 

if you need any more info please let me know!

 

Hello shane @@whoolieshop,

 

You installed an old outdated version. You should use the newest 7.5.6 version:

http://addons.oscommerce.com/info/8629

 

regards

Rainer

Share this post


Link to post
Share on other sites

Hello shane @@whoolieshop,

 

You installed an old outdated version. You should use the newest 7.5.6 version:

http://addons.oscommerce.com/info/8629

 

regards

Rainer

 

I tried to use the above link once before...   This appears to only have the paypal mobile support files in it.   Ie the full iosc files are not included on that particular page.  Despite it saying full package at the bottom.

 

The download link gives me: PayPalMobileSupport.zip   which includes paypal_express.php and paypal_pro_dp.php without all of the other files that were included in the older download.

Share this post


Link to post
Share on other sites

@@whoolieshop click on the history tab - you will find all the previous versions. You will need - Mobile OSC 7.5.6.

 

The most recent versions (in this case... an update/option for the PayPal app) is always linked to the url. So, if you are using the PP App then you would also have to download iosc Mobile support files for Paypal App.

Share this post


Link to post
Share on other sites

@@whoolieshop click on the history tab - you will find all the previous versions. You will need - Mobile OSC 7.5.6.

 

The most recent versions (in this case... an update/option for the PayPal app) is always linked to the url. So, if you are using the PP App then you would also have to download iosc Mobile support files for Paypal App.

 

 

Ah you're very right, sorry for not looking I just assumed the latest version of the full package was the download link.

Next question i've installed the mobile files into my store and now when I go into:   www.whoolie.com/mobile/  I get the following error:

Warning: require(DIR_WS_INCLUDESfilenames.php) [function.require]: failed to open stream: No such file or directory in /var/www/html/whoolie/includes/application_top.php on line 57

Fatal error: require() [function.require]: Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/php/include;/www/functions:/usr/local/php/include/ZendGdata-1.12.3/library/') in /var/www/html/whoolie/includes/application_top.php on line 57

It LOOKS like the DIR_WS_INCLUDES variable isn't being turned into the proper text by the require statement.  

 

It also threw this error on line 41 of application_top.php

//  require(DIR_WS_FUNCTIONS . '/compatibility.php');

 

changing the line to this:

  require('functions/compatibility.php');

let it go on and then throws the error again on line 57.

Share this post


Link to post
Share on other sites

Ah you're very right, sorry for not looking I just assumed the latest version of the full package was the download link.

Next question i've installed the mobile files into my store and now when I go into:   www.whoolie.com/mobile/  I get the following error:

Warning: require(DIR_WS_INCLUDESfilenames.php) [function.require]: failed to open stream: No such file or directory in /var/www/html/whoolie/includes/application_top.php on line 57

Fatal error: require() [function.require]: Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/php/include;/www/functions:/usr/local/php/include/ZendGdata-1.12.3/library/') in /var/www/html/whoolie/includes/application_top.php on line 57

It LOOKS like the DIR_WS_INCLUDES variable isn't being turned into the proper text by the require statement.  

 

It also threw this error on line 41 of application_top.php

//  require(DIR_WS_FUNCTIONS . '/compatibility.php');

 

changing the line to this:

  require('functions/compatibility.php');

let it go on and then throws the error again on line 57.

 

 @@whoolieshop,

recheck the modifications in: catalog/includes/configure.php and catalog/includes/application_top.php

Edited by raiwa

Share this post


Link to post
Share on other sites

 @@whoolieshop,

recheck the modifications in: catalog/includes/configure.php and catalog/includes/application_top.php

 

 

Okay, got these sorted out it seems and now i've got another issue.

http://whoolie.com/mobile/catalog_mb.php?cPath=1_17_26&osCsid=hukum92cjaectmohktrnq66ds1

when I go to a category and actually pull up an item there is no information shown, do I need to make modifications to my database to get this part to work?   I haven't run the db setup php file yet but didn't see that it was required and would rather not modify my database unless its required!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×