Skipping shippingcosts

More
6 years 7 months ago #596 by Simpel
After month I finally found a solution for my problem. It was very random when somebody get the shippings cost or not.

But in checkout_shipping.php

You find some code:


arround rule 82
if (SELECT_VENDOR_SHIPPING != \'true\') {
  if (($order->content_type == \'virtual\') || ($order->content_type == \'virtual_weight\') ) { // Edited for CCGV
    if (!tep_session_is_registered(\'shipping\')) tep_session_register(\'shipping\');
    $shipping = false;
    $sendto = false;
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, \'\', \'SSL\'));
  }
  }

I change this into
// if the order contains only virtual products, forward the customer to the billing page as
// a shipping address is not needed
  if (($order->content_type == \'virtual\') || ($order->content_type == \'virtual_weight\') ) { // Edited for CCGV
    if (!tep_session_is_registered(\'shipping\')) tep_session_register(\'shipping\');
    $shipping = false;
    $sendto = false;
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, \'\', \'SSL\'));
  }

And the problem seems solved

Please Log in to join the conversation.

Time to create page: 0.133 seconds
Events Joomla
MarvikShop
Finnaly it's here:
 
No bridges, no look a likes!
This is the ultimate integration
between Oscommerce and Joomla!
Documentation
Site Showcase
Follow us