Post by al3xandr1a » Sat Feb 16, 2019 1:18 pm

Hi guys,

I cannot embed a Subscription Form as part of the description of a particular Information Page.
On the said form, a text field will fetch the value using a piece of PHP code. The value is actually a cookie value.
for example:

Code: Select all

<input id="affid" name="affid" type="text" value="<?php echo "$_COOKIE[tracking]"; ?>"/>
But after clicking the save button, it changes to this:

Code: Select all

<input id="affid" name="affid" php--="" type="text" value="&lt;?php echo=" />
It's on OC version 1.5.4.1

Please help. Thank you.

~al3xandr1a
Newbie / Student


User avatar
New member

Posts

Joined
Fri Jul 02, 2010 7:27 pm

Post by webmedialdh » Sat Feb 16, 2019 1:22 pm

Well, please check the below-mentioned links hope that solves your problem
https://ckeditor.com/old/forums/CKEdito ... e-CKEditor
viewtopic.php?t=170699

Webx IT Solutions
Tel: +91 99154 09292, Skype: webmedialdh, Email: support@webxitsolutions.com
Image


User avatar
New member

Posts

Joined
Fri Apr 22, 2016 5:52 pm
Location - Ludhiana, Punjab

Post by al3xandr1a » Sat Feb 16, 2019 4:25 pm

Thank you but still no luck, webmedialdh.

From the link you shared I have installed the Show Protected CKEditor plugin but it's still breaking and stripping the code in a different way, for example:

Code: Select all

<input  id="affid" name="affid" type="text" value="&lt;?php echo " />

~al3xandr1a
Newbie / Student


User avatar
New member

Posts

Joined
Fri Jul 02, 2010 7:27 pm

Post by soundzgood-nz » Tue Feb 19, 2019 12:06 pm

Why not try adding it via vqmod / ocmod ?
Simon

User avatar
Active Member

Posts

Joined
Sat Oct 25, 2014 5:15 pm
Location - New Zealand

Post by al3xandr1a » Sat Feb 23, 2019 7:23 am

soundzgood-nz wrote:
Tue Feb 19, 2019 12:06 pm
Why not try adding it via vqmod / ocmod ?
Simon
Hi Simon,
How exactly can it be done? Because I wanted it in an Information Page (not a custom page) where contents are written using the ckeditor.

~al3xandr1a
Newbie / Student


User avatar
New member

Posts

Joined
Fri Jul 02, 2010 7:27 pm

Post by straightlight » Sat Feb 23, 2019 7:35 am

Try this:

Code: Select all

<input id="affid" name="affid" type="text" value="<?php echo urldecode(trim($_COOKIE[tracking])); ?>"/>

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 27 guests