Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PatrickPeeters

Pioneers
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Real Name
    Patrick Peeters

PatrickPeeters's Achievements

  1. I'm not an expert, but I use ship2pay Install is very easy copy in file's, alter the php's according to the read me... in the ship2pay - Link multisafepay to 1 shipping create another shipping module with the right amount. Link only this one with ship2pay to the second payment.
  2. I did add the $shipping_weight in the table shipping option. The tableshipping option can calculate the shippingcosts based on price or weight. Some smart guys figured out posted it on the web, that the shipping is based on weight if the product has a weight configured and that works nicely. (except I have non shippable cheap items that's a problem) so I figured out if I can hide the shipping option by maximum weight and fill in the weight of a product that i do not want ship, and make all those products very heavy it won't show up if in the cart is one of them. I'm not a php guru but somehow after some tinkering it now works!! I'm clueless why. I seen a lot of people asking for it but no real answer. used this code on : var $code, $title, $description, $icon, $total_weight, $enabled; if ( ($this->enabled == true) && ($shipping_weight >= 100) ) { $this->enabled = false; The shipping_weight option was allready in the code default, because of the table shipping calculation option needs the weight to figure out shipping.
  3. I'm offering Pickup and Shipping on my site. For products which I can do both it works. I want some products never to be shipped, because their simply to heavy. So if I can hide shipping for products that are way to heavy for shipment and only display pickup as an option. It works if I let OSC 2.2 do it on price, with the following code in the shipping module. if ( ($this->enabled == true) && ($order->info['total']>= 100) ) { $this->enabled = false; } What would be to code to do it base on weight? This doesn't seem to work for me: if ( ($this->enabled == true) && ($shipping_weight >= 100) ) { $this->enabled = false; Should be easy feeling kinda stupid that nothing seems to work!
×
×
  • Create New...