Jump to content
  • 0

The SSLStore module question


galaxy

Question

I'm setting up an order form for SSL products.  In each of the products it has a brief summary of product with a link to "View Full Product Details".  Every one of them has this in their description (150 of them).  When you click on it, nothing happens.  It looks like its a javascript call to void(0); but don't know if there's supposed to be CSS or something to launch a window or dialog.  The product details would be pretty important.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

OK, so the problem is that there's a change in CKEditor in Blesta 5.0+.

The HTML code that launches the descriptions are removed by CKEditor when you go into the package.  

In the package description, the following code is appended to the text of the description:

                        $viewmorelink = "<a class='mod_view_more' href='javascript&#58;void(0);' onclick=\"window.open('$sslfeaturelink','null','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,addressbar=0,titlebar=no,directories=no,channelmode=no,status=no');\"> View Full Product Details</a>";

To fix it, you need to wrap the <a class=...> ... </a> in the following:

<div class="raw-html-embed"> .... </div>

Or just make sure you're using the "Insert HTML" block for that set of code.

Link to comment
Share on other sites

  • 0
On 8/11/2021 at 2:11 PM, galaxy said:

OK, so the problem is that there's a change in CKEditor in Blesta 5.0+.

The HTML code that launches the descriptions are removed by CKEditor when you go into the package.  

In the package description, the following code is appended to the text of the description:

                        $viewmorelink = "<a class='mod_view_more' href='javascript&#58;void(0);' onclick=\"window.open('$sslfeaturelink','null','location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,addressbar=0,titlebar=no,directories=no,channelmode=no,status=no');\"> View Full Product Details</a>";

To fix it, you need to wrap the <a class=...> ... </a> in the following:

<div class="raw-html-embed"> .... </div>

Or just make sure you're using the "Insert HTML" block for that set of code.

Thanks! FYI, we created this task https://dev.blesta.com/browse/CORE-4440

Link to comment
Share on other sites

  • 0
On 8/11/2021 at 11:11 PM, galaxy said:

OK, so the problem is that there's a change in CKEditor in Blesta 5.0+.

The HTML code that launches the descriptions are removed by CKEditor when you go into the package.  

I met very same issue in WHMCS time ago. And I fixed it changing all the js managed links in normal HTML links, opened in a new tab.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...