Jump to content

raiwa

♥Ambassador
  • Content count

    3,458
  • Joined

  • Last visited

  • Days Won

    115

Posts posted by raiwa


  1. Try then the code of version 4.1:

     

    <td class="headerNavigation" id="headerBoutique" onclick="location.href='<?php echo tep_mobile_link(FILENAME_CATALOG);?>'"><a href="<?php echo tep_mobile_link(FILENAME_CATALOG);?>"><?php echo TEXT_SHOP; ?></a></td>
    <td class="headerNavigation" id="headerAccount" onclick="location.href='<?php echo tep_mobile_link(FILENAME_MOBILE_ACCOUNT);?>'"><a href="<?php echo tep_mobile_link(FILENAME_MOBILE_ACCOUNT);?>"><?php echo TEXT_ACCOUNT; ?></a></td>
    <td class="headerNavigation" id="headerSearch" onclick="location.href='<?php echo tep_mobile_link(FILENAME_SEARCH);?>'"><a href="<?php echo tep_mobile_link(FILENAME_SEARCH);?>"><?php echo IMAGE_BUTTON_SEARCH; ?></a></td>
    <td class="headerNavigation" id="headerAbout" onclick="location.href='<?php echo tep_mobile_link(FILENAME_MOBILE_ABOUT);?>'"><a href="<?php echo tep_mobile_link(FILENAME_MOBILE_ABOUT);?>"><?php echo TEXT_ABOUT; ?></a></td>
    

     

     

    Maybe this will do it for you,

    in my shop it didnt work that's why I changed it.

     

    regards

    Rainer

     

     

    Another posibility could be to put the complete image path hardcoded:

     

    www.bitcorner.de/shop/mobile/images/home.png
    

    instead of:

    DIR_WS_HTTP_CATALOG . DIR_MOBILE_IMAGES. "home.png"
    

     

     

    Rainer


  2. This does not work because the image of the link is not there. There is only the name of the link present.

    Only when I add id="headerShop", the image is shown, but again only the text is active and not also the

    image.

     

    I am using Firefox 16.0.1. You can see the behaviour here:

    http://www.bitcorner.de/shop/mobile_index.php

     

    Andreas

     

    Try then the code of version 4.1:

     

    <td class="headerNavigation" id="headerBoutique" onclick="location.href='<?php echo tep_mobile_link(FILENAME_CATALOG);?>'"><a href="<?php echo tep_mobile_link(FILENAME_CATALOG);?>"><?php echo TEXT_SHOP; ?></a></td>
    <td class="headerNavigation" id="headerAccount" onclick="location.href='<?php echo tep_mobile_link(FILENAME_MOBILE_ACCOUNT);?>'"><a href="<?php echo tep_mobile_link(FILENAME_MOBILE_ACCOUNT);?>"><?php echo TEXT_ACCOUNT; ?></a></td>
    <td class="headerNavigation" id="headerSearch" onclick="location.href='<?php echo tep_mobile_link(FILENAME_SEARCH);?>'"><a href="<?php echo tep_mobile_link(FILENAME_SEARCH);?>"><?php echo IMAGE_BUTTON_SEARCH; ?></a></td>
    <td class="headerNavigation" id="headerAbout" onclick="location.href='<?php echo tep_mobile_link(FILENAME_MOBILE_ABOUT);?>'"><a href="<?php echo tep_mobile_link(FILENAME_MOBILE_ABOUT);?>"><?php echo TEXT_ABOUT; ?></a></td>
    

     

     

    Maybe this will do it for you,

    in my shop it didnt work that's why I changed it.

     

    regards

    Rainer


  3. The logo is not the problem. With version 5.1 the icons of shop, catalogue, account, search and information are not shown.

    I now changed in header.php for example the line:

     

    <td class="headerNavigation"><a href="<?php echo tep_mobile_link(FILENAME_DEFAULT);?>"><?php echo tep_image(DIR_WS_HTTP_CATALOG . DIR_MOBILE_IMAGES. "home.png") . "<br>" . TEXT_HOME; ?></a></td>

    to

    <td class="headerNavigation" id="headerShop"><a href="<?php echo tep_mobile_link(FILENAME_DEFAULT);?>"><?php echo tep_image(DIR_WS_HTTP_CATALOG . DIR_MOBILE_IMAGES. "home.png") . "<br>" . TEXT_HOME; ?></a></td>

     

    and the icons are shown. It seems the id="headerShop" is missing in version 5.1 But this is not a nice

    solution because in the text and not the icons are touchable so one has to be very carefull when touchng

    the menubar. Is there a better solution for this?

     

    Andreas

     

     

    I just copied the files from the iOSC 5.1 package to my unmodified oscommerce-2.2rc2a testshop and the icons show correct.

    The "id="headerShop" code should not be necessary.

    I began to adapt today the iOSC5.1 files to oscommerce-2.3.3 (unmodified testshop too) and no problem, the icons show correct there too.

     

    So I can't recreate this bug to help you further.

     

    Regards

    Rainer


  4. I don't know what you mean with banner in the header. When I look at the header.php, there is nothing mentioned about a banner.

     

    Andreas

     

    Hello,

     

    in: mobile/includes/header.php

     

    find this line:

     

    <div id="headerLogo"><?php echo '<a href="' . tep_mobile_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . 'baner_sar_mobile.jpg', STORE_NAME, 0,30) . '</a>';?></div>
    

     

    change: baner_sar_mobile.jpg to the name of a reduced version of your shops logo (copy to image folder) you use in the header of your shop (this I mean with banner)

     

    or if you don't wants to include your logo, put a dummy image like "pixel_trans.gif"

    or try to erase this line, maybe this will resolve the problem too.

     

    regards

    Rainer


  5. ok, installed a fresh iOSC 5.1

    In the install.txt there is a section saying "2. in: Admin/Configuration/Mobile Site"

    I don' know what this means because the is no Admin and no Configuration/Mobile Site.

    So where do I set this:

    define ('MOBILE_PRODUCT_NAME_LENGTH', 55);

    define ('FOOTER_DATE_ENABLED', false);

    define ('FOOTER_SITE_STATS_ENABLED', false);

     

    Another issue is I get the following in the apache error.log:

    [Tue Oct 16 11:51:23 2012] [error] [client 84.179.89.21] File does not exist: /vwww/bitcorner.de/root/shop/includes/ajax.js, referer: http://www.bitcorner.de/shop/mobile_catalogue.php?cPath=537

    [Tue Oct 16 11:51:23 2012] [error] [client 84.179.89.21] File does not exist: /vwww/bitcorner.de/root/shop/includes/split_page_results_ajax.js, referer: http://www.bitcorner.de/shop/mobile_catalogue.php?cPath=537

     

    This ajax.js resides in mobile/includes. Is this wrongly referenced somewhere?

     

    And again, the productimages are not shown if a categorie has more than one page. The

    images are not there on the second and ulterior pages.

     

    Andreas

     

    The configuration settings are moved to the administration area of your shop.

    If you run the sql script you should have one new configuration group called 'mobile site'.

    There you will find now all configuration entries (and some new for advanced search) which were in iOSC 5.0 in mobile/includes/configuration.php

     

    Then make shure there that 'Ajax enabled' is set to 'false'.

    Ajax dosn't work yet in this version.

     

    regards

    Rainer


  6. Hello!

     

    I have installed version Iphone-Mobil phones Oscomerce 4

    Version for vanilla store of Oscommerce. tested on oscommerce-2.2rc2a

    and have the problem that when a categorie has more than one page, the

    first page is displayed correctly but the second page and others are missing

    the pictures and every formatting of the pages.

     

    Some help about this?

     

    Greetings

     

    Andreas

     

    Hello,

     

    consider to update to iOSC 5.1

     

    regards

    Rainer


  7. The reason is an error in the document construction in the checkout_shipping module that replaces tables by DIVs. a DIV is missing or closed to early or misplaced if I remember correctly.

     

    Do a "view source" once the page is rendered, you will see that the DIV tags are not balanced properly

     

    this is what works for me:

     

    <?php
    require_once('mobile/includes/application_top.php');
    require(DIR_WS_CLASSES.'http_client.php');
    // if the customer is not logged on, redirect them to the login page
    if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot();
    tep_redirect(tep_mobile_link(FILENAME_LOGIN, '', 'SSL'));
    }
    // if there is nothing in the customers cart, redirect them to the shopping cart page
    if ($cart->count_contents() < 1) {
    tep_redirect(tep_mobile_link(FILENAME_SHOPPING_CART));
    }
    
    //BOF WA State Tax Modification
    if (tep_session_is_registered('wa_dest_tax_rate')) tep_session_unregister('wa_dest_tax_rate');
    //EOF WA State Tax Modification
    // if no shipping destination address was selected, use the customers own address as default
    if (!tep_session_is_registered('sendto')) {
    tep_session_register('sendto');
    $sendto = $customer_default_address_id;
    } else {
    // verify the selected shipping address
    if ( (is_array($sendto) && empty($sendto)) || is_numeric($sendto) ) {
     $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$sendto . "'");
     $check_address = tep_db_fetch_array($check_address_query);
     if ($check_address['total'] != '1') {
     $sendto = $customer_default_address_id;
     if (tep_session_is_registered('shipping')) tep_session_unregister('shipping');
     }
    }
    }
    require(DIR_WS_CLASSES . 'order.php');
    $order = new order;
    // register a random ID in the session to check throughout the checkout procedure
    // against alterations in the shopping cart contents
    if (!tep_session_is_registered('cartID')) tep_session_register('cartID');
    $cartID = $cart->cartID;
    // if the order contains only virtual products, forward the customer to the billing page as
    // a shipping address is not needed
    if (($order->content_type == 'virtual') || ($order->content_type == 'virtual_weight') ) { // Edited for CCGV
    if (!tep_session_is_registered('shipping')) tep_session_register('shipping');
    $shipping = false;
    $sendto = false;
    tep_redirect(tep_mobile_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }
    $total_weight = $cart->show_weight();
    $total_count = $cart->count_contents();
    // load all enabled shipping modules
    require(DIR_WS_CLASSES . 'shipping.php');
    $shipping_modules = new shipping;
    if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) {
    $pass = false;
    switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {
     case 'national':
     if ($order->delivery['country_id'] == STORE_COUNTRY) {
    	 $pass = true;
     }
     break;
     case 'international':
     if ($order->delivery['country_id'] != STORE_COUNTRY) {
    	 $pass = true;
     }
     break;
     case 'both':
     $pass = true;
     break;
    }
    $free_shipping = false;
    if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
     $free_shipping = true;
     include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php');
    }
    } else {
    $free_shipping = false;
    }
    // process the selected shipping method
    if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') ) {
    if (!tep_session_is_registered('comments')) tep_session_register('comments');
    if (tep_not_null($HTTP_POST_VARS['comments'])) {
     $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
    }
    if (!tep_session_is_registered('shipping')) tep_session_register('shipping');
    if ( (tep_count_shipping_modules() > 0) || ($free_shipping == true) ) {
     if ( (isset($HTTP_POST_VARS['shipping'])) && (strpos($HTTP_POST_VARS['shipping'], '_')) ) {
     $shipping = $HTTP_POST_VARS['shipping'];
     list($module, $method) = explode('_', $shipping);
     if ( is_object($$module) || ($shipping == 'free_free') ) {
    	 if ($shipping == 'free_free') {
    	 $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
    	 $quote[0]['methods'][0]['cost'] = '0';
    	 } else {
    	 $quote = $shipping_modules->quote($method, $module);
    	 }
    	 if (isset($quote['error'])) {
    	 tep_session_unregister('shipping');
    	 } else {
    	 if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {
    		 $shipping = array('id' => $shipping,
    						 'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
    						 'cost' => $quote[0]['methods'][0]['cost']);
    		 tep_redirect(tep_mobile_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    	 }
    	 }
     } else {
    	 tep_session_unregister('shipping');
     }
     }
    } else {
     $shipping = false;
    
     tep_redirect(tep_mobile_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }
    }
    // get all available shipping quotes
    $quotes = $shipping_modules->quote();
    // if no shipping method has been selected, automatically select the cheapest method.
    // if the modules status was changed when none were available, to save on implementing
    // a javascript force-selection method, also automatically select the cheapest shipping
    // method if more than one module is now enabled
    if ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest();
    require(DIR_WS_LANGUAGES . $language . '/checkout_shipping.php');
    $breadcrumb->add(NAVBAR_TITLE_1, tep_mobile_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    $breadcrumb->add(NAVBAR_TITLE_2, tep_mobile_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    require(DIR_MOBILE_INCLUDES . 'header.php');
    $headerTitle->write();
    ?>
    <div id="iphone_content">
    <?php echo tep_draw_form('checkout_address', tep_mobile_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . tep_draw_hidden_field('action', 'process'); ?>
    <div id="checkout_shipping">
    <div id="bouton"><input type="submit" value="<?php echo IMAGE_BUTTON_CONTINUE; ?>"></div>
    <h1><?php //echo TABLE_HEADING_SHIPPING_ADDRESS; ?></h1>
    <div id="ship_add">
    <?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?>
    <?php echo '<a href="' . tep_mobile_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '">' . IMAGE_BUTTON_CHANGE_ADDRESS . '</a>'; ?>
    </div>
    <hr />
    <div>
    <?php
    if (tep_count_shipping_modules() > 0) {
    ?>
     <h1><?php echo TABLE_HEADING_SHIPPING_METHOD; ?></h1>
    
    <?php
    if (sizeof($quotes) > 1 && sizeof($quotes[0]) > 1) {
    ?>
    		 <?php //echo TEXT_CHOOSE_SHIPPING_METHOD; ?>
    <?php
    } elseif ($free_shipping == false) {
    ?>
    		 <?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?>
    
    <?php
    }
    if ($free_shipping == true) {
    ?>
    		 <?php echo $quotes[$i]['icon']; ?> <?php echo FREE_SHIPPING_TITLE; ?>
    		 <?php echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . tep_draw_hidden_field('shipping', 'free_free'); ?>
    
    <?php
    } else {
     $radio_buttons = 0;
     for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
    ?>
     <div id="module">
     <?php echo $quotes[$i]['module']; ?></b> <?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?>
    
    <?php
     if (isset($quotes[$i]['error'])) {
    ?>
    			 <?php echo $quotes[$i]['error']; ?>
    <?php
     } else {
    	 for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
    // set the radio button to be checked if it is the method chosen
    	 $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false);
    /*		 if ( ($checked == true) || ($n == 1 && $n2 == 1) ) {
    		 echo '<tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
    	 } else {
    		 echo '<tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
    	 }
    */
    	 if ( ($n > 1) || ($n2 > 1) ) {
    ?>
     <div id="np-module">				
     <?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked); ?>
     <?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?>
     <?php echo $quotes[$i]['methods'][$j]['title']; ?>
     </div>
    <?php
    	 } else {
    ?>
    			 <?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?>
     <?php echo $quotes[$i]['methods'][$j]['title']; ?>
    <?php
    	 }
    	 $radio_buttons++;
    	 }
     }
     }
    }
    ?>
    <?php
    }
    ?>
     </div>
     </div>
    
    </div>
    <div id="bouton"><input type="submit" value="<?php echo IMAGE_BUTTON_CONTINUE; ?>"></div>
    </div>
    </form>
    <?php require(DIR_MOBILE_INCLUDES . 'footer.php'); ?>
    </div>
    

     

     

    I modified the mobile_checkout_shipping.php in the rev2 like this in order to keep the layou when only one shipping method is available:

     

    find:

    	 <?php echo $quotes[$i]['methods'][$j]['title']; ?>
    <?php
    				    }
    				    $radio_buttons++;
    

     

    and change to:

     <?php echo $quotes[$i]['methods'][$j]['title']; ?>
    <?php
    	    }
    ?>
    </div>
    <?php
    	    $radio_buttons++;
    

     

    hope this helps for your configuration too.

     

    regards

    Rainer


  8. OK in catalog/includes/application_top.php I have this for SEO 2.2

     

    // Ultimate SEO URLs v2.2d

    if ((!defined(SEO_ENABLED)) || (SEO_ENABLED == 'true')) {

    include_once(DIR_WS_CLASSES . 'seo.class.php');

    if ( !is_object($seo_urls) ){

    $seo_urls = new SEO_URL($languages_id);

    }

    }

     

     

    Can I add something to this that checks to see if mobile=true it ignores seo-urls?

    I don't care if it works with seo urls 2.2, I just want it to work. If I click a category or a search or new products, it comes up in mobile just fine. If I click a product in that search it goes back to classic view because of seo 2.2.

     

    Is there a way it can ignore seo 2.2 and just send it to mobile_product_info with an unfriendly url, while the classic view still uses seo friendly urls? It did this on one of the former versions, don't remember which one, but the checkout didn't work from mobile devices.

     

     

    I would love to switch to usu5, but I have to make sure it is not going to affect other contributions that I need in the portion of the site 1st.

     

    I may just set-up another shop on a sub-domain that accesses the same database but uses usu5 and doesn't have so many add-ons. I am finding that iosc is not working with many of my other add-ons like sppc.

     

     

    Hello Dave,

     

    There were a lot of things which didn't work in the older version. I have not too much experience in php programming and it took me about 3 months to modify the existing version to work and a hughe amount of try and error :rolleyes: .

    Then I stripped off all the additional code for the contributions I use, tested this on a virgin osc2.2 test installation and posted this as the new version 5.

    I added support for some additional contributions (which I separated in the last 5.1 version in a new separate package here:

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

    More contributions will be added there in the future when I have time to write the install instructions.

    So if you use other contributions which you want's to work with iOSC, you have to add/adapt the necessary code to iOSC yourself.

    Allthough it would be very apreciated if you upload your solutions to the above mentioned package.

    For the Ultimate SEO URLs v2.2d issue I'm very sorry but I can't help you with this.

    I don't have this version installed on my test shop, no time to do it, and not enough knowledge to give you advise from 'theory'.

    Maybe someone else can help you.

     

    sorry and best regards

    Rainer


  9. I reinstalled from scratch when I upgraded to the new IOSC (the one running in the top level directory)

     

    and my mobile_catalogue.php code is the correct one that you posted above ...

     

    I'm still scratching my head :-)

     

    The footer redirects correctly when SEO URL is turned off though...

     

    Hello,

     

    I try to recompile a list of files which can be envolved in this bug:

     

    .htaccess

    includes/modules/ultimate_seo_urls5/page_modules/mobile_catalogue.php

    includes/modules/ultimate_seo_urls5/page_modules/mobile_product_info.php

    mobile/includes/classes/mobile_redirect.php

    mobile/includes/configure.php

    mobile_catalogue.php

    mobile_product_info.php

    includes/application_top.php

     

    So I would ask you to send me these files (or the relevant parts of code)

    to: info@sarplataygemas.com

     

    I'll try these files in my test shop and see if I can find the bug.

     

    Best regards

    Rainer


  10. OK let me clarify a little.

     

    This worked before in previous versions where it went to mobile_product_info.php for the product information page. I don't care if it has seo urls in the mobile version of the shop, or if it sends to a mobile description from google searches. Would be nice to be totally interchangeable with seo urls 2.2, but I can live with it just being functional as a mobile site without reverting to classic view.

     

    I just want when in category tables or search results, for it to go to a mobile display of the product info when they click on a product. Right now it goes back into classic view unless I turn seo-urls off. It didn't do this on whatever previous version of iosc I had.

     

    The latest version seams to be the most stable, but I need to know what code to revert it so product listings come up in mobile view from mobile_catalogue.php.

     

     

    Any help would be great.

     

     

    The shop I am working on is here

    http://absolutelyscooterparts.net/catalog/mobile_index.php

     

    Hello,

     

    I tried to modify seo urls 2.2 by Chemo to work with the mobile site, but it was impossible(at least for me) because there are not separate page files (like in Ultimate Seo Urls 5 PRO) which can be adapted for new pages, but only one script for all redirects.

    So it is much more complicate and I had no success.

    In any case it's not so much job to change to Ultimate Seo Urls 5 PRO.

     

    regards

    Rainer


  11. Hello,

     

    in my page module files (all of them, the original files as well as the 3 modified files for the mobile pages) this line reads like this:

    			 ->separateUriText( $this->linktext( $this->linkTextOrder( $link_text ) ) ), $this->dependencies[$this->key]['marker'], $this->keys_index[$this->key], $target_language_code ) );
    

     

    $this->linktext( $this->linkTextOrder( $link_text )

    instead of:

    $this->linktext( $link_text )

     

    regards

    Rainer

     

    Sorry not in all files, only in product_info.php and in mobile_product_info.php., so I checked and saw that in the categories the link is also wrong: mc instead of c.

    Then it's not this.

     

    I could reproduce your error for the categories when the wrong code in mobile catalogue.php is placed:

     

    // set the link for classic site
     $classic_site = str_replace('mobile_catalogue.php', 'index.php', $_SERVER['REQUEST_URI']);
    

     

    instead of this which is necessary if you use Ultimate Seo Urls:

     

    // set the link for classic site
    if (USU5_ENABLED != 'true') {   
     $classic_site = DIR_WS_HTTP_CATALOG . 'index.php?' . tep_get_all_get_params();
    } elseif (strpos($_SERVER['REQUEST_URI'], 'mobile_catalogue.php') == TRUE) {
     $classic_site = str_replace('mobile_catalogue.php', 'index.php', $_SERVER['REQUEST_URI']);
    }
    

     

    Sorry that I posted the standard code in a former message.

     

    If this doesn't help I only can recomend to download the last version and review the upgrade steps for older versions (4.x) which are now included.

    Or did you upload all new files and overwite your complete old version?

     

    regards

    Rainer


  12. I do have r205 running, installed in in November 2011...

     

    Hello,

     

    in my page module files (all of them, the original files as well as the 3 modified files for the mobile pages) this line reads like this:

    			  ->separateUriText( $this->linktext( $this->linkTextOrder( $link_text ) ) ), $this->dependencies[$this->key]['marker'], $this->keys_index[$this->key], $target_language_code ) );
    

     

    $this->linktext( $this->linkTextOrder( $link_text )

    instead of:

    $this->linktext( $link_text )

     

    regards

    Rainer


  13. @@raiwa

     

    footer redirect code:

    if (substr(basename($PHP_SELF), 0, 15) != 'mobile_checkout') {
     global $classic_site;
    if(isset($classic_site))
    $url = $classic_site;
    else {
    $url = str_replace('mobile_', '', $_SERVER['REQUEST_URI']);
    }
    $url .= (strpos($url,'?') > 0) ? '&redirectCancelled=true' : '?redirectCancelled=true';
    echo TEXT_MOBILE_VIEW . TEXT_SHOW_VIEW_2 . ' | ' . TEXT_SHOW_VIEW_1 . '<a href="' . $url . '">' . TEXT_CLASSIC_VIEW . TEXT_SHOW_VIEW_2. '</a>';
    }
    

     

     

    application_top code:

     

    //BEGIN : MOBILE iOSC REDIRECT_SCRIPT
    if (MOBILE_SITE=='True'){
    	 $url_basename = basename($PHP_SELF);
    	 if ($url_basename == 'index.php') {
    		 if (USU5_ENABLED == 'true'){
    			 if (strpos($_SERVER['REQUEST_URI'], '-c-') == FALSE) {
    				 $mobile_url = $_SERVER['REQUEST_URI'];
    				 $url_pagename = basename($PHP_SELF);
    				 $mobile_site = str_replace($url_pagename, 'mobile_' . $url_pagename, $mobile_url);
    			 } else {
    				 $info_box_replace = array('?infoBox=0', '?infoBox=1', '?infoBox=2', '?infoBox=3', '?infoBox=4', '?infoBox=5', '?infoBox=6', '?infoBox=7', '?infoBox=8', '?infoBox=9');
    				 $url = str_replace($info_box_replace, '', ($_SERVER['REQUEST_URI']));
    				 $url_category_ids = str_replace('-', '', strrchr ($_SERVER['REQUEST_URI'] , '-c-'));
    				 $url_category_id = str_replace('_', '', strrchr ($_SERVER['REQUEST_URI'] , '_'));
    				 $url = str_replace($url_category_ids, '', $url);
    				 $mobile_site = str_replace('-c-', '-mc-', $url) . $url_category_id;
    			 }
    		 } else {
    			 if (strpos($_SERVER['REQUEST_URI'], 'cPath=') == FALSE) {
    				 $mobile_site = 'mobile_index.php';
    			 } else {
    				 $info_box_replace = array('infoBox=0&', 'infoBox=1&', 'infoBox=2&', 'infoBox=3&', 'infoBox=4&', 'infoBox=5&', 'infoBox=6&', 'infoBox=7&', 'infoBox=8&', 'infoBox=9&');
    				 $url = str_replace($info_box_replace, '', $_SERVER['REQUEST_URI']);
    				 $url_category_ids = str_replace('cPath=', '', strrchr ($_SERVER['REQUEST_URI'] , 'cPath='));
    				 $url_category_id = (strpos($url_category_ids,'_') > 0) ? str_replace('_', '', strrchr ($_SERVER['REQUEST_URI'] , '_')) : str_replace('cPath=', '', strrchr ($_SERVER['REQUEST_URI'] , 'cPath='));
    				 $url = str_replace($url_category_ids, '', $url);
    				 $mobile_site = str_replace('index.php', 'mobile_catalogue.php', $url) . $url_category_id;
    			 }
    		 }
    		 if ($mobile_site == DIR_WS_HTTP_CATALOG){
    			 $mobile_site .= 'mobile_index.php';
    		 }				
    	 }
    
    if ($url_basename == 'product_info.php') {
    if (USU5_ENABLED == 'true'){
    		 $mobile_site = str_replace('-p-', '-mp-', $_SERVER['REQUEST_URI']);
    }
    }
    if ($url_basename == 'product_reviews.php') {
    if (USU5_ENABLED == 'true'){
    		 $mobile_site = str_replace('-pr-', '-mpr-', $_SERVER['REQUEST_URI']);
    }
    }
    if ($url_basename == 'featured_products.php') {
    		 $mobile_site = str_replace('featured_products.php', 'mobile_index.php', $_SERVER['REQUEST_URI']);
    }
    if ($url_basename == 'recently_viewed.php') {
    		 $mobile_site = str_replace('recently_viewed.php', 'mobile_index.php', $_SERVER['REQUEST_URI']);
    }
    if(isset($mobile_site)) {
    $mobile_url = $mobile_site;
    } else {
    $mobile_url = $_SERVER['REQUEST_URI'];
    $url_pagename = basename($PHP_SELF);
    $mobile_url = str_replace($url_pagename, 'mobile_' . $url_pagename, $mobile_url);
    }
    define(DIR_MOBILE_CLASSES , 'mobile/includes/classes/');
    require(DIR_MOBILE_CLASSES . 'mobile_redirect.php');
    $mobileRedirect = new mobileRedirect;
    }
    //END : MOBILE iOSC REDIRECT_SCRIPT
    

     

     

    also in the page modules add ons, I had to remove a parameter of the link function in all 3 files in order to make the mod to work and match the way this function is built in other page modules - they don't have it (I removed the $target_language)code, I don't think this is the issue )

     

    // ->separateUriText( $this->linktext( $link_text ) ), $this->dependencies[$this->key]['marker'], $this->keys_index[$this->key], $target_language_code ) );
    			 ->separateUriText( $this->linktext( $link_text ) ), $this->dependencies[$this->key]['marker'], $this->keys_index[$this->key]) );
    

     

    also, I added a line in my htaccess to fix the mobile_ issue:

     

    redirect 301 /mobile_ http://www.mysite.com/mobile
    

     

    whether it's there or not, the redirect still doesn't work.

     

    Thank you for your input

     

    Hello,

     

    Then it seems you have an older version of ULTIMATE Seo Urls installed.

    Please updat to: ULTIMATE Seo Urls 5 ( r205 )

     

    I wrote this at the beginning of the installation instruction:

     

     

    This is for:

    ULTIMATE Seo Urls 5 ( r205 ) - by FWR Media

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

     

    It is tested with: Ultimate Seo Urls 5 PRO ( r205 ) uploaded by FWR Media the 21 Mar 2011

    Older versions may work, but have not been tested

     

    regards

    Rainer


  14. Hello,

    I checked your site and found that the redirect code works for all other pages which are nor related to categries and products.

    So I think it has to do with the redirect code in application_top or the modifications for ULTIMATE SEO URL.

    Please post your code in mobile_footer.php and the redirect code in your application_top.php file.

    And check again the Installation for ULTIMATE SEO URL.

    You can also download the newest version iOSC 5.1, uploaded yesterday, which includes detailed update instructions for version iOSC 4.1.

     

    For the AJAX problem I have to recognize that I didn`t check the AJAX enabled mode because I found it not too useful for mobile devices because some may not have java script installed/enabled.

    When I checked it now a little bit I found the solution for the jumping to mobile_index.php:

     

    In: catalog/mobile/includes/classes/categories_js.php

     

    change: FILENAME_DEFAULT to FILENAME_CATALOG in line 25 and 33

     

    The problem is that the 'New Products' and 'Promotions' entry will not show at the top of the categories.

    Also the 'show more results' link at the bottom doesn't work.

     

    So for now you should disable AJAX and I'll see if I find a solution for this in the future and include it in the next update.

     

    Best regards

    Rainer

     

    Hello again,

     

    another possible reason for the redirect error:

     

    make shure you have included in: mobile_catalogue.php

     

    this new code:

    // set the link for classic site
    $classic_site = str_replace('mobile_catalogue.php', 'index.php', $_SERVER['REQUEST_URI']);
    

    and not the old code from mobile_products.php:

       $PCSITE = DIR_MAIN_HTTP_CATALOG . FILENAME_DEFAULT . '?' . tep_get_all_get_params();
    

     

    regards

    Rainer


  15. @@raiwa

     

    Reviewed all installation but could not find anything missing.... :-(

     

    Link to the mobile site:

     

    http://www.thefrenchybee.com/amora-mustard-moutarde-de-dijon-fine-french-strong-dijon-mustard-155-oz-large-size-mp-2033.html

     

    Also, I could never the ajax to work (yes, I set AJAX_ENABLED to true in configure.php). The catalogue page is briefly displayed then refreshes to mobile_index. My ajax was working fine with the old version that was in its own directory

     

    Thanks!

     

    Hello,

    I checked your site and found that the redirect code works for all other pages which are nor related to categries and products.

    So I think it has to do with the redirect code in application_top or the modifications for ULTIMATE SEO URL.

    Please post your code in mobile_footer.php and the redirect code in your application_top.php file.

    And check again the Installation for ULTIMATE SEO URL.

    You can also download the newest version iOSC 5.1, uploaded yesterday, which includes detailed update instructions for version iOSC 4.1.

     

    For the AJAX problem I have to recognize that I didn`t check the AJAX enabled mode because I found it not too useful for mobile devices because some may not have java script installed/enabled.

    When I checked it now a little bit I found the solution for the jumping to mobile_index.php:

     

    In: catalog/mobile/includes/classes/categories_js.php

     

    change: FILENAME_DEFAULT to FILENAME_CATALOG in line 25 and 33

     

    The problem is that the 'New Products' and 'Promotions' entry will not show at the top of the categories.

    Also the 'show more results' link at the bottom doesn't work.

     

    So for now you should disable AJAX and I'll see if I find a solution for this in the future and include it in the next update.

     

    Best regards

    Rainer


  16. Please review your installation it should work.

    Give more detailed information of the link if you can't find the solution.

    Hello,

     

    try this:

    Edit your php.ini and set output_buffering to 4096

     

    hope this helps

    Rainer

    Hello,

     

    try this:

    Edit your php.ini and set output_buffering to 4096

     

    hope this helps

    Rainer

     

    Best regards

    Rainer

     

     

    If you use OSC 2.3: the iOSC 5.x contribution is written and tested for OSC 2.2 only.

    So you may find help for this error here:

    http://forums.oscommerce.com/topic/376276-headers-already-sent/page__st__20__hl__+iosc#entry1651869

     

    regards

    Rainer


  17. @@Rainer

     

    Thanks, I did not see that there was an addon :-)

     

    Only little issue now, my "CLASSIC VIEW" in my iosc footer doesn't redirect anymore (except from mobile_index.php) a rollover on the link shows that the additional markers mp or mc are still there, it's self linking.

     

    Thank you for your input!

     

    Please review your installation it should work.

    Give more detailed information of the link if you can't find the solution.

     

    Best regards

    Rainer


  18. Hi guys,

    this is nice contrbituions is working well but have some problem with some pages. First i had "blank" pages, after small fix

     

    i got the problem: Warning: Cannot modify header information - headers already sent by (output started at /home/mobile/includes/application_top.php:10) in /home/includes/functions/general.php on line 48

    which is: <style type="text/css" media="screen"> from mobile/includes/application_top.php

     

    Anybody knows what is wrong ? MySQL 5.0 but have old osc, so i hope is not PHP problem.

     

    Please see it live: http://www.kacikpupila.pl/mobile_index.php and try press "KONTO - /login"

     

    Greeings !

     

    Hello,

     

    try this:

    Edit your php.ini and set output_buffering to 4096

     

    hope this helps

    Rainer


  19. PEOPLE WITH THIS MOD AND ULTIMATE SEO URL (which everybody should have...)

     

    visitors coming from a google results page pointing to a page with a URL changed by a mod_rewrite (by any SEO url module) cannot land directly on the product page (instead they are taken to a mobile contact us page, which leads to extremely high bounce rates

     

    http://www.my.com/seo-name-of-the-product-p-3857.html (which is what has been indexed)

     

    does not redirect to

     

    http://www.my.com/mobile_product_info.php?product_info=3857

     

     

     

    Try it on your site:

    do a Google search for one of your products that shows up in an organic ranking page (make sure your switch to a mobile user agent)

    click on the link of your product and let me know if your are properly redirected to the mobile product page.

     

    Let me know if you have any suggestions.

     

    Thanks!

     

    Hello,

     

    you have to install the support for ULTIMATE SEO URL which is included in iOSC 5.0 in 'aditional contributions'.

    Then it will redirect correct.

     

    regards

    Rainer

×