

Simpel
Members-
Content count
116 -
Joined
-
Last visited
Everything posted by Simpel
-
Just wondering If somebody got this working with split_page_result when choosing "show all" This because I got a list with 6000 products and like them to split.
-
Does anybody got a quantity box in the wishlist like the shoppingcart? I like this to send the items and the quantity to a friend etc.
-
Hi there after update the contribution to the latest version of jquery 1.6.4 jquery.min.js I got the following error: uncaught exception: Syntax error, unrecognized expression: [name=cart_delete[]] This is the $('input[name=cart_delete[]]').css('display', 'none'); rule in jquery-oscart.js How to solve this problem? where is the syntax error?
-
Edit includes/functions/html_output.php Next find this code: $form .= '>'; return $form; Directly BEFORE add this: // AJAX Addto shopping_cart - Begin if( preg_match("/add_product/i", $action) ){ $form .= 'id="pi-add-to-cart"'; } // AJAX Addto shopping_cart - End Now all buy now buttons in de product listing put the first product in the shoppingcart nobody want this in the product-listing? its a little bit quiet over here.. I think we had to change the something in the jquery-oscart.js to connect 'id="pi-add-to-cart" for each product_id
-
Firebug says /button_in_cart.gif">events=Object { click=[1]}handle=function() for the first product in the product list. The second and futher gives only /button_in_cart.gif"> what could that be? it should be repeat? another fix to show the model in the shoppingbox <span id="pi-product-listing" style="display:none"> to <span id="pi-product-info" style="display:none">
-
Changing the PRODUCT_LIST_IMAGE and PRODUCT_LIST_BUY_NOW something like this in de product_listing file case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_LISTING, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_EXT_HTTP . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <script language="javascript"><!-- document.write(\'<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $listing['products_id']) . '\\\')">' . tep_image(DIR_EXT_HTTP . $listing['products_image'], addslashes($listing['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5" id="cart-image-1"') . '<br>Click to enlarge</a>\'); //--></script> <noscript> <a href="' . tep_href_link(DIR_EXT_HTTP . $listing['products_image']) . '" target="_blank">' . tep_image(DIR_EXT_HTTP . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a> </noscript> <div id="wrapper" style="float:right;"></div> <span id="pi-product-listing" style="display:none"><a href="' . tep_href_link(FILENAME_PRODUCT_LISTING, 'products_id=' . (int)$listing['products_id']) . '" title="' . $listing['products_name'] . '">' . $listing['products_name'] . '</a></span>'; } break; case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; if ( tep_has_product_attributes($listing['products_id']) ) { $lc_text = '<a href="'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = tep_href_link(FILENAME_PRODUCT_LISTING, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']); } else { $lc_text = tep_href_link(FILENAME_PRODUCT_LISTING, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']); } $lc_text = '">more info...</a> '; } else { $lc_text = tep_draw_form( 'cart_quantity_' . $listing['products_id'], tep_href_link(FILENAME_PRODUCT_LISTING, tep_get_all_get_params('') . 'action=add_product&products_id=' . $listing['products_id']) ) . '<input type="hidden" name="products_id" value="' . $listing['products_id'] . '"><input type="text" name="quantity" value="1" maxlength="4" size="3"> '. tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART,'id="pi-add-to-cart"'). '</form>'; } break; } But only the first item will be pick by this contribution and fly. of course you have to put the 2 .js files in de product_listing file or in the header_php file. Hope somebody get help to finish this case.
-
Somebody got this working? I only get it work with the first product in the list. Not with all items of the list.
-
change url: encodeURI($('form[name=cart_quantity]').attr('action')) + '&show_total=1&ajax=1', in url: encodeURI($('form[name=cart_quantity]').attr('action')) +'&format=ajax'+ '&show_total=1&ajax=1', maybe it works, for me it does..
-
did you upload the newest version of ajax_sc.js?
-
firefox says ' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: chrome://firebug/content/spy.js :: callPageHandler :: line 744" data: no] Should it be a wrong string/url in ajax.sc.js?
-
Is there someone who knows this problem and solved it?
-
<?php /** AJAXBuyNow v2.0 author Weretennikoff Andrew aka Medreces medreces@yandex.ru Released under the GNU General Public License */ // Ïîäêëþ÷àåì áèáëèîòåêó ïîääåðæêè. require_once('includes/classes/sybsys.php'); // Ñîçäàåì ãëàâíûé îáúåêò áèáëèîòåêè. // Óêàçûâàåì êîäèðîâêó ñòðàíèöû (îáÿçàòåëüíî! à ìîæåò ïîòîì?). $JsHttpRequest =& new Subsys_JsHttpRequest_Php(''); foreach( $_REQUEST as $key => $value) $HTTP_POST_VARS[$key]=$value; require('includes/application_top.php'); $navigation->remove_current_page(); // À âîò è êîäèðîâî÷êà!!!! $JsHttpRequest->setEncoding(CHARSET); require(DIR_WS_BOXES . 'shopping_cart.php'); require('includes/application_bottom.php'); ?> result into Fatal error: Cannot redeclare class shoppingCart in /public_html/includes/classes/shopping_cart.php on line 13 what's happening?
-
in ajax.cs.js I had to change url = 'index.php?option=com_oscommerce&osMod=ajax_shopping_cart' + ( senddata.products_id ? 'products_id='+senddata.products_id+'&' : "" ) + 'action=add_product'; into url = 'index.php?option=com_oscommerce&osMod=ajax_shopping_cart' + '&format=ajax' + ( senddata.products_id ? 'products_id='+senddata.products_id+'&' : "" ) + 'action=add_product'; but JavaScript code generated by backend is invalid! still exists and instead of the whole page only the div from the shoppingcart.php is shown in the shoppingcart box instead of updating this box. Where should I look?
-
Great contribution. I got only a little problem... After installing I get the following symptoms. JavaScript code generated by backend is invalid! My whole page is loading in the shopping_cart box. In firefox I get 2 lines: after entering the buy command on the product_info.php the loading and the ok image passed POST /~oefening/index.php?option=com_oscommerce&osMod=ajax_shopping_cart.php&products_id=1&action=add_product&13055779418370-xml [HTTP/1.1 302 Found 2507ms] GET /~oefening/index.php?option=com_oscommerce&osMod=shopping_cart&Itemid=2& [HTTP/1.1 200 OK 1622ms] whole page load thanks in advance
-
I think that's not a solution. check your html_output.php it should be something like this: // Output a form function tep_draw_form($name, $action, $method = 'post', $parameters = '', $tokenize = false) { global $sessiontoken; $form = '<form name="' . tep_output_string($name) . '" action="' . tep_output_string($action) . '" method="' . tep_output_string($method) . '"'; if (tep_not_null($parameters)) $form .= ' ' . $parameters; $form .= '>'; if ( ($tokenize == true) && isset($sessiontoken) ) { $form .= '<input type="hidden" name="formid" value="' . tep_output_string($sessiontoken) . '" />'; } return $form; } and if you got something like this: function tep_draw_form($name, $action, $method = 'post', $parameters = '') { $action = str_replace('&', '&', $action); $parameters = str_replace('&', '&', $parameters); $action_url = preg_replace( '/\.*/?','',$action); delete . and ? for the right POST connection $action_par = preg_replace( '/.*\?/','',$action);
-
Did you change something in your jquery-oscart.js? The best way too discover is to look in firebug what the post and get links are. unfortunately there is almost no response in this forum for such great contribution. I am still busy and solved a lot bugs in my program.
-
When I click plus or min in the shoppingcart I get in firebug "POST /shopping_cart.php?action=update_product&ajax=1 "GET /shopping_cart.php?ajax=1 "GET /js/jquery-oscart.js "POST /shopping_cart.php?action=update_product&show_total=1?ajax=1 "GET /shopping_cart.php?show_total=1&ajax=1 Where are these GET links from? "GET /shopping_cart.php?ajax=1 "GET /shopping_cart.php?show_total=1&ajax=1 Hope someone knows...
-
when changing the url: encodeURI($('form[name=cart_quantity]').attr('action')) + '&ajax=1', To an url link made with shoppingcart, without .attr('action')etc. The POST in firebug goes always to the index.php file instead of the shopping_cart.php file. how come? What code in jquery-oscart.js makes this? Does somebody got a flying image from the listing.php working?
-
My oscommmerce is not installed in the root of the domain. But in another map. when I installed this contribution. The programm takes the index.php from the root instead of the map. When I change in the shoppingcart.php the <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?> to <?php echo tep_draw_form('cart_quantity', FILENAME_SHOPPING_CART, 'action=update_product'); ?> I get domain/shopping_cart.php otherwise I get domain/index.php tep_href_link => this should brings you to the right map, but it's not. it seems something in jquery_oscart.js. had to change. the .attr('action') on line 273 gives me the wrong link and of course no action from the shopping_cart.php file (action=update_product) the only action I can see in jquery_oscart.js = on line 216 : action = $(this).attr('class').split(' ').slice(-1) ; I don't know how to read this line. But it seems to bring me back to the root index.php instead of map/index.php hope someone can help me with this.
-
What you can do is change the line is jquery_oscart,js line: ~274 $("#content-body").html(data); to $("#content-body").load("shopping_cart.php #content-body > *");
-
Am I the only one who uses this contribution? I am still busy to get this 100% working. I am getting the following problem I get: "POST /shopping_cart.php?action=update_product&ajax=1 "GET /shopping_cart.php "GET /js/jquery-oscart.js "POST /shopping_cart.php?action=update_product&show_total=1?ajax=1 "GET /shopping_cart.php instead of "POST /shopping_cart.php?action=update_product&ajax=1 "GET /shopping_cart.php?ajax=1 "GET /js/jquery-oscart.js "POST /shopping_cart.php?action=update_product&show_total=1?ajax=1 "GET /shopping_cart.php?show_total=1&ajax=1 Where do I have to look to make the right link?
-
In the installation instruction it says, "4) filename : catalog/index.php and other one where placed the shopping cart infobox Just place a call to the jquery API and the javascript contribution include file in the <head> section : <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="js/jquery-oscart.js"></script>" What do you mean by that?
-
When changing this I got the following error: $(document).ready is not a function =>jquery-oscart.js (line 8)
-
You also need to update <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> to <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"> </script> otherwise you get errors
-
Delete the second "<script type="text/javascript" src="js/jquery-oscart.js"></script>" in the shopping_cart.php. Maybe the problem solved. I got a similar problem, after delete the rule, problem solved.