Hi,
I am using code in my product description. When I add an item and change to the source code I see the default <p> </p> or what ever it is. I can then paste my code in and save. Product shows fine when looking in the store but if I go back to admin to edit I can't switch to source code and the html show in a small scrollable text box above the main description box making it very hard to edit the code. Attached screenshot with arrow pointing to text box when I go into the product editing without trying to view source code.
Has anyone come across this problem and know has to resolve please? Thanks.
I am using code in my product description. When I add an item and change to the source code I see the default <p> </p> or what ever it is. I can then paste my code in and save. Product shows fine when looking in the store but if I go back to admin to edit I can't switch to source code and the html show in a small scrollable text box above the main description box making it very hard to edit the code. Attached screenshot with arrow pointing to text box when I go into the product editing without trying to view source code.
Has anyone come across this problem and know has to resolve please? Thanks.
Attachments
screenshot.jpg (37.4 KiB) Viewed 14992 times
OK just to let you know sorted it. I added code bit by bit and found the below was causing the issue! So removed. Obviously rem lines not liked. Simples!!!
Code: Select all
<!-- *************************************************************************************-->
var image = "imagename";
<!-- *************************************************************************************-->
Last edited by straightlight on Wed Mar 04, 2020 7:08 am, edited 1 time in total.
Reason: Added code tags.
Reason: Added code tags.
OK spoke to soon!
If you edit / add product. Then switch to code view paste in code and save. Now edit again and if you switch to code view then back to normal view and save and then go back to edit the little box appears again.
So it looks like if you edit and switch to code view don't switch back to normal view instead save and then go back in and the little text box no longer appears.
SO don't keep swapping back and forth switch once edit then save and go back in.
is this a bug?
If you edit / add product. Then switch to code view paste in code and save. Now edit again and if you switch to code view then back to normal view and save and then go back to edit the little box appears again.
So it looks like if you edit and switch to code view don't switch back to normal view instead save and then go back in and the little text box no longer appears.
SO don't keep swapping back and forth switch once edit then save and go back in.
is this a bug?
Are you using the standard editor and have you tried using an alternative editor such as CKEditor? The only thing to be wary of with CKEditor though is that it does try to be too helpful at times in closing and adding tags when you don't want them!
Hi Patrick
Thanks for your reply I am using Dreamweaver CS5 to create the code so I can test it before loading. It is just weird the way it will paste in ok then view correctly the first time but if swapping to source view screws the page up when looking again. I can see in the oc_product dB it replaces all the quotes etc with HTML & codes. I made sure I removed all the & and escape characters but still no joy!
Thanks for your reply I am using Dreamweaver CS5 to create the code so I can test it before loading. It is just weird the way it will paste in ok then view correctly the first time but if swapping to source view screws the page up when looking again. I can see in the oc_product dB it replaces all the quotes etc with HTML & codes. I made sure I removed all the & and escape characters but still no joy!
It a rather dangerous task to to use 'wysiwyg' HTML Generators, generally, to create html Source, to be placed into CODE. So, make sure, you only have clean real basic HTML Source, or then clean, directly 'included' CSS-Stuff, nothing else, possibly included, or even linked to where/whatever, by Dreamweaver.
Just an Idea, out of older days...
Ernie
Just an Idea, out of older days...

Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
im having the problem with
im using this to create a static Description across 1000+ items that are similar. this way i can change 1 HTML file for may
if i live Source open and save it works. but if i close the product and come back or switch back to WISIWG mode it removes the object code.
Code: Select all
<object id="tb-dis" data="https://hiddenurl.com/discription-html.php" width="100%" height="800px">Error</object>
if i live Source open and save it works. but if i close the product and come back or switch back to WISIWG mode it removes the object code.
It would be helpful if you stated your OpenCart version.bluebrad wrote: ↑Mon Oct 10, 2022 8:56 amim having the problem withim using this to create a static Description across 1000+ items that are similar. this way i can change 1 HTML file for mayCode: Select all
<object id="tb-dis" data="https://hiddenurl.com/discription-html.php" width="100%" height="800px">Error</object>
if i live Source open and save it works. but if i close the product and come back or switch back to WISIWG mode it removes the object code.
Who is online
Users browsing this forum: Semrush [Bot] and 100 guests