Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 5 of 5
>> Modèles de configuration
 
owebia
Mentor
 
Avatar
Total Posts:  1227
Joined:  2008-07-11
France, Morteau
 

An equal was missing :

conditions"{cart.price_including_tax}>=50 && {count products where product.category.id==8}>=2",

A.L.

 
Magento Community Magento Community
Magento Community
Magento Community
 
mserge
Jr. Member
 
Total Posts:  7
Joined:  2012-04-13
 

It didn’t work either.
I don’t understand… because the 50€ is working perfectly.
Can i have a problem with the categories?

 
Magento Community Magento Community
Magento Community
Magento Community
 
owebia
Mentor
 
Avatar
Total Posts:  1227
Joined:  2008-07-11
France, Morteau
 

Are your products in more than one category ? Are you sure of the value of the category id ?
Can you activate the debug of Owebia Shipping ?
Then try to fill a cart and ask for a shipping estimation.
What is the displayed output ?

A.L.

 
Magento Community Magento Community
Magento Community
Magento Community
 
mserge
Jr. Member
 
Total Posts:  7
Joined:  2012-04-13
 

Yup. Is only in that category and de id is correct.

This is what i have.

{
code: “chronopost_classic_zone_2”,
label: “Registado (1-3 dias úteis) “,
destination: “PT”,
fees: “{table {cart.weight} in 49:1.97, 449:2.77, 949:3.57, 1949:3.82}”,
tracking_url: “http://www2.ctt.pt/feapl_2poa/app/open/objectSearch/ctt_feapl_132col-cttObjectSearch.jspx”,
}

{
code: “free_prod”,
label: “Portes Grátis (1-3 dias úteis) “,
destination: “PT”,
conditions: “{cart.price_including_tax}>=50 && {count products where product.category.id==8}>=2”,
fees: 0,
}

Am i doing something wrong?

 
Magento Community Magento Community
Magento Community
Magento Community
 
owebia
Mentor
 
Avatar
Total Posts:  1227
Joined:  2008-07-11
France, Morteau
 

I need the debug output.
Please, follow my previous instructions

 
Magento Community Magento Community
Magento Community
Magento Community
 
mserge
Jr. Member
 
Total Posts:  7
Joined:  2012-04-13
 

This is what i have....

DEBUG app/code/community/Owebia/Shipping2/includes/OwebiaShippingHelper.php
info.php.version = 5.2.17
info.magento.version = 1.4.2.0
info.module.version = 2.3.8
info.carrier.code = owebiashipping3
cart.price_excluding_tax = 25.86
cart.price_including_tax = 31.8
cart.weight = 320
cart.weight.unit = gr
cart.quantity = 2
destination.country.code = PT
destination.country.name = Portugal
destination.region.code =
destination.postcode =
origin.country.code = PT
origin.country.name = Portugal
origin.region.code = Lisboa
origin.postcode = 2560-300
customer.group.id = 0
customer.group.code = NOT LOGGED IN
free_shipping = false
store.id = 1
store.code = default
store.name = Pegada Verde
store.address =
store.phone =
date.timestamp = 1337836275
date.year = 2012
date.month = 5
date.day = 24
date.hour = 5
date.minute = 11
date.second = 15

=> Ignored lines
{ code: “free_prod”, label: “Portes Grátis (1-3 dias úteis) “, destination: “PT”, conditions: “{cart.price_including_tax}>=50” “{cart.price_including_tax}>=50 && {count products where product.category.id==8}>=2”, fees: 0, }

process row chronopost_classic_zone_2

get chronopost_classic_zone_2.enabled = null

get chronopost_classic_zone_2.conditions = null

get chronopost_classic_zone_2.destination = PT

country code PT matches

get chronopost_classic_zone_2.origin = null

get chronopost_classic_zone_2.customer_groups = null

get chronopost_classic_zone_2.fees = {table {cart.weight} in 49:1.97, 449:2.77, 949:3.57, 1949:3.82}

replace {cart.weight} by 320 => {table 320 in 49:1.97, 449:2.77, 949:3.57, 1949:3.82}

cache {table 320 in 49:1.97, 449:2.77, 949:3.57, 1949:3.82} = 2.77

replace {table 320 in 49:1.97, 449:2.77, 949:3.57, 1949:3.82} by 2.77 => 2.77

formula evaluation = 2.77

cache {table {cart.weight} in 49:1.97, 449:2.77, 949:3.57, 1949:3.82} = 2.77

=> result = 2.77

get chronopost_classic_zone_2.label = 1-3 dias úteis

Those it help?
Thanks,
Sérgio

 
Magento Community Magento Community
Magento Community
Magento Community
 
owebia
Mentor
 
Avatar
Total Posts:  1227
Joined:  2008-07-11
France, Morteau
 

As you can see in the debug, a part of your configuration is ignored. You have a part of code remaining from your old configuration :

conditions"{cart.price_including_tax}>=50"
"{cart.price_including_tax}>=50 && {count products where
product.category.id==8}>=2"
,

must be replaced by :

conditions"{cart.price_including_tax}>=50 && {count products where
product.category.id==8}>=2"
,

A.L.

 
Magento Community Magento Community
Magento Community
Magento Community
 
magento69
Jr. Member
 
Total Posts:  12
Joined:  2010-04-30
 

Bonjour,

Je voudrais afficher uniquement les franco de port quand la conditions est remplis mais owebia m\\\’affiche les deux chois de port
Voici ma configuration
#####
# Colissimo
#
# Validité
# Tarifs du 1er mars 2010
# Crédits
# Configuration réalisée par owebia
#
# Colissimo National (France, Monaco, Andorre)
{
code: \\\"colissimo\\\",
label: \\\"Colissimo National\\\”,
destination: \\\"FR\\\",
fees: \\\"{table {cart.weight} in 5.0:15.83, 10.0:17.41, 15.0:19.74, 20.0:21.31, 30.0:27.66, 40.0:31.60, 50.0:35.44, 60.0:38.20, 70.0:44.43,80.0:49.55, 90.0:51.18,100.0:60.63,500.0:62.42,1000.0:54.24}\\\”,
}

# Franco de port

{
label: \\\"Franco de port\\\”,
code: \\\"franco\\\",
destination: \\\"FR,MC,AD\\\",
conditions: \\\"({cart.weight} <1000.0)and({cart.price_excluding_tax}>= 299.0)\\\”,
fees: \\\"0.0\\\",
}

Merci beaucoup de votre aide smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
owebia
Mentor
 
Avatar
Total Posts:  1227
Joined:  2008-07-11
France, Morteau
 

Vous devez ajouter :

conditions"!({franco.conditions})",
à la première méthode de livraison.
A.L.
 
Magento Community Magento Community
Magento Community
Magento Community
 
magento69
Jr. Member
 
Total Posts:  12
Joined:  2010-04-30
 

Nickel merci beaucoup smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 5 of 5