Jump to content



Photo
* * * * * 3 votes

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


  • Please log in to reply
1347 replies to this topic

#1341 ONLINE   raiwa

raiwa
  • Community Sponsor
  • 479 posts
  • Real Name:Rainer Schmied
  • Gender:Male
  • Location:Sant Iscle de Vallalta, Barcelona, Spain

Posted 07 November 2014 - 17:40

Just installed your add on.

I have Mini Template System installed and when I try to access via a mobile I get the following error

 

Warning: require(mts/configuration/files/application_top.php): failed to open stream: No such file or directory in /home/....../public_html/catalog/includes/application_top.php on line 455

 

The line at 455 is -  require('mts/configuration/files/application_top.php');

 

I commented it out and the mobile site worked, but obviously the desk top site didn't

 

I assume that I wuld need to add an if statement ie if its mobile session then its not active, around it, but don't know how

 

Thanks

Frank

 

Hello Frank @fmr,

 

you may need to do the modification similar to the configure.php:

  require((defined('MOBILE_SESSION') ? '../includes/configure.php' : 'includes/configure.php'));

I guess it should be:

  require((defined('MOBILE_SESSION') ? '../mts/configuration/files/application_top.php' : 'mts/configuration/files/application_top.php'));

regards

Rainer



#1342   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,606 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 07 November 2014 - 18:15

@raiwa

 

Issue fixed already. MTS is not getting included in case of MOBILE_SESSION

 

Great work by the way, it improved a lot since the last time I saw it installed


  • fmr likes this

#1343   fmr

fmr
  • Members
  • 22 posts
  • Real Name:Frank

Posted 07 November 2014 - 18:38

Problem solved, thanks for the excellent support George (Multimixer)



#1344   fmr

fmr
  • Members
  • 22 posts
  • Real Name:Frank

Posted 07 November 2014 - 18:41

Rainer, thanks also, I just saw your reply as I was posting the reply to George, great support all round, thank you



#1345   fmr

fmr
  • Members
  • 22 posts
  • Real Name:Frank

Posted 08 November 2014 - 08:31

Is there a way to skip the index page and go straight to the catalog_mb page ie catalog_mb would be the home page

 

I have the add on working it looks great

 

Frank



#1346 ONLINE   raiwa

raiwa
  • Community Sponsor
  • 479 posts
  • Real Name:Rainer Schmied
  • Gender:Male
  • Location:Sant Iscle de Vallalta, Barcelona, Spain

Posted 09 November 2014 - 10:19

Is there a way to skip the index page and go straight to the catalog_mb page ie catalog_mb would be the home page

 

I have the add on working it looks great

 

Frank

 

Hello Frank @fmr,

 

Yes there is:

 

1. rename the original mobile/index.php to something like index_old.php or delete it.

 

2. rename catalog_mb.php to index.php

 

3.a in: mobile/includes/header.php

find line 110:

data-grid="d"

change to:

data-grid="c"

for 4 item navbar instead of 5 item

 

3b. same file find and delete line 113:

	<li>'.tep_button_jquery( TEXT_SHOP, tep_mobile_link(FILENAME_CATALOG_MB), 'a' , '' , 'id="boutique" data-icon="custom"' ).'</li>

4. in: catalog/includes/filenames.php

find:

  define ('FILENAME_CATALOG_MB', 'catalog_mb.php');

change to:

  define ('FILENAME_CATALOG_MB', 'index.php');

Alternative to 4 you can change FILENAME_CATALOG_MB to FILENAME_DEFAULT in all mobile files. This would be cleaner, but it's more job.

 

regards

Rainer



#1347   fmr

fmr
  • Members
  • 22 posts
  • Real Name:Frank

Posted 09 November 2014 - 11:09

Thanks Rainer,

Just noticed what could be a bug, the Checkout with paypal button allows you to checkout when there is not enough stock, if I select the normal checkout method I get looped back to the cart the way it should be.

 

Frank



#1348   fmr

fmr
  • Members
  • 22 posts
  • Real Name:Frank

Posted 09 November 2014 - 11:14

Sorry Rainer, ignore that last post, I see it does it also in the desktop version, its obviously a oscommerce problem

 

Frank