Close

Profile: Valentin

Avatar

User posts

6 years ago

OTH wrote:

Would I add this just to the chtml file itself or would I have to put this in the source code itself? And would this help with different coloring/labeling on to front side of the page?


Hello again, OTH,

you can just open the above-mentioned file and replace its contents with the code I gave you here.
However, it will not make the availability status look any different.
It will just add the mentioned classes to the element depending on - if the product has quantity or not.
You then need to use these classes to add some custom styling in your theme`s Custom Head Styles section, for your elements e.g.:

.is-in-stock {
   color: green;
}

.is-out-of-stock {
   color: red;
}


Hope this clarifies things a bit.

6 years ago

OTH wrote:
Hi,

I think it would be a good idea to add a product feature so as to be able to choose a display color for product stock status.

As in if a products stock status would be;

In Stock - You could choose for it to appear with green letters.

Out of Stock - You could choose for it to appear with red letters.

Best regards,
OTH


Hello OTH,

there are many options for the Availability of the products, but if you want to just check if a product is Out of stock and have different styling for the label you can use the following approach.

In the _Availability.cshtml file in your Product folder add the bolded lines of code:


@model ProductDetailsModel

@using Nop.Services.Localization

@inject ILocalizationService localizationService


@if (!string.IsNullOrWhiteSpace(Model.StockAvailability) || Model.DisplayBackInStockSubscription)
{
    <div class="availability">
        @if (!string.IsNullOrWhiteSpace(Model.StockAvailability))
        {

            bool outOfStock = string.Equals(localizationService.GetResource("products.availability.outofstock"), Model.StockAvailability, StringComparison.InvariantCulture);
            string stockClass = "is-in-stock";

            if (outOfStock)
            {
                stockClass = "is-out-of-stock";
            }


            <div class="stocking @stockClass">
                <span class="label">@T("Products.Availability"):</span>
                <span class="value" id="stock-availability-value[email protected]">@Model.StockAvailability</span>
            </div>
        }
        @await Html.PartialAsync("_BackInStockSubscription", Model)
    </div>
}




This will add a class of is-in-stock anytime the product is not Out of stock, and a class of is-out-of-stock if the stock quantity is 0.
You can then you these classes to add some custom styling to Availability element like red color if is-out-of-stock and green if is-in-stock.

Hope this was helpful.

6 years ago

sansem wrote:
I installed the plugin (4.10). I configured the plugin. It does display the filters on the left side (in the widget zone). But when selecting an filteroption. I see the loader in the box of the latest article on the screen and in that box the result of the query will be loaded.


What do I do wrong ?

loader:


when done with loading:




Hello sansem,

can you please submit a ticket in our Help Desk with some more details of your issue and a link to your store so we can investigate what the problem might be.

6 years ago

[u][/u]

abdulwahe wrote:
We added a product ribbon to a single product, but a different ribbon appears on all the products, when we disabled that ribbon which is appearing on all the products, it starts working fine for a while and few minutes later it turned into last state and a new ribbon starts appearing on all products. how to fix it?


Hello Abdul,

please submit a ticket for this issue and provide admin credentials and a working link to your store in it. So we can investigate the issue and figure out what the problem might be.

Do not submit your credentials here, cause they will be visible to the other users, too.

https://www.nop-templates.com/nopcommerce-development-services

abdulwahe wrote:

I am willing to display "out of stock" at the bottom or top or product picture, is it possible to do that? and how to change the color and size of it? as to make to larger for customers and more visible....


Hello abdulwahe,

unfortunately, there is no easy way to achieve this. many modifications would be required to the theme`s markup and styling and this could not be done out of the box. Especially if you are using the CloudZoom plugin in your theme.

If you still want to do this, you can take a look at out Custom Work page and submit a quote with more details of what exactly you want and maybe some designs/mock-ups so we can better estimate the work and tell you what it would cost.

Bugs
6 years ago

yazhodha wrote:
There's a spelling mistake on cart page. How should I fix that?
"Dicount codes and Vouchers" This should be Discount codes and Vouchers.

Where should I have to edit to fix that?

http://themes.megastore.emporium.nop-templates.com/cart


Hi yazhodha,

sorry for the inconvenience.

To fix this string resource you need to go in your admin panel to Configuration -> Languages, click Edit on your active language. Then select the String resources tab and search for this Resource name:

ShoppingCart.DiscountAndVouchers

When you find it, just Edit its Value to whatever you like.

amiralma wrote:
Hello
I tried to view my store in a tv sized screen by using an android box, but there were some problems with the responsive design.
Some of the features were out of shape and not in the right places.
I would appreciate any help or suggestion.
Thank you for your wonderful themes and plugins.


Hello amiralma,

the Emporium theme is fully responsive and all of the elements should respond to the device width and stretch their own as necessary.

However, that does not mean that all of them would scale e.g. the font-sizes would remain the same, the element heights, too. Only in some cases, e.g. the products images in the product boxes would scale since they need to keep their proportion.

I hope this clarifies things a bit.

6 years ago

toanhnt wrote:
Hi, I have created a new category template (full width). Now I want to show 3 products per row. How can I achieve it?
My site is running on Emporium theme version 4.0
Thank you


Hello toanhnt,

this would require a lot of styling customizations on many resolutions and such major layout changes are not part of our scope of support.

If you are interested you can check our Theme Tweaks service which allows you to hire us to do custom work on your site and only pay of the time it takes to complete the task.

For cases like yours, we normally suggest the Theme Tweak option, which is up to 1 hour of time.

6 years ago

svm wrote:
I have a question if this is possible to do:

Current behavior:
When we scroll down (on mobile devices) menu disappear and when you scroll up it appear again. I revived feedback from client that they have problem to see it.

Expected behavior:
When you scroll down or up - menu should be displayed always. Can you give me some hint how to do that ?


This is possible also to change color of that menu only on mobile for darkens (on site I'm using light one)?


Hello svm,

to show the mobile menu at all times, you can add the following code to your theme`s Custom Head Styles section:

.mobile.nav-top .responsive-nav-wrapper.nav-up {
    -webkit-transform: none;
    transform: none;
}


As for changing its color, you can also add the following code:

.mobile .responsive-nav-wrapper {
    background: #YOUR_COLOR !important; /* use the HEX code for the color you want */
}



Hope this was helpful.

6 years ago

[email protected] wrote:
I'd like to remove the "Our Shops" title above the store locator map. It takes up too much space on the page. I have removed it from the two instances in the Resources.en-us within the plugin but it still shows on the screen. Can someone tell me where to find it or how I can remove this?

Update: I found "Our Shops" in the NOP string resources, and was able to edit, but not delete the title, which would be preferred. Any suggestions?


Hello [email protected],

to achieve this, you need to add the following code:

.all-shops-page .page-title {
   display: none;
}


to this file in your file explorer:

~ Presentation/Plugins/SevenSpikes.Nop.Plugins.StoreLocator/Themes/DefaultClean/Content/StoreLocator.css

That is you are using only the plugin with the Default clean styling. If you are also using some of our themes, just add the code to your theme`s Custom Head Styles section in the admin panel and you will be good to go.