Checkout page – Hide paid shipping options when free shipping available

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeCheckout page – Hide paid shipping options when free shipping available

This topic has been marked as not a support question.

Hi there,

I think the title of this Topic speaks by itself. I am trying to hide from Checkout page All paid shipping options when  free shipping is available. I’m using default free shipping from opencart.

I’ve seen many of solutions but none seems to work for shoppica theme.

 

Thank you all.

 tecoad
October 22, 2011 at 11:15 am #2823

Hi,

We fear the customization, you are asking for, is relatively big as it requires a fair amount of coding. You may have to search for a freelancer to do the job for you.

Generally, we have modified the original checkout javascript for optimization. Maybe this is the reason, why the examples from the official forums do not work. You may need to adopt the changes to the Shoppica code.

Best Regards,
ThemeBurn team

October 24, 2011 at 3:45 pm #2873

catalog/model/shipping/
In your paid shipping option add bellow it will visible your shipping option if shipping paid or free then visible free shipping. free shipping must be enabled. hope its worked.

Code:

$status = TRUE;
                  } elseif ($query->num_rows) {
                        $status = TRUE;
                  } else {
                       $status = FALSE;
                }   
              } else {
                $status = FALSE;
            } 

use

Code:

if ($this->cart->getSubTotal() < $this->config->get('free_total')) {
      $status = true;
                } else {
         $status = false;
      }
    }

  • This reply was modified 4367 days ago by  sumankhan.
  • This reply was modified 4367 days ago by  sumankhan.
May 5, 2012 at 4:32 pm #8570

sorry for some mistake its working i checked.

if ($this->cart->getSubTotal() < $this->config->get('free_total')) {
      $status = true;
        } else {
            $status =false;
    }

May 5, 2012 at 5:08 pm #8574
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.