cscart product minimum quantity issue - store

So here is my problem, I'm setting up CsCart V3.0 for an online store and on the product page Minimum Quantity field displays the entire product name and then minimum quantity, example below.
Minimum quantity for "Edimax EW-7811Un Network adapter - Hi-Speed USB" is 1.
I don't need product name to be displayed in Minimum Quantity since customer already on the product page. Does anyone have any ideas how to resolve this?

It can be done by two ways, but first of all, for what do you need such configuration? It is illogical. 1 is a minimal required value. You will not be able to add 0 products.
Any way:
1) Change the language variable. Go to the Administration -> Languages (in your backend). Find "Minimum quantity for" using the search. You will see something like this:
Change the value to any text you need (For example: "Minimum quantity is [quantity]")
2) Open this file: stores/[YOUR_STORE_ID]/skins/[YOUR_SKIN]/customer/common_templates/product_data.tpl
And find this code:
{capture name="min_qty_`$obj_id`"}
{if $min_qty && $product.min_qty}
<p class="description">{$lang.text_cart_min_qty|replace:"[product]":$product.product|replace:"[quantity]":$product.min_qty}.</p>
{/if}
{/capture}
You can change the language variable to your or change this code as you wish.

Related

Issue with product search in Shopware 6.4.13.0

the product search doesn't seem to work as expected. Products are obviously supposed to be searchable by their product number according to the search settings in the backend. But when I search by product number there are no results. I tried to set the ranking to a higher number than 1000, but also no success.
A possible workaround would be to add a product number to the search keyword field, which actually works. But this is not really a good solution considering that the shop contains thousands of products.
Is there something I might have missed in the system settings? Or does the search function probably have a problem with product numbers with dashes (example: 99-670-846-0)?
Thanks in advance!

What standard is the currency parameter

When I wanted to get the median price of an item on the steam market I came across this answer. It gets the lowest and median price of an item. The one thing I had trouble understanding which currency number corresponds with what currency and if so, which industry standard is used here.
This is an example URL:
https://steamcommunity.com/market/priceoverview/?appid=730&currency=3&market_hash_name=Tec-9%20%7C%20VariCamo%20(Minimal%20Wear)
In the documentation it says it is ISO 4217:
An optional ISO 4217 currency code. If specified, only prices for this currency need to be
But that's clearly not the case.
When I put in 1 as the currency parameter, I get dollar.
With 2 I get pounds.
And with 3 it responds with euro.
...
The max seems to be 41 with the Uruguayan Peso
All actual currency codes and other respective information about currencies on Steam can be found in global.js on https://steamcommunity.com/market/. Just open this page. Then open developer console and search for g_rgCurrencyData variable like on image below.
Location of g_rgCurrencyData variable
Besides codes there are info about formatting for each currency which is useful when you need to parse data from page or automate some actions.

Search formula for best text match among two excel lists

I have a long list of products (+20,000 items) of surgical instruments. Sometimes I receive requests for different names of these products which is impossible to manually match in my list.
I was thinking of a formula to find or suggest the closest result of match for the common words in each cell.
I have created this formula:
=INDEX('Products'!G:G,MATCH((("*"&LEFT(A2,5),'Products'!G:G,0))
(where Products G:G refers to my long list.
it gave some results correctly but more than 80% of the result came back with false results.
please see the attached image to show you the result.
is there is a way I can get more accurate result?
or I was thinking of finding major category of each item such as:
Category 1: Scissors, Retractors, Knives, etc.
Category 2: Straight, Curved, Angeled, etc.
Category 3: Sharp, Blunt, etc.
Category 4: 10mm, 130mm, 24cm, etc. (size)
which is easy for me to do it.
then use the same formula but with referring to the common words..
something like:
=INDEX(Products!G:G,MATCH("*"&LEFT(E2,5)&"*"&F2&"*"&G2&"*",Products!G:G,0))
where E2, F2, G2 refers to the categories..
I tried but it gave false results as well.
I urge you in the strongest sense of the word to spend some time creating a good quality master table and then spinning off 1 table for each category.
make use of clean(), trim(), proper(), heck, if you need to copy the data in notepad++ and enable view all symbols then switch between ansi utf utf8 wtf omgwtf or any other encoding to ensure you dont have any hidden special characters than do it.
you have 4 categories, so that's 4 1 column tables. name them. no duplicates. no trash. no junk. sort your data. nice clean names/words/whatever you categorize by. if you absolutely must add an index or key column then go ahead but do yourself a favor and stop there. use a different table to deepen your relationships.
next step is to to create comboboxes. i'm not sure why but the combobox in excel is not the same combobox in the vba editor. you want the one in the editor. you can make a fancy user form or you can make a minimalist text box design. whatever you fancy. just make sure the combobox has a field for RowSource in the properties. for whatever reason i don't get that option if i am not in the vba editor when i create the box.
you're almost gauratneed to want drawmodal = false on every user form you make for these boxes
you probably really don't need more than 4 boxes but it depends what you're doing so that's up to you. name your combo boxes.
verify each box has: matchentry = 1-fmMatchEntryComplete
i recommend: style = 0 - fmStyleDropDownCombo
this will allow you to begin typing and autocomplete the first match and also let you select from a drop down list, starting with the the first match of the name you've typed.
you can set the number of elements in the list. default is 8. if you have a slow computer than i wouldn't push it much. if you have a best then give it a shot.
you can also change fonts for easier reading and a bunch of other format changes.
now the this is the most important part - RowSource will be one of those 4 tables
now that i've given instructions, let me explain why. some businesses don't have the best practices and i'm currently with one that's using an oracle erp solution for data management but the front end isn't used. data entry is done in excel and loaded into oracle using batches. lookups in oracle continue to be a psychological barrier for the ap/ar teams so i did exactly what i suggested here but took it a few steps farther.
i pulled the vendor master and i pulled teh customer master
i cleaned the data and compiles simple pure clean 1 column tables
then i created a form for the comboboxes
first came ap with vendor name
then vendor number
then vendor remittance location
our orderering facility number
selecting a vendor name populates the vendor number box with the possible vendor numbers. same for remittance location and ordering facility
i pulled a year's worth of transaction data and created a gl table. some vendors have only ever used 1 gl acount. some several. there's a % number next to each gl. that represents the value of transactions posted from that vendor to that gl for the last year.
next up a date picker and text boxes for invoice fields.
get it nice and tight on a form, set the tab stops, add a commit button and all of a sudden we have a front end excel platform that performs better than oracle - because people use
i haven't finished the ar side but it'll get done and i'll the angels will be rejoicing and singing my name for years to come.
1:1 matching with autofill and drop down functionality you can't beat it. that's what you get with my suggestion.
best of luck!

Magento 2 - How show product price in dropdown choose an option

I want to show the product difference price in the dropdown list for configurable product (choose an option) same as in magento 1.X Thanks to all!
This is a known issue in Magento 2
The JavaScript array which is used for the picklist is generated in the method getJsonConfig() in the Class
app/code/Magento/ConfigurableProduct/Block/Product/View/Type/Configurable.php
There you see two arrays added to $config: attributes and optionPrices.
attributes seems to contain the labels that are used for the dropdown.
optionPrices contains the prices which are used to refresh the price after a customer selects a different option (with a different price associated).
This will make it very difficult to show the price difference in the dropdown as the price difference values would need to be calculated in the JavaScript.
One solution that is relatively easy to implement would be something like this, but this will show the final price of each option, not the price difference:
Create a Magento 2 plugin module that is triggered after the getJsonConfig is executed: afterGetJsonConfig()
Then use the output of the getJsonConfig in afterGetJsonConfig(): $config, this array contains attributes and priceOptions array, amongst others.
First jsondecode $config
Then walk through the attributes array to determine the available options
For each option, find the matching price in priceOptions array.
Update each option label in the attributes array by concatenating the price (correctly formatted) to the existing label.
jsonencode $config
return $config

AddDays function on attribute

I am new to Microstrategy and I having one doubt. I am trying to display amount sales of sales corresponding to DayDt(date type attribute ) and amount of sales for (DayDt-365 days).
I tried to use AddDays function but it seems directly I can't apply it on this attribute .It support only metrics.So I created a metric(DayDt Metric) based on the sum(DayDt).
But the value coming in the DayDt Metric Column is integer .how can I convert this value into date.
Also : I would be pretty grateful if anyone can tell any other procedure to achieve my purpose
Thanks in advance
In this case what you need is a Transformation.
Create a new transformation based on the DayDt attribute and as Expression use DayDt Id - 365 days (I'm not in front of MicroStrategy now, but you should be able to use formulas here, so AddDays or a similar one will help you).
Save the transformation with a meaningful name like "Last Year"
Make a copy of your orignal metric, but in the trasformation section add the Last Year traansformatio you just created.
Save it as "Amount of Sales (LY)" or the name that you prefer.

Resources