Jump to content

adamccol

Member
  • Posts

    10
  • Joined

  • Last visited

Posts posted by adamccol

  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.

     

    whatever code that processes the ajax POSTed data will need to render the skin's template file /boxes/shoppingCart.tpl

    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. OK...Ive been lurking, searching, and implimenting CC3 for a while now...with reasonable success!!

    But it seems Ive ran into a problem that I cant find an answer to...probably missed it */* ...but here goes!!

    Running CC v3.1.0

    have evilhomer's "multiple Flat Rate" mod installed and functioning with 4 different rates.

    In addition, I also have the CC3 standard "free ship over $XX" module enabled and set at $50 or over.

    All of these options work too btw...so my problem is this....

    If a customers cart total is LESS than $50....the drop down menu (shipping, at checkout) will reflect a "blank option" and if none of the other ship options are selected, the customer is STILL ALLOWED TO CONTINUE...resulting in "no" shipping at all being included with the checkout/order total.

    Is there a relatively simple way to fix this or maybe some sort of conflict with "free ship" and "Multi Flat Rate" mods??

    THANKS!!!

    I really could use the answer to this too!!

    Someone who knows - please tell!

    ~Adam

  5. How would you restrict cubecart for UK shipping only?? I tried only inputting the GB iso code but when someone order a bit from ireland it made no charge for their shipping!!!??

    Any ideas???

    Many thanks,

    Liam

    Hi Liam,

    You need to enter the codes for all countries. Ireland is IE, so you need to enter GB,IE

    ~Adam

  6. You can also set orders over a certain amount to free shipping which works well in conjunction with the weight method above so that if a customer spends over £50 for example, shipping is free.

    >Modules>Shipping>By Price

    Set the status to Enabled and voila.

    UK Royal mail rates (up to 2K)are:

    0.1:0.49,0.15:0.68, 0.2:0.84, 0.25:0.99, 0.3:1.14, 0.35:1.29, 0.4:1.49, 0.45:1.7, 0.5:1.9, 0.6:2.3, 0.7:2.69, 0.8:3.1, 0.9:3.49, 1:3.89, 1.25:4.74, 1.5:5.59, 1.75:6.44, 2:7.29

    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

    Agreed - this thread is very helpful. However, I'm a bit confused as to what the numbers mean. Can anyone explain in detail the number/ratios and what they mean?

    ex: what does 1:2.50,100:99.99 mean?

    Sorry for the stupidity! I'm new at this!

    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

    ;):errm:*/*:(:(:(:(

    ~Adam

  8. In the "per category" shipping module, it asks for country codes. I've set the national code to "US" but I want every other country to be international. Do I have to type in the ISO code for every country in the world? (The product I offer can be shipped anywhere). Or can I use a wildcard?

    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

×
×
  • Create New...