I've tried to add product-specific shipping charges to my current ecommerce installation, but run into the following issues:

If I set the charge type to "product", then all the prices on the product pages change to include the shipping cost (e.g. products that are $10 with $2 shipping are displayed as $12). Furthermore, in the cart checkout, there are is no subtotal breakdown of the shipping costs.

If I set the charge type to "transaction", the product prices are unaffected (i.e. $10 products are displayed as $10 products) and I see a 'Shipping' subtotal line in the cart checkout, but I can't edit the "Calculations" field (Fatal error: __clone method called on non-object in C:\Program Files\wamp\www\asyr\includes\common.inc on line 1682) and if I try to use the variable [qty] as part of a calculation, I get an error on the checkout page (Parse error: syntax error, unexpected '[' in C:\Program Files\wamp\www\asyr\sites\all\modules\ecommerce\ec_charge\modules\system.inc(136) : eval()'d code on line 1).

Basically, I'm looking to set up a store where the pre-shipping prices are displayed on the product pages and the shipping prices are calculated at checkout based on the product types and quantities.

Any help would be appreciated. Thanks!

Comments

gordon’s picture

Can you please export your charges so I can check them easier.

gordon’s picture

Looking further.

The use of products generally doesn't create lines on the invoice. As this is included in the price of the product. Shipping is really something that should not been included in the price so you should create this as a transaction type charge and then you can do a qty * 2.00 for the price.

Unforcantantly ATM there is now qty field. I will look at adding one.

gordon’s picture

I have looked at this more, and I have added to shipping and terms that they will return the total price as well as the quantity.

The reason that the quantity will not work is that it was only avaiable with product types as a global variable. But the changes I made to shippable and terms so you can user [shippable:qty] to get the quantity of the shippable items.

Use the replacable token pull down will give you a list of all the tokens.

sinmanteca’s picture

That's great! Thanks for the explanation and the extra tokens are quite helpful. In my example above, I am also trying to apply product-specific shipping charges to my store (e.g. different charges for small and large items). Perhaps a product type filter or product type tokens would be necessary here?

gordon’s picture

I would do this with a term type that you can filter by.

xen’s picture

Status: Active » Fixed

Looks fixed to me.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.