JaroslavH Posted September 23, 2013 Share Posted September 23, 2013 (edited) 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 September 24, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 23, 2013 Share Posted September 23, 2013 what order method you use OPC or 5 steps? Link to comment Share on other sites More sharing options...
vekia Posted September 23, 2013 Share Posted September 23, 2013 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 More sharing options...
JaroslavH Posted September 24, 2013 Author Share Posted September 24, 2013 Hi, I have 5 steps order method. How do I modify to me it did not affect other links? Thanks Link to comment Share on other sites More sharing options...
vekia Posted September 24, 2013 Share Posted September 24, 2013 just remove the if (!strpos($link_conditions, '?')) $link_conditions .= '?content_only=1'; else $link_conditions .= '&content_only=1'; Link to comment Share on other sites More sharing options...
JaroslavH Posted September 24, 2013 Author Share Posted September 24, 2013 I deleted it, but still it was there. I was looking for the same code and I found it here ParentOrderController.php Now it's OK I hope that it will not affect anything else. Thanks for advice Link to comment Share on other sites More sharing options...
vekia Posted September 24, 2013 Share Posted September 24, 2013 ohh youv'e got right, i've noticed that you said that you don't use OPC :| my bad, it will not affect anything, you don't have to worry im going to mark this topic as solved Link to comment Share on other sites More sharing options...
JaroslavH Posted September 24, 2013 Author Share Posted September 24, 2013 My english is bad. Maybe I wrote it wrong. Thanks Link to comment Share on other sites More sharing options...
botmez Posted December 17, 2013 Share Posted December 17, 2013 Where can I change the PS_CONDITIONS_CMS_ID ? I have delete the Page 'terms and condition' So my ID has change ! How to set up the ID to be displayed in the OPC Module ? Link to comment Share on other sites More sharing options...
Recommended Posts