ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Shipping, currency tax in simple commerce SOLVED

March 23, 2011 6:08am

Subscribe [3]
  • #1 / Mar 23, 2011 6:08am

    imagineer

    8 posts

    To be quite honest I thought the analogy for simple meant ‘easy’ not ‘stupid’. But when you get into simple commerce - you really get a feel for how inflexible, undocumented and mostly un-useful it actually is.

    If you want to add options for shipping, currency, tax and other standard cart options, then you’ve probably done the rounds and seen the only current solution is to build your own form (in which case, why bother with simple cart?)

    Solution (using {add_to_cart_url} in your template:

    - Read up on variables you can send to paypal at https://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/howto_checkout-outside
    - In system/expression-engine/modules/simple-commerce/ open mod.simple_commerce.php
    - Look at around line 230 for $add_to_cart[‘hidden_fields’]  = array
    - Simply modify any parameter you like by adding it to the array.

    Example:

    ‘currency_code’      => ‘AUD’,
    ‘shipping’      => ‘10’,
    ‘shipping2’      => ‘0’,


    For a commercial application, ee really needs to work on its documentation! Explain step by step how to setup your simple commerce site. Allow a little more flexibility for features you should find in any ‘simple’ (easy) cart system.

  • #2 / Mar 23, 2011 4:13pm

    Brandon Jones

    5500 posts

    Thanks for the feedback, imagineer. This is a good hack so I’m moving it over to the CodeShare Corner. Please also use the Feature Request forum as I definitely understand there are limitations to the current module.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases