Jump to content

adamccol

Member
  • Posts

    10
  • Joined

  • Last visited

Profile Information

  • Location
    Cornwall

adamccol's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. bsmither, I can not thank you enough. You pointed me in the right direction to add the code I need to get it working. Just for completeness, and in case it might just help anyone else, here is the code I added to the include/ShoppingCart.inc.php //Admic - return cart data to AJAX POST if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { echo "<div class='carttext'> <a class='carttext' href='http://www.toyday.co.uk/shop/cart.php?act=cart' alt='Click to checkout' title='Click to checkout'><span class='basketQty'>".$cart->noItems()."</span><b>My Basket: </b>&pound;".$cartTotal."</a></div>"; die($content); } bsmither, if you ever find yourself in Cornwall, UK, I would very much like to buy you a beer or two. Thanks again!
  2. Hi, Thank you Bsmither for your prompt reply. The block I need to return is indeed a DIV block. This is where I am stuck! Do I somehow need the function to re-write the same html as in the shopping cart tpl file? If so, I do not know how to get the cart variables from the cart to insert into my HTML Hmm, I do apologise, Although ok with PHP, HTML and MYSQL, I really struggle with javascipt! I am tempeted to buy Sir Williams mod for V4, and hope that i can figure out how it will fit with my ancient and heavily modified V3.14. (And no, upgrading is not an option!) Thanks again...
  3. Hi, Yes I know, I CC3! But anyway, I have modified the POST request in the viewProd.tpl with a JQuery call: - function submitForm() { $.ajax({type:'POST', url: '{CURRENT_URL}', data:$('#addBasket').serialize(), success: function(refreshCart) { xxWHAT JAVASCRIPT TO GO HERE?xx }}); } The post request works fine, but I am really stuck on is what javascipt to enter in the success function to update the cart details at the top of my page one the post has completed. If I enter the template HTML, I am missing the qty and cart total variables. (As a temporary measure, I have inserted "location.reload();" but this cleary defeats the object of using AJAX!) I know this is a really old version of cubecart, but I'm sure this will be really easy for some of you old-handers out there! You can see my site at www.toyday.co.uk/toydaytest Thanks - I look forward to hearing from you. Adam
  4. I really could use the answer to this too!! Someone who knows - please tell! ~Adam
  5. Hi Liam, You need to enter the codes for all countries. Ireland is IE, so you need to enter GB,IE ~Adam
  6. What do you enter in the 'Free Shipping Level' field? I wouldlike to be able to do this too, although If I leave it blank, then people can choose free shipping regardless ofprice, and if I enter a figure, say of 6.95, then that shows up as default, so if my customers don't check the drop down menu, then they assume shipping is too costly and may leave! Please advise if you have cracked it! Cheers - Adam The above example means: Anything that weighs up to 1kg will cost £2.50, Anything that weighs up to 100kg will cost £99.99. You can continue the string as long as... Hope that helps... ~Adam
  7. Thank you all for your valued comments! You learn something new every day. I had no idea about collectable's denoting ownership. I will change that ASAP. I think the only other thing I am desperate toadd is Estelles related products and text box mods, SW's site map and then I think we are about there. Many thanks again for the feedback ~Adam
  8. Hi Chris, As far as I know, you need to type in all of the shipping codes. I did this the hard way myself, and then noticed that somewhere on the forum there is the Royal Mail rates txt document that you can download with all of the country codes and rates published on it that you can then cut n paaste into the shipping module in admin. Do a search for 'royal mail rates' - that should find it. All the best ~Adam
  9. Hello, I am just about finished with our cubecart site, but am really not that delighted with it. I would appreciate any comments on how to improve the site generally... (Please don't get TOO technical though, as I am still learning) I look forward to hearing from you! Many thanks for taking a look: - http://www.toyday.co.uk/shop ~Adam
×
×
  • Create New...