Close

Profile: hristian.dimov

Avatar

User posts

Bugs
8 years ago

cqjiyong wrote:
I have installed the nop-template plugins(Seven Spikes Core, Nop Uptown Theme), after installing Nop Cloud Zoom plugin, the product detail thrown an error, like the following, could anyone take a look it?



Server Error in '/' Application.

Buffer cannot be null.
Parameter name: buffer

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Buffer cannot be null.
Parameter name: buffer

Source Error:


Line 3:  @foreach (var widget in Model)
Line 4:  {
Line 5:      @Html.Action(widget.ActionName, widget.ControllerName, widget.RouteValues)
Line 6:  }

Source File: g:\Git projects\PFAFF\Presentation\Nop.Web\Views\Widget\WidgetsByZone.cshtml    Line: 5


Hi,

Do you have any other 3rd party plugins installed on your site? I'm asking because none of our plugins could return such error (Buffer cannot be null.).

Looking forward to your reply!

8 years ago

abc_nopdev wrote:
Any help would be appreciated! Thanks!


Hi,

sorry for the late reply!

I answered your question in the ticket that you submitted, but I will post the answer here as well.

"Unfortunately, there is no way to change the timezone for the plugins. All of the dates are stored in UTC format ( like everywhere in nopCommerce ). You need to convert your dates in UTC format."

Hope this helps!

8 years ago

reencafesa wrote:
Can I put a default category or manufacturer in the filter?


Yes, you can. All you have to do is to modify the "\Plugins\SevenSpikes.Nop.Plugins.AjaxFilters.Pro\Views\AjaxFiltersPro\NopFiltersPro.cshtml" by adding this code at the bottom of the file:

<script type="text/javascript">
    $(document).ready(function() {
        var dropdownlist = $("#categories").data("kendoDropDownList");

        dropdownlist.value("1");
        dropdownlist.trigger("change");

        $(document).on('nopAjaxFiltersProInitialLoadEvent', function () {
            $('.home-page-filter-selector:first input').trigger('change');
        });
    });
</script>

where $("#categories") is the categories dropdown and .value("1"); is the "id" of the category that you want to pre-select by default.

P.S. if you want to pre-select the manufacturer dropdown instead of categories, change it like this - $("#manufacturers").

P.S 2 - you might wanna change the default value of the specification inputs to "-1" because if you left it with value 0, this will trigger a chain reaction and it will load all of the dropdowns.

from this: <input type="hidden" id="specification_@(spec.Id)" name="specificationOptions" value="0" class="ajaxFiltersProSpecificationItem"

to this: <input type="hidden" id="specification_@(spec.Id)" name="specificationOptions" value="-1" class="ajaxFiltersProSpecificationItem"

Hope this helps!

8 years ago

dyrarikid wrote:
Hi,

I was wondering if there are some calculating bugs on the theme regarding taxes?

I put the default tax as 24% (Which we use in Iceland) but it seems to be calculating the tax incorrectly...

If I buy a product in 200.000 ISK (Icelandic Krona) then the tax should be 48.000 ISK.
But it will show instead that the tax is: 38.710 ISK.

Please advice.

Regards,
Odinn Thor


Hi,

The theme itself does not change or calculate the taxes anyhow. This is done by core code functionality of nopCommerce. If you switch to the DefaultClean theme, you will see that prices are the same. Please double-check if you have entered the correct values.

Hope this helps!

8 years ago

reencafesa wrote:
Hello everyone, I want to filter this way:
[Specification_1] [Specification_2] ... [Specification_N]
Or so that [Categories] or [Manufacturers] have the option of everything available and this is always by default, I need to filter without categories or manufacturers.

Thanks


Hi,

unfortunately, this is not possible. It is mandatory to have a category or manufacturer for the first drop-down. Since there is no page where you can see all products from all categories/all manufacturers having an "All available" option is not possible as well.

Hope this helps!

JRon wrote:
Hi there, I am trying to add increment and decrement buttons to the quantity box on the product page on my dev website, It´s based on the Alfresco theme but I am not using the Ajax cart plugin (due to another reason)

I am trying to implement the solution discussed here https://www.nop-templates.com/boards/topic/3052/increment-decrement-button but it´s not working for me, I am pasting my code from _AddToCart.cshtml here below, any suggestion to make this work?

<button type="button" class="minus decrease left">
    <span>-</span>
</button>
@Html.TextBoxFor(model => model.EnteredQuantity, new {@class = "qty-input left"})
<button type="button" class="plus increase left">
    <span>+</span>
</button>

<script>
    $(document).ready(function() {
        function incrementQuantityValue(event) {
            event.preventDefault();
            event.stopPropagation();
            var input = $(this).siblings('.qty-input');
            var value = parseInt(input.val());
            if (isNaN(value)) {
                input.val(1);
                return;
            }
            value++;
            input.val(value);
                
            input.trigger('input');
        }
        function decrementQuantityValue(event) {
            event.preventDefault();
            event.stopPropagation();
            var input = $(this).siblings('.qty-input');
            var value = parseInt(input.val());
            if (isNaN(value)) {
                input.val(1);
                return;
            }
            if (value <= 1) {
                return;
            }
            value--;
            input.val(value);

            input.trigger('input');
        }
        function handlePurchaseQuantityValue() {
            $(document).on('click', '.add-to-cart .increase, .cart .increase', incrementQuantityValue);
            $(document).on('click', '.add-to-cart .decrease, .cart .decrease', decrementQuantityValue);
        }
    });
</script>


Hi,

You need to do 2 things. First - change those 2 lines:

from this:

$(document).on('click', '.add-to-cart .increase, .cart .increase', incrementQuantityValue);
$(document).on('click', '.add-to-cart .decrease, .cart .decrease', decrementQuantityValue);

to this:

$(document).on('click', '.increase', incrementQuantityValue);
$(document).on('click', '.decrease', decrementQuantityValue);

And second - add this line

handlePurchaseQuantityValue();

after this:

function handlePurchaseQuantityValue() {
      $(document).on('click', '.increase', incrementQuantityValue);
      $(document).on('click', '.decrease', decrementQuantityValue);
}

Hope this helps!

robinrogne wrote:
When i for instance have 2 dropdowns (using checkboxes), version 3.9 on nopcommerce.
For example i have a dropdown A and a dropdown B. Under A i have selected one option. When i am opening dropdown B and select a option there as well, after i hae select it, dropdown A expands it self. Is there any possibilities to make it not open it self?


Hi,

After each filtration, the AjaxFilters plugin opens up each panel which already has some filtration in it. If you need to change this behavior, you need to change the javascript file: Plugins\SevenSpikes.Nop.Plugins.AjaxFilters\Scripts\Filters.min.js

Just search for this:

a(".clearPriceRangeFilter, .clearFilterOptions").filter(":visible").siblings("a.toggleControl.closed").click()

and remove it completely.

Note: Keep in mind that the first letter might not be "a", but some other letter. So, if you can't find it with "a" at the beginning, try to search without any letter in the beginning.

Hope this helps!

8 years ago

sandrac3xsw wrote:
I want to assign a ticket to a vendor but only have the assigned vendor (and admin) see that particular ticket. Currently when I assign a ticket to vendor all vendors can see all tickets.


Hi Sandra,

The only way of achieving this is to create a department for each vendor and assign it as a staff there. In this way, each of the vendors would have access only to those tickets that have been assigned to them.

Hope this helps!

8 years ago

a.plugaru2001 wrote:
What is the difference between a trial version and a paid one?


Hi,

the TRIAL plugin is intended only for testing the plugin. It is not recommended to be used on a live site. The TRIAL version has some restrictions like on each 5th request it will show you a message that you are using a trial version of the plugin.

Hope this helps!

8 years ago

baloghc wrote:
Using this plugin on Nop 3.7 with the ArtFactory Theme installed.
How does the Full Description checkbox override the stock NOP full description?

We currently have it set to show in the QuickTabs but now it is displaying twice. (See screenshot)



Any help is greatly appreciated!


Hi,

the plugin is hiding the Full Description text with CSS and clone it to appeared in a tab. In the "_QuickTabsHeadStyles.cshtml" file you would find all of the CSS styles that are applied specifically for this plugin.

Could you please provide a link to your website so that we can inspect it?