Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter v8s_uk

    (@v8s_uk)

    Solution! ??

    <?php echo tribe_meta_event_category_name(); ?>

    Thread Starter v8s_uk

    (@v8s_uk)

    Yes I agree it is quite tricky, although this is something our client has asked for and has said if they don’t select the correct shipping from the drop down they simply wont send the product out or contact the seller letting them know of this.

    I mean I would say its their responsibility to select the correct shipping the same as its their responsibility to select the correct products that they are buying. So long as it’s styled clearly enough then I think that should be ok.

    If its possible to have this integrated please let us know what variables/code we need to achieve this.

    Thank you in advance.

    Thread Starter v8s_uk

    (@v8s_uk)

    Thanks for the help. I’ve had a look at the google XML layout and tried to piece together the regions it will be most applicable to. Although I’m sure it might need tidying up, I’ve input the main areas which are UK, EU (the main countries in EU) and USA (instead of rest of the world). Do you need the shipping rates for each area also? (The currency for each would be obviously GBP for UK, Euro for Europe and dollar for USA.)

    <allowed-areas>
    <postal-area>
    <country-code>GB</country-code>
    </postal-area>
    </allowed-areas>

    <allowed-areas>
    <postal-area>
    <country-code>RU</country-code>
    <country-code>DE</country-code>
    <country-code>FR</country-code>
    <country-code>ES</country-code>
    <country-code>IT</country-code>
    <country-code>UA</country-code>
    <country-code>NL</country-code>
    <country-code>GR</country-code>
    <country-code>BE</country-code>
    <country-code>PT</country-code>
    <country-code>HU</country-code>
    <country-code>AU</country-code>
    <country-code>CH</country-code>
    </postal-area>
    </allowed-areas>

    <allowed-areas>
    <postal-area>
    <country-code>US</country-code>
    </postal-area>
    </allowed-areas>

    Thread Starter v8s_uk

    (@v8s_uk)

    Ah yes that works perfectly, thank you! ??

    Thread Starter v8s_uk

    (@v8s_uk)

    I’ve tried this:
    <?php
    $cart = $_SESSION[‘wfcart’];
    $count=0;
    foreach($cart->items as $item){
    $count+= $cart->itemqtys[$item];
    echo $count;
    }
    ?>
    But it causes a strange output, which is, say I have added 2 of item 1 and 2 of item 2 it will display like this ’24’ it adds up the total items and displays them next to each other? If I added 1 of item 1, 2 of item 2 and 3 of item 3 it was display 136 adding 1,(1+2)3,(3+3)6

    Yes you’re spot on, the reason it was incrementing was because I was reloading the command page.

    Thread Starter v8s_uk

    (@v8s_uk)

    Woops, actually ignore that last bit about the quantity incrementing!

    Thread Starter v8s_uk

    (@v8s_uk)

    Yep the error I got before, which is:

    Parse error: syntax error, unexpected T_FOREACH in..

    Although after putting in the second semi colon it comes up with nothing (blank).

    On a separate note, from doing this I’ve noticed when you refresh the checkout page the first item in the cart incrementes by 1 each time? this might just be mine, I haven’t trouble shooted this but thought I’d just mention it.

    Thread Starter v8s_uk

    (@v8s_uk)

    I had tried that but still no luck ??

    Thread Starter v8s_uk

    (@v8s_uk)

    Thanks for the help. I’ve got 51 items in my cart and the output I get when running that is:

    wfCart Object
    (
        [items] => Array
            (
                [0] => test-product2-some-description
                [1] => test-product-bla-bla-bla
            )
    
        [itemprices] => Array
            (
                [test-product2-some-description] => 1
                [test-product-bla-bla-bla] => 1
            )
    
        [itemqtys] => Array
            (
                [test-product2-some-description] => 1
                [test-product-bla-bla-bla] => 50
            )
    
        [itemweight] => Array
            (
                [test-product2-some-description] => 400
                [test-product-bla-bla-bla] => 400
            )
    
        [itemname] => Array
            (
                [test-product2-some-description] => Test Product2
                [test-product-bla-bla-bla] => Test Product
            )
    
        [itemoptions] => Array
            (
                [test-product2-some-description] => Array
                    (
                        [test-product2] => some description
                    )
    
                [test-product-bla-bla-bla] => Array
                    (
                        [test-product] => Bla bla bla
                    )
    
            )
    
        [itemurl] => Array
            (
                [test-product2-some-description] => https://test.vision8studio.co.uk/?page_id=143
                [test-product-bla-bla-bla] => https://test.vision8studio.co.uk/?page_id=143
            )
    
        [total] => 51
    )
    Thread Starter v8s_uk

    (@v8s_uk)

    Thank you for the reply, although the code doesn’t seem to work ?? ‘Parse error: syntax error, unexpected T_FOREACH in….’

    Thread Starter v8s_uk

    (@v8s_uk)

    Thanks for the help bluey, although the number of items that displays is for each individual product – so if someone adds 5 of one item it will still show as 1 item. Is there a way it will show the total amount of products in the basket?

    Excellent thanks for the heads up regarding free shipping, got that working fine.

    Thread Starter v8s_uk

    (@v8s_uk)

    Thanks for the reply bluey, I’ve just downloaded and tested 1.9.5 and the error has now gone ?? so far so good. Much appreciated.

    Thanks again

Viewing 12 replies - 1 through 12 (of 12 total)