Jump to content

[SOLVED] how to remove '&content_only=1' in Terms and Condition


Recommended Posts

Hi, I have problem with link to Term and Condition in Order.

 

Term and Condition I have on address http://.../content/3-term-condition

 

In the order process I have link http://.../content/3-term-condition?content_only=1

 

How can I remove the parameter ?content_only=1

 

Thanks

Edited by vekia (see edit history)
Link to comment
Share on other sites

controllers/front/orderOpcController.php

	protected function _getCarrierList()
	{
		$address_delivery = new Address($this->context->cart->id_address_delivery);
		
		$cms = new CMS(Configuration::get('PS_CONDITIONS_CMS_ID'), $this->context->language->id);
		$link_conditions = $this->context->link->getCMSLink($cms, $cms->link_rewrite);
		if (!strpos($link_conditions, '?'))
			$link_conditions .= '?content_only=1';
		else
			$link_conditions .= '&content_only=1';
Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...