Jump to content

Separate shipping cost for an item


Recommended Posts

so i know its possible to set up different shipping carriers for different regions but is it possible to set up a shipping option for just one of the items i sell and if so how?

 

just to clarify ,i have one product which is really light and cheap and i wish to set up a carrier just for this item if it is purchased without any of the other items i offer

 

thanks

Link to comment
Share on other sites

Hmm... I think it may work. In the place of your shipping options

{assign var="carrierforitem" value="0"}

{foreach from=$products item='product'}

{if {$product.id_product} == 'id of this product'}

{assign var="carrierforitem" value=$carrierforitem+1}

{else}
{assign var="carrierforitem" value=$carrierforitem+2}
{/if}

{/foreach}

{if {$carrierforitem} == '1'}

Code for your special carrier which will depend on your presta version(how code looks)
You will have to add it before or after foreach function with your carriers.
If you want to set it as default you will have to "tick" the radio box
{/if}

But I am not sure if it will work 'cause I haven't tested it.

Edited by satania (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...