Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

delete13

Pioneers
  • Posts

    19
  • Joined

  • Last visited

Posts posted by delete13

  1. 	if ( (int)$_GET['ajax'] != 1 && $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest' )

     

    You could change it by this one :

    	if ( isset($_GET['ajax']) && (int)$_GET['ajax'] != 1 )

     

    I tried before HTTP_X_REQUESTED_WITH, i like this method but seems to be uncompatible with some server and particulary with MSIE (...)

     

    To avoid page directly page call with ajax parameter (from a non ajax requester) i also modified tep_href_link in html_output.php but it is not needed in this contribution, but i still post the code :

    html_output.php / tep_href_link

    	// Prevent non ajax loading / OLIVIER
    //
    $parameters = str_replace('&ajax=1', '', $parameters) ; 
    $parameters = str_replace('?ajax=1', '?', $parameters) ; 

  2. Also, on line 77 and 78, you are using 'form[name=cart_quantity]'

    Should it be 'form[name=boxcart_quantity]' ?

    No don't look for bugs that doesn't exists lol

     

    there is cart_quantity to uptdate shopping_cart page and boxcart_quantity to update shopping cart infoboxe !

  3. Is it possible that line 77 or 78 is the culprit?

    Yes i think the URL is not perfectly encoded :

     

    change this :

    url: encodeURI($('form[name=cart_quantity]').attr('action')) + '&show_total=1&ajax=1',

     

    by this :

    url: encodeURI($('form[name=cart_quantity]').attr('action')) + '?show_total=1&ajax=1',

     

    the best way is to encode the URL like this but i don't test it :

    url: encodeURI($('form[name=cart_quantity]').attr('action') + '?show_total=1&ajax=1'),

     

    I hope that will work for you !

  4. Everything works but instead of the total price being updated in the shopping-cart-box, a whole new oscommerce window opens INSIDE the shopping cart box. In opera the whole thing just hangs or crashes. Ive tried on seveal PCs, but same issue.

     

    Dear Sir,

     

    Sure ! You're right.

     

    There is a mistake in jquery-oscart.js line 120 and i never had feedback about this problem :

     

    Look for '?action=show_total&ajax=1' change to '?show_total&ajax=1'

     

    If you could update the package that will be great for other people too.

     

    Thx in advance.

    Olivier

  5. j'ai quitte Marseille il y'a plus que trente ans

     

    Currently, i don't stay in Marseille but in Bangkok, another amazing place !

     

    I'm sure you know my friend Michel,

    one of the last best fisherman in Marseille !

     

    Yes it's possible but need a custom developpment

  6. The third version contain all instructions and solved all problems for those i had a feed back (excepted the CHARSET issue related in this topic)

     

    This version supports also products attributes

     

    I haven't any feed back about flying problems or "unable to determine page link" issues

     

    Because the demonstration URL is in the readme file and regarding my apache logs : this contribution has been downloaded at least 190 times since 3 days ...

  7. B -> special Portuguese, spanish and other chars after a few clicks get replaced by a question mark in shopping cart:

    á -> á

    ç -> ç

    ã -> ã

     

    Yes i know that issue, you have to declare the content/type of file when shopping cart is called in AJAX :

     

    if ( (int)$_GET['ajax'] != 1 && $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest' ) 
    { 
    .........
    }
    else
    {
    header("Content-Type:text/html; charset=' . CHARSET . '");
    } 

  8. Thank's for your great contribution.

     

    And update for your mobile_redirect.php :

    	function needRedirect() {
    	if($this->isCancelled()) return false;
    	if(strpos($_SERVER['SCRIPT_NAME'],$this->mobileDir . $this->mobileFile) > 0) return false;
    	if(tep_browser_detect('iPhone') || tep_browser_detect('iPod')) return 'iPhone';
    	if(tep_browser_detect('IEMobile')) return 'iPhone';
    	if(tep_browser_detect('Blackberry')) return 'Blackberry';
    	if(tep_browser_detect('Nokia')) return 'Nokia';
    	if(tep_browser_detect('SonyEricsson')) return 'SonyEricsson';
    	if(tep_browser_detect('Opera Mobi')) return 'OperaMobi';
    	if(tep_browser_detect('Opera Mini')) return 'OperaMini';
    	if(tep_browser_detect('MAUI_WAP_Browser')) return 'GenericWAP';
    	if(tep_browser_detect('alcatel')) return('alcatel'); // Alcatel Browser (PDA/Phone browser)
    	if(tep_browser_detect('lg-')) return('lg-'); // LG (PDA/Phone browser)
    	if(tep_browser_detect('ericsson')) return('ericsson'); // Ericsson Browser (PDA/Phone browser)
    	if(tep_browser_detect('mot-')) return('mot-'); // Motorola Browser (PDA/Phone browser)
    	if(tep_browser_detect('panasonic')) return('panasonic'); // Panasonic Browser (PDA/Phone browser)
    	if(tep_browser_detect('philips')) return('philips'); // Philips Browser (PDA/Phone browser)
    	if(tep_browser_detect('sagem')) return('sagem'); // Sagem (PDA/Phone browser)
    	if(tep_browser_detect('samsung')) return('samsung'); // Samsung (PDA/Phone browser)
    	if(tep_browser_detect('sie-')) return('sie-'); // SIE (PDA/Phone browser)
    	if(tep_browser_detect('sec-')) return('sec-'); // Sony/Ericsson (PDA/Phone browser)
    	if(tep_browser_detect('sonyericsson')) return('sonyericsson'); // Sony/Ericsson Browser (PDA/Phone browser)
    	if(tep_browser_detect('mmef')) return('mmef'); // Microsoft Mobile Explorer (PDA/Phone browser)
    	if(tep_browser_detect('mspie')) return('mspie'); // MS Pocket Internet Explorer (PDA/Phone browser)
    	if(tep_browser_detect('wapalizer')) return('wapalizer'); // WAPalizer (PDA/Phone browser)
    	if(tep_browser_detect('wapsilon')) return('wapsilon'); // WAPsilon (PDA/Phone browser)
    	if(tep_browser_detect('webcollage')) return('webcollage'); // WebCollage (PDA/Phone browser)
    	if(tep_browser_detect('up.')) return('up.'); // UP.Browser (PDA/Phone browser)
    	if(tep_browser_detect('docomo')) return('docomo'); // I-Mode phone (PDA/Phone browser)
    	if(tep_browser_detect('portalmmm')) return('portalmmm'); // I-Mode phone (PDA/Phone browser)
    	return false;
    }

     

    ;)

  9. Thank you for your reply, but i am still having trouble. Please post what the code looks like:

     

    <td class="main"><?php require('carousel/carousel.php')  ; echo TEXT_MAIN;?></td><valign="middle"><div align="center"><?php echo  tep_image(DIR_WS_IMAGES . '', ''); ?></td>

     

    ;)

  10. and in the body <?php require('carousel/carousel.php') ; ?>" Could someone please post the code so l can see what it looks like when everything is inserted. Thank you.

    For exemple after or before echo(TEXT_MAIN); you simply add this line require('carousel/carousel.php') ;

     

    @spooks same case for some clients doesn't have flash installed on their PC

×
×
  • Create New...