• Posted by leewillis77 5 months ago.
  • There are 31 posts. The latest reply is from leewillis77
  • not a support question
  • WordPress version: 2.7
  • WP e-Commerce version: 3.6.*

Tags

The free community support forum is a place where WP e-Commerce users can work with other WP e-Commerce users to help one another get their shops up and running. There is no gaurantee that an Instinct staff member will respond to your topic within the free forum.

Acting out, swearing and threats are not tolerated, please play nice, we are all doing the best we can with the resources available.

 
  1. Trusted
    leewillis77
    Resident Expert

    I've just pushed out the following plugin to Wordpress.org

    Shipping module for the WP E-Commerce system that offers a matrix of countries, and cart amounts, e.g.

    U.K.
    £0 and over - £5.00
    £10 and over - £2.00
    £25 and over - £0.00

    France
    £0 and over - £15.00
    £10 and over - £12.00
    £25 and over - £10.00

    Requires 3.7.6 or later, but can be back-ported if required. Enjoy :)

    http://wordpress.org/extend/plugins/wp-e-commerce-country-cart-amount-shipping-module/

    Development was kindly sponsored by Nostromo - http://www.nostromo.nl/

    Posted 5 months ago #

  2. jonny
    New Member

    Thats great work! I just decided to setup international shipping today!

    One thing, do you really have to go through each country and setup shipping prices for each one? I just want to have one price for australia and one for the rest of the world.

    Posted 5 months ago #
  3. Trusted
    leewillis77
    Resident Expert

    For this plugin - yes. Do you need to have different shipping rated dependent on cart value?

    Posted 5 months ago #

  4. jonny
    New Member

    No, i'd prefer weight?

    I tried changing a country name to 'all other countries'. I think I broke it.

    Posted 5 months ago #

  5. jonny
    New Member

    Yeah, sure did bust it good. Errors everywhere. Any other ideas?

    I just want weight based freight for australia and 'other countries'

    Posted 5 months ago #

  6. jonny
    New Member

    Sorry, I gave it a decent chance, but It looked like I was going to bust something good and proper.

    Posted 5 months ago #
  7. Trusted
    leewillis77
    Resident Expert

    You probably want this:

    http://wordpress.org/extend/plugins/wp-e-commerce-weightregion-shipping/

    It lets you set by weight and "region". Where region is the five continents that you normally get for flat-weight, e.g.

    "Local"
    "Europe"
    etc.

    So - you only have a list of 4 or 5 to do...

    Posted 5 months ago #

  8. jonny
    New Member

    legend! I'll try that out~!

    Posted 5 months ago #

  9. jonny
    New Member

    Works great, thanks for that!

    Posted 5 months ago #

  10. jonny
    New Member

    Ok, one small thing. I also want to offer free shipping over a certain amount, but only to Australian customers. Any simple way?

    Posted 5 months ago #
  11. Trusted
    leewillis77
    Resident Expert

    In the "Local" rate, find the weight above which you want to do free shipping, and put "0" as the rate :) E.g.

    Weight over 0 $10
    Weight over 5 $20
    Weight over 10 $30
    Weight over 15 $0

    Posted 5 months ago #

  12. jonny
    New Member

    Ahh, but thats the issue, its not weight based, rather $ based. Say spend 200 get free freight. But only for aussies. Cheers

    Posted 5 months ago #
  13. Trusted
    leewillis77
    Resident Expert

    Right, so - what weight would cause the cost to be $200 ? Put that weight in ...

    Posted 5 months ago #
  14. Trusted
    leewillis77
    Resident Expert

    Ignore that last comment ... I'm bonkers :)

    Can't you just "Enable Free Shipping Discount" on the shipping admin pages and put the amount in there? Not sure if my module takes note of that setting ... but give it a whirl and see what happens!

    Posted 5 months ago #

  15. jonny
    New Member

    Then OS customers get free shipping too. Weights are not always relative to price in my case.

    Posted 5 months ago #
  16. Trusted
    leewillis77
    Resident Expert

    Weights are not always relative to price in my case.

    Indeed - I was being a prat :)

    Then OS customers get free shipping too.

    True. Basically you'd need to modify the shipping module to include that additional check, and waive shipping if country = 'AU' and cart total > '$200' then shipping = 0

    The article here might help you understand the module you've got:
    http://getshopped.org/resources/docs/get-involved/writing-a-new-shipping-module/

    Posted 5 months ago #

  17. jonny
    New Member

    whoosh. too much coding for me. Thanks anyway mate.

    Posted 5 months ago #

  18. Possy
    New Member

    Lee, i've just tested out your Weight/Region plugin on WP 2.9.2 and WP-ecommerce 3.7.6RC1
    http://wordpress.org/extend/plugins/wp-e-commerce-weightregion-shipping/

    I have configured a few regions but get this error message once I test it out in the shop frontend:

    Missing argument 2 for ses_weightregion_shipping::get_item_shipping(), called in /domain.com/wp-content/plugins/wp-e-commerce/wpsc-includes/cart.class.php on line 1825 and defined in /domain.com/wp-content/plugins/wp-e-commerce-weightregion-shipping/wp-e-commerce-weight-region-shipping.php

    Any ideas what's causing that? Is it because I haven't configured weights for all regions? I only did Local and North America.

    EDIT:

    Looks like thats not the cause. I've deactivated the plugin in the mean time, it looks good thou, keen to use it if I can get to the bottom of this Warning message, cheers.

    Posted 5 months ago #
  19. Trusted
    leewillis77
    Resident Expert

    The version published to Wordpress.org is based on the 3.7.5 API (Since that's the latest stable release). I have the 3.7.6 version ready to go once 3.7.6 becomes stable, but in the meantime if you PM me your email address I can send it over as a .zip file.

    Posted 5 months ago #

  20. meow
    Expert

    lee, i have a set of shipping options that have caused me a headache, wondering if you had any thoughts:

    i have three options for shipping, which i actually have as variations. first class (free), recorded delivery (£1.50), special (£4.95). and then a free option if they spend enough. this is all fine if they are from the UK, but at the moment it only charges that amount for all other countries (only a couple I actually ship to) since it is just a variation and not country based. i need a separate price structure for other countries (will lump them all as one category here "Europe").

    so - any idea how to remove my shipping from variations and have it selectable in the cart, with different prices for Europe compared to UK - it will be a choice for the buyer not automatically calculated.

    sorry if that is confusing! i am working on it at the moment but not really getting anywhere with ideas.

    Posted 5 months ago #

  21. meow
    Expert

    to de-confuse:

    i wish to have multiple shipping choices on the checkout page with different prices (eg. first class, recorded, special) and these choices should be country specific (uk prices different to french prices)

    ------------------------------

    okay, i have now figured it all out (hopefully) and am writing a shipping module as i type. well, not as i type but you catch my drift.

    Posted 5 months ago #

  22. meow
    Expert

    just to keep this up-to-date, i have now finished my shipping module. i doubt it is elegant in the code but it works a treat!

    you go to checkout, choose your country and it then displays various shipping options you have provided. example: choose UK and it shows first class, recorded and special with appropriate prices. choose france and it shows airmail, airsure and global express with appropriate prices.

    yay.

    Posted 5 months ago #
  23. Trusted
    leewillis77
    Resident Expert

    Excellent - sorry I hadn't replied sooner - but glad you got it sorted :)

    Posted 5 months ago #

  24. skateyuk
    New Member

    Hi,

    I've purchased the gold extension and my problem is the same as above. Basically I will use weight based shipping (no problem there) but I want the customer to have the option of choosing first class, second class and recorded delivery at the checkout stage.

    cheers

    Posted 3 months ago #
  25. Trusted
    leewillis77
    Resident Expert

    There's no way of achieving multiple weight-based shipping options with the standard plugin - you'd need to develop a custom shipping module - or commission one.

    There's info on what's involved and a sample module here:

    http://getshopped.org/resources/docs/get-involved/writing-a-new-shipping-module/

    Posted 3 months ago #

  26. skateyuk
    New Member

    Hi Lee,

    Thanks for the reply. We've had a go at writing our own shipping module based on your example and it works fine on local host which hasn't got the gold cart upgrade. However, on the live version with the gold cart upgrade, it won't work. It just doesnt show the shipping method in the admin section.

    Any suggestions?

    Cheers....

    Posted 3 months ago #
  27. Trusted
    leewillis77
    Resident Expert

    Gold cart shouldn't make any difference. Are you sure that the plugin is activated? Is the version of WPEC the same on both sites?

    Posted 3 months ago #

  28. skateyuk
    New Member

    Well blow me.... would you believe it!

    Can't believe I forgot to activiate it, thanks for that. It now works but throws up one problem, I have two shipping methods, weight based, which works fine, and now the recorded delivery option which shows at the checkout stage to give the user the option of recorded delivery if they want it which shoudl then be added to the weight based.

    However, if they choose recorded delivery at checkout it removes the option from the weight based price altogether. This means that instead of shipment being weight based + recorded = total, now means recorded delivery value only?

    Posted 3 months ago #
  29. Trusted
    leewillis77
    Resident Expert

    That's intended behaviour - although evidently not exactly what you want. Shipping modules each present their prices, and the customer chooses one - they don't add up. You'd need to make your "recorded" option somehow generate the weight prices and then do whatever additional culculations you want...

    Posted 3 months ago #

  30. skateyuk
    New Member

    Hi Lee,

    Thanks for your help, we've cracked that one. We've basically copied the existing weight based module and changed some of the code to include the cost of recorded delivery and it works a treat. In the shippment setting we now have two weight based modules. 1 for firstclass weight based, and 1 with recorded delivery weight based.

    One problem we have now noticed however, is that the shipment cost which shows in the main table at the top of the checkout page says 0 for shipment whish is miss leading. Is there anyway of removing this cost either, from the admin, or from within the php file because the shipment cost is also shown below the shipment module costs.

    We've tried looking through the php files but have been unable to find the relevant code.

    Posted 3 months ago #
  31. Trusted
    leewillis77
    Resident Expert

    You can possibly take that out in shopping_cart_page.php within your WPEC theme?

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.