Close

Profile: Deni

Avatar

User posts

9 years ago

justinhof wrote:
I am currently setting the prepareSpecificationAttributes to true in the PrepareProductOverviewModels function, but it does not change the filtered products being returned to include the specifications.

Is it possible to do what others have done and include this within the All Settings feature, defaulting it to false, but then allowing it to be changed to True as needed?

This way I don't have to change the core Nop code and the plugin provides flexibility.

Thanks!


Hi, 

This was just done. You can update your plugin. Now we have a hidden setting "NopAjaxFiltersSettings.PrepareSpecificationAttributes", which allows the preparing of the specification attributes. Just go to all settings, find it and set it to "true".

9 years ago

WallpaperBlvd wrote:
Will this plugin allow you to put a search in the middle of the homepage. Judging from the screenshot, it looks like it will.  Thanks


Hi, 

As you can see on our demo that is exactly its functionality.

Hi, 

This looks like browser caching issue - caching one of our main JavaScript files. But when I looked at your site, I found no problems. If you need any further help, you can always ask our support team by raising a ticket.

9 years ago

gnik wrote:
Hi. How to insert a script on jquery from leanmodal (modal window)

Senks.


Hi, 

Maybe the wrapping of the JavaScript inside CDATA will help you. Please read this topic.

9 years ago

illutian wrote:
Reported it over in the bugs, and was told you need to modify the RichEditor.cshtml

But, I'm looking at it and have no idea were to put the possible fix of "extended_valid_elements". And looking at the TinyMCE wiki it's pretty clear that the editor's config isn't set up for Razor HTML files :\

Optimally, I'd like to tell the editor to completely ignore HTML tags. Specifically the <g:plusone></g:plusone> tags used in the Google +1 button code.


Hi, 

I think I found a solution for you. In the documentation of Google, I found that the "g:plusone" tag can be replaced by W3C compliant element:
<div class="g-plusone" data-size="tall"></div>


I hope this helped !

9 years ago

david.hirst wrote:
Hi,

Thanks for that. I'm now running NOPC v3_60 having updated from v3_50 yesterday.
I tried updating the code manually as you suggested but got the error "Compiler Error Message: CS1061: 'SevenSpikes.Nop.Plugins.Attachments.Models.AttachmentPublicModel' does not contain a definition for 'ImageName' and no extension method 'ImageName' accepting a first argument of type 'SevenSpikes.Nop.Plugins.Attachments.Models.AttachmentPublicModel' could be found (are you missing a using directive or an assembly reference?)" so have instead edited in a fixed string for now as you showed me where to do it. I will await the full plugin upgrade which I expect will sort this out.

Thanks.


Hi, 

The error says that you have wrote this:
<img src="@attachment.ImageUrl" alt="@attachment.ImageName" />


I wrote in my previous comment that the fix should look this way:
<img src="@attachment.ImageUrl" alt="@attachment.Name" />


I hope this helped!

9 years ago

doyoubake wrote:
Thanks but that doesn't help me much. Where in the admin panel do I go. I don't want the file level / developer level. I want my admin to configure it. I know I configured it when I was at 2.65 in the admin config area but I don't know where to configure it in 3.5. What menu dropdown do I look for to update these details? Where in the settings?


Hi, 

I think this tutorial explains it all. Let me know if you need something else!

Bugs
9 years ago

illutian wrote:
I've noticed that something is stripping out HTML code "just because". I tried to use this: <script src="https://apis.google.com/js/platform.js" async defer></script>
  <g:plusone></g:plusone>

But the HTML Widget keeps stripping out the <g:plusone></g:plusone>

----

Nop Version: 3.5


Hi, 

The HTML Widgets use the default text editor (tinyMCE) that comes from the nopCommerce platform. It is the one which strips the <g:plusone> tag, because this is the way it works.

You can try modifying the tinyMCE editor, by going to this file: 
\Administration\Views\Shared\EditorTemplates\RichEditor.cshtml.

Looking at the tinyMCE documentation, it has an option "extended_valid_elements", which might be of help.

9 years ago

david.hirst wrote:
The image which you can specify to be displayed beside the attachment link on the public website creates an html img tag where the img src value is also specified for the alt text tag. This is a bit peculiar as it should really be alternate text to describe the image and not a URL! The plugin doesn't appear to have a specific alt txt field where you can specify it. If the plugin has to make something up it would be better to either use an empty string or base it on the name of the attachment rather than the URL of the image. 

e.g. for one of my attachments this is the code generated:

<img src="https://www.mysite.com/store/content/images/thumbs/0009249.png" alt="https://www.mysite.com/store/content/images/thumbs/0009249.png">


Hi, 

Thanks for pointing out this. We just fix it in the plugin. 

If you do not want to wait for the deploy, you can easily fix it by yourself.
Go to this file: \Plugins\SevenSpikes.Nop.Plugins.Attachments\Views\ProductAttachment\_Attacments.cshtml and find this row: 
<img src="@attachment.ImageUrl" alt="@attachment.ImageUrl" />

Edit it like this:
<img src="@attachment.ImageUrl" alt="@attachment.Name" />


And this will show the name of the attachment as a alternative text.


P.S. Please let us know which version of nop you are using.

9 years ago

doyoubake wrote:
Where do I go to Configure the Contact Us and About us on the main page above the footer? I've looked all over the place in the settings and can't find the location to update the content


Hi, 

If you open this file: "\Themes\Tiffany\Views\Common\Footer.cshtml" you will see that all these are resources. You can find them in the language resources. Just search for this resource name: "SevenSpikes.Themes.Tiffany".

Let me know if you need any further help.