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.
|
|
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
|
|
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.
|
|
sorry for some mistake its working i checked.
if ($this->cart->getSubTotal() < $this->config->get('free_total')) {
$status = true;
} else {
$status =false;
}
|
|