Post by espc » Fri Jul 23, 2010 5:46 pm

I use weight based shipping.
but if customers buy 3 products then they have to choose another shipping method.
How can I hide the first one and show only the "promotional" shipping if customer buy 3 products?

God, give me courage to do what I can,
humility to admit what I can't,
and wisdom to know the difference.

Opencart mods (search suggestions and so on):
http://forum.opencart.com/viewtopic.php?p=71588#p71588" onclick="window.open(this.href);return false;


User avatar
Active Member

Posts

Joined
Fri Dec 04, 2009 12:40 am

Post by Qphoria » Fri Jul 23, 2010 9:08 pm

is the promotional shipping less than the normal shipping?

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by espc » Fri Jul 23, 2010 9:25 pm

yes

God, give me courage to do what I can,
humility to admit what I can't,
and wisdom to know the difference.

Opencart mods (search suggestions and so on):
http://forum.opencart.com/viewtopic.php?p=71588#p71588" onclick="window.open(this.href);return false;


User avatar
Active Member

Posts

Joined
Fri Dec 04, 2009 12:40 am

Post by espc » Sat Jul 24, 2010 5:44 pm

is there a way?

God, give me courage to do what I can,
humility to admit what I can't,
and wisdom to know the difference.

Opencart mods (search suggestions and so on):
http://forum.opencart.com/viewtopic.php?p=71588#p71588" onclick="window.open(this.href);return false;


User avatar
Active Member

Posts

Joined
Fri Dec 04, 2009 12:40 am

Post by cevarief » Sat Jul 24, 2010 8:22 pm

espc wrote:I use weight based shipping.
but if customers buy 3 products then they have to choose another shipping method.
How can I hide the first one and show only the "promotional" shipping if customer buy 3 products?
May be it needs some code modification checkout/shipping.php. Before loading shipping extensions, you should check if the cart has at least 3 products in a boolean flag. When looping the extension, if the flag is true, then ignore to add weight based shipping into quote data array, so the weight based would be invisible and won't be processed as part of shipping method. Yeah it's not that simple as it sounds but that's just a big picture.

Regards,
Cevarief

Active Member

Posts

Joined
Wed Jun 02, 2010 10:52 pm

Post by espc » Mon Jul 26, 2010 7:36 am

Thanks Cevarief, but even knowing your suggestions, it's pretty difficult to make changes to the code!

God, give me courage to do what I can,
humility to admit what I can't,
and wisdom to know the difference.

Opencart mods (search suggestions and so on):
http://forum.opencart.com/viewtopic.php?p=71588#p71588" onclick="window.open(this.href);return false;


User avatar
Active Member

Posts

Joined
Fri Dec 04, 2009 12:40 am

Post by Qphoria » Mon Jul 26, 2010 8:29 am

Well if your customer is given 2 options..

$10.00 for shipping
or
$5.00 for shipping

If they are dumb enough to choose 10.00, then good for you :)

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 42 guests