Jump to content

raiwa

♥Ambassador
  • Content count

    4,550
  • Joined

  • Last visited

  • Days Won

    153

Posts posted by raiwa


  1. 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


  2. 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


  3. 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


  4. 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


  5. 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


  6. 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


  7. 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


  8. @@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


  9. 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


  10. @@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


  11. 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


  12. @@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


  13. 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


  14. 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


  15. So I have installed the contribution, and i have added a few pages that don't orginally come with OSC, (how_it_works.php, promotions.php). I eventually managed to implement these pages, but my text links won't redirect to the mobile site, instead they redirect to the non mobile site. I've been ttrying to figure this out for days, and im all out of existing combinations it seems. Basically, (originaly) i've got

     

    <p>Some text ........ <sub>[b]<a href="conditions.php#Sameday>(see Terms & Conditions)</a>[/b]</sub></p>

    in my original document.

     

    Some of these links will hit anchor points in the existing pages mobile version, there is one that redirects to create_account and others that redirect to anchor points in other mobile pages. The version i have installed is the newly realeased iOSC3 5.0, there was a couple simple fixes i made, but nothing that messed with any redirects or what not. Included in the documentation is this below, which I thought i could manipulate to do what I needed it to, but to no avail...

     

    Note: This function is not used in the base installation of IOSC 5.0

    It is useful for example if you wants to use text links to certain categories or products in the 'TEXT_MAIN' in 'index.php' or other personalized text.

    and you don't wants to duplicate this text in 'TEXT_WELCOME' of the mobile language files.

    This allows to use different links for a mobile session and a classic session.

    See the example in my live shop: www.sarplataygemas.com.

     

    the code snippet I use in TEXT_MAIN in the language file of index.php is:

    'We handcraft our jewelry with <a href="' . ((mobile_session() == 'mobile_index.php') ? FILENAME_CATALOG . '?cPath=61' : FILENAME_DEFAULT . '?cPath=61&redirectCancelled=true') . '"><u>sterlingsilver findings</u></a> and...'

     

     

    any help would be greatly appreciated. Thanks

     

     

    Hello,

     

    try this:

     

    <p>Some text ........ <sub>[b]<a href="' . ((mobile_session() == 'mobile_"the_mobile_page_where_your_link_is_placed".php') ? FILENAME_MOBILE_CONDITIONS . '#Sameday' : FILENAME_CONDITIONS . '#Sameday') . '">(see terms and conditions)</a>[/b]</sub></p>
    

     

    change:

    mobile_"the_mobile_page_where_your_link_is_placed".php

    to the name of the Mobile file where your link is placed.

     

     

    hope this helps

     

    Rainer


  16. Unfortunately I have to uninstall and install another contribution distinct contribution.

     

    Within 24 hours I received over 1.200 emails of error because of google. I put here three examples:

     

    Sitio web: http://www.mysite.com
    Codigo de error: 404 - No encontrada
    Fecha y hora de la incidencia: 13/09/2012 21:56:43
    URL solicitada: http://www.mysite.com/mobile_shop_by_price.php?osCsid=sa0r6696ob0fjk5k6l45tpjs80&range=3&osCsid=sa0r6696ob0fjk5k6l45tpjs80&language=
    IP del usuario: 66.249.72.66
    Navegador del usuario: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
    Referencia:

     

    Sitio web: http://www.mysite.com
    Codigo de error: 404 - No encontrada
    Fecha y hora de la incidencia: 13/09/2012 21:58:44
    URL solicitada: http://www.mysite.com/mobile_ask_a_question.php?products_id=34
    IP del usuario: 66.249.72.90
    Navegador del usuario: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
    Referencia:

     

    Sitio web: http://www.mysite.es
    Codigo de error: 404 - No encontrada
    Fecha y hora de la incidencia: 13/09/2012 21:41:52
    URL solicitada: http://www.mysite.es/mobile_reviews.php
    IP del usuario: 66.249.72.54
    Navegador del usuario: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
    Referencia:

     

    Google is looking for three files that do not exist: mobile_shop_by_price.php, mobile_ask_a_question.php and mobile_reviews.php

     

    The first and the second may be because I have installed these contributions, but what about the third mistake?

     

    I have tried everything to prevent further searching those files that do not exist, but nothing works, google insists on looking for them.

     

    I can not allow my hosting account lockout me because of this contribution, sorry, every mistake is an email that I receive and I should have jumped antispam alarms

     

    When these problems are resolved erroneous indexing by google'll install this fantastic contibución, but until then...

     

    Hello,

     

    For the first 2 files you should add the following to the redirect code you copied to catalog/includes/application_top.php:

     

    find:

     

    if ($url_basename == 'recently_viewed.php') {

    $mobile_site = str_replace('recently_viewed.php', 'mobile_index.php', $_SERVER['REQUEST_URI']);

    }

     

    add below this:

     

     

    if ($url_basename == 'shop_by_price.php') {

    $mobile_site = str_replace('shop_by_price.php', 'mobile_catalogue.php', $_SERVER['REQUEST_URI']);

    }

     

    if ($url_basename == 'ask_a_question.php') {

    $mobile_site = str_replace('ask_a_question.php', 'mobile_contact_us.php', $_SERVER['REQUEST_URI']);

    }

     

     

     

    As you said you have these 2 contributions installed which have no correspondence in the mobile version.

    So now from the page "shop_by_price" will be redirected to "mobile_catalogue" and from "ask_a_question" will be redirected to "mobile_contact_us".

     

     

    For the third error "mobile_reviews.php" it seems you made a mistake copying the name of the file or you have the name changed in your shop.

    The original filename is: "product_reviews.php", not "reviews.php".

    So the redirect searches for a file called "mobile_reviews.php" instead of "mobile_product_reviews.php".

     

    3 solutions:

    1. change the filename of "reviews.php" to "product_reviews.php" (don't forget to correct it in "includes/filenames.php" too).

    OR

    2. change the filename of "mobile_product_reviews.php" to "mobile_reviews.php" (don't forget to correct it in "mobile/includes/configure.php" too).

    OR

    3. add this in includes/application_top.php at the same place where you added it for the first 2 pages.

     

    if ($url_basename == 'reviews.php') {

    $mobile_site = str_replace('reviews.php', 'mobile_product_reviews.php', $_SERVER['REQUEST_URI']);

    }

     

     

     

    Hope this helps

     

    raiwa


  17. Hello,

     

    sorry but it seems you didn't adjust the configuration file for your needs.

    Read the instructions for these tags where you get the errors.

     

    regards

    Rainer

     

    Hello again, I got a while to add some more concrete recomendations:

     

    1.- for the brand tag:

     

    It seems you don't use manufacturers in your shop.

    See Step 4 in the instructions and use a fix brand for all products:

     

    								   'brand'			=>   array('output' => 'My Own Brand', //Put here your proper Brand
    																 'type' => 'VALUE',
    																),
    

     

    2.- for the google category tag, Missing recommended attribute: google product category:

     

    It seems you didn't link ALL your shop categories to google categories.

     

    See Step 6 in the instructions and add the links for the missing categories:

     

    function FM_RS_google_categories_us_en($product) {
    $output_field_category = ($product['parent_id'] > 0) ? $product['parent_id'] : $product['categories_id'];
    return (($output_field_category == 1) ? 'Google > Category > Tree1' :
     (($output_field_category == 2) ? 'Google > Category > Tree2':
      (($output_field_category == 3) ? 'Google > Category > Tree3':
    (($output_field_category == 4) ? 'Google > Category > Tree4':
     (($output_field_category == 5) ? 'Google > Category > Tree5':
      (($output_field_category == 6) ? 'Google > Category > Tree6':
       (($output_field_category == 7) ? 'Google > Category > Tree7':
    	(($output_field_category == 8) ? 'Google > Category > Tree8':
    	 (($output_field_category == 9) ? 'Google > Category > Tree9':
      (($output_field_category == 10) ? 'Google > Category > Tree10':
    (($output_field_category == 11) ? 'Google > Category > Tree11':
     (($output_field_category == 12) ? 'Google > Category > Tree12':
      (($output_field_category == 13) ? 'Google > Category > Tree13':
       (($output_field_category == 14) ? 'Google > Category > Tree14':
    	(($output_field_category == 15) ? 'Google > Category > Tree15':
    	 (($output_field_category == 10000) ? '':
    	  (($output_field_category == 10000) ? '':
    (($output_field_category == 10000) ? '':
     (($output_field_category == 10000) ? '':
      (($output_field_category == 10000) ? '':
    	 ''))))))))))))))))))));
    }
    

     

     

    3.- for the google category tag Unknown 'google product category' value:

     

    In the lines you don't use leave the right side blank like here:

     

    	 (($output_field_category == 12) ? '':
    

     

    4) for the mpn tag, Missing recommended attribute: mpn(4 warnings):

     

    it seems you didn't fill out the 'model' field for 4 products.

     

     

    If you still get errors, please quote the code of your configuration file,

    or mail it together with your feed file.

     

    My mail: info@sarplataygemas.com

    regards

    Rainer


  18. Hi Rainer,

     

    You are a genius if I could hug you I would - you really saved me on this as I was at my wits end trying to figure out what I could have done wrong. The feed was set correctly so I did what you suggested about going into the google merchant center and I changed it from automatic detection to text and that worked. It is a shame that google's own people didn't know enough to suggest that to me. So I did the upload and it worked like a charm but now I got some Item Warnings... - Rainer do happen to know what I could do to fix these by chance?

     

    Thank You!

    Lexi

     

    1) Missing recommended attribute: brand (2908 warnings)

    While items missing recommended attributes will process successfully, we recommend including relevant attributes if they are available. brand

     

    2) Missing recommended attribute: google product category (2290 warnings)

    While items missing recommended attributes will process successfully, we recommend including relevant attributes if they are available.

    google product category

     

    3) Unknown 'google product category' value(618 warnings, only affecting Product Search, Search API for Shopping)

    The 'google product category' value must be a recognized product category in the content language or in English.

     

    google product category Google > Category > Tree4

     

    4) Missing recommended attribute: mpn(4 warnings)

    While items missing recommended attributes will process successfully, we recommend including relevant attributes if they are available.

     

    mpn

     

    Hello,

     

    sorry but it seems you didn't adjust the configuration file for your needs.

    Read the instructions for these tags where you get the errors.

     

    regards

    Rainer


  19. If someone can please & thank you help me I would so greatly appreciate it..

     

    I have installed this great contribution but I seem to have one issue, when I go into my google account and do a test feed everything seems ok until the end where it says * error - feed file is in a format that we don't support: HTML

     

    I don’t get how so I contacted google and advised them that the feed format does show google-product-search-feed-us-en.txt - they replied....

    Please know that you have given correct extension to your data feed, however it is in HTML format. So questions is what did I not do correctly and or how can I change this to the correct file format for google, I have looked over the instructions and did a search for an answer but I cannot seem to find a solution to as what I have done incorrectly.

     

    Thanks,

    Lexi

     

    Hello,

     

    The feed generated by this contribution is text format as you see by the extention ..h-feed-us-en.txt

    First be shure you didn't change the file extension from: ..h-feed-us-en.txt to..h-feed-us-en.htm or ..h-feed-us-en.html

    in line 17 of the configuration file:

    'filename' => 'google-product-search-feed-us-en.txt',

     

    If this is ok try this:

    In Google Merchant Center, go to Data Feeds, then edit the configuration of your data feed, change: file format from "automatic detection" to "text".

    Some terms may be different, I translated this from spanish version.

    If this doesn't help, send me your feed configuration file and your data feed, I'll see what I can do.

     

    My mail: info@sarplataygemas.com

    regards

    Rainer

×