Magento - Import/export custom options - import

by default in Magento, it is not possible to export a products' csv file containing the custom options. Each product on our site contains tons on custom options and we need to upload from scratch 400 products. Anyone has a non-commercial solution for this or can point me in the right direction? Do I need to create a custom Dataflow?
Any help is appreciated.

did you check out MAGMI? This is great and free importing tool for Magento, supports products custom options as well. Check out this cheat sheet for getting an idea how your CSV must look like. The format is like following (first line is CSV header defining the parameters of your custom optinos - label:type:flag whether is required option:position)
Size:drop_down:1:2 Design:file:0:1
Small|Medium:fixed:5|Large:fixed:10 Design image file:fixed:0:Ref file::jpg,png:500:300
XS:percent:5|S:fixed:5|M|L|XL Design image file:fixed:0:Ref file::txt:500:300

Related

How to validate file type in Orbeon Form

I am trying to use Orbeon form builder where i want a field let say $control-1 as "Please upload form Here"
I want to restrict user to upload only .pdf format file.
I tried looking into "Validation and Alert" but dont know what shall I put in constraint.
It would be good if i can get some guidance around it.
Thanks in advance.
I am wondering if you're using a rather old version of Orbeon Forms, as since version 2017.1 in the Validation Type column, you should see a drop-down from which you can select Supported File Types, as shown in the screenshot below. So, your solution here might be to upload to a newer version of Orbeon Forms.
See also: Other common constraints

Glossary in Moodle: show overview of all terms on one page

I am a beginner in moodle-programming and would like to build a custom module which displays all terms and explanations of a given glossary on one page. Can someone point out, how to begin and accomplish this?
Moodle has a built-in glossary feature that allows glossaries to be added to courses -it's described in the user guide. You will see the ALL option to display all on a single page. They can also be imported from appopriately formatted files like CSV or XML files,search for import glossary from Excel in moodle on moodle.org

How to integrate ECharts with BIRT/Pentaho?

I'm looking for a report engine which may:
connect to data source via JDBC
create logic data set by grouping/aggregating the raw data
include a data filter on the top of each report, which allows my client use the report interactively
add custom charts, in my case, it's ECharts https://github.com/ecomfe/echarts
support multi-tenancy paradigm (new requirement)
Now BIRT and Pentaho are the two players on my table.
For pentaho, it's really hard to find useful document to at least clarify if it's capable. Please if you're familiar with it, let me know if pentaho community version meets my requirements.
For BIRT, I've found evidence it support my first 3 needs. But for custom charts, I can only find examples/docs about adding custom IMAGE/SVG charts. As ECharts is based on canvas, I'm not sure if it's possible to integrate ECharts with BIRT.
Thank you!
Yes, it is possible to integrate javascript charts in BIRT. Basically:
Select the top-level element of your report outline -> Script tab -> clientScripts
Include here your echart resources (.js and .css) using "head.js" (see link below for more informations)
Add a text element to the report
Set the type of this new element to 'HTML'
In a script tag, initialize your echart object in a "head.ready()" instruction (see link below for more informations). The tricky part is to understand how to use a server-side dataset in a client-side chart within this html script.
You can find more informations and a full example of a such report here, this example embeds a jvectormap in a birt report. Furthermore, see a live demo here, where a JIT chart is integrated in a BIRT report.
However since these charts are created using a client-side framework, obviously BIRT won't be able to export them in PDF format. You can see in the live demo linked above, how a BIRT report can easily handle a different output when users export to PDF.
You can do it in Pentaho, but which tool to use it's a matter of debate.
Using Pentaho Report Designer:
- Connects to DBs using JDBC;
- Allows grouping rows based on a field or fields and calculating functions such as running sums;
- Can use selectors (single or multi-valued selectors) to interact with the report, passing the selector values to the queries;
- As far as I can tell, you don't have many options to choose a specific charting engine.
However, you can use CCC as the charting engine, which is a Protovis based Javascript charting engine, cross-browser compatible (for the most part), renders SVG charts with a decent fallback for IE (I believe the fallback is flash but I'm not sure if it changed recently) and produces decent looking charts.
If you HAVE to use that chart library, then I suggest using C-Tools dashboards instead, where you can embed as many different JS files you want and you have full control over the JS and CSS of the page. But most of the reporting functions from PRD will have to be implmented by you.

How to get filtering to data lists in Alfresco Share (Community 4.0)

How to make filter by specific columns available to data lists in Alfresco Share? Version is Community 4.0. I've tried the existing solutions like fme datalist extension answered here but it has some issues which require customizing the code more than I've got time and expertise. For instance, it loses all custom lists. I tried to add the list definitions from the XML configuration to the embedded definitions but it made the whole site crash.
Is there any other way to achieve filtering? The specific case is that I've got a list which has like ten or so columns. I want to make one or two of them filterable by providing a simple drop down menu of unique values.
Unfortunately it is not possible to filter data-list items out-of-the box in Alfresco Share. The FME extension is the only solution I have seen which will do that for you.

how to generate pdf in GXT/GWT?

i am using GWT/EXTGWT. on click of submit button i get list of records from db. i need to export them to pdf. please suggest me how to do this?
if data to be exported is more then that should be exported to multiple pages.
Thanks!
There's little in context of GWT here, apart from the fact that you have a GWT based application. What you are really looking for is a tool that generates PDF, given data.
There are hosts of them available :
iText
jPDF Writer...
Obviously, iText has been the most widely known and successful one! Here's a good tutorial - http://www.vogella.de/articles/JavaPDF/article.html
Try some tools like itext pdf generator Searching online will give you many more options.