Add valid and invalid order information on AdminOrdersController Page on Prestashop - prestashop

I want to add valid and invalid order information on AdminOrdersController page. This information can only be viewed on the Customer Information page. But I would like to add this information on the AdminOrdersController page.
I couldn't find the variable name. Could someone be kind enough to give me the name of the variable or how to add it.
Cheers

Related

Pull in the page path with Referrer variable in GTM?

I am trying to collect the referrer URL in Google Tag Manager and I want it to include the referring path page. I want to do this because I have multiple links from the same domain pointing to one form. I want to track which page is bringing in the most form fills and so that I can trigger an email series based on which landing page they came from.
For example, I have 3 landing pages directing to one of my forms:
www.site1.com/first-page-path
www.site1.com/second-page-path
www.site1.com/third-page-path
When I check the referrer variable in Google Tag Manager, it simply displays the domain name as follows:
referrer: https://www.site1.com/
How do I collect the the full URL including the page path so that it shows up like this:
referrer: https://www.site1.com/second-page-path
Any help would be appreciated.
It's limit by the referrer policy. These days, browsers usually set very restrictive defaults for the referrer policies, so only the referring domain is sent.
If you can manage the other domain or you can give each page with different form url.
You can add some parameter at the form url and add proper setting in GTM to retrieve it.
In general, referrer has always been a bit unreliable, and is now so limited that you probably should not use it for business critical purposes.

Use category name in Sitefinity blog URL

I followed the instructions here on establishing a new provider and generating custom URLs, and it works as expected. There doesn't seem to be a clear reference for what parameters can be utilized in the settings as the example given is very basic.
I want to use the category name of the post in the URL. I tried:
/[Category]/[UrlName]
but what I got in the frontend was:
http://localhost:60327/my-page/Telerik.OpenAccess.TrackedList%601[System.Guid]/my-post-name
I also tried
/[Category.Title]/[UrlName]
which just threw errors.
Anyone know how to do this, or better yet, a good reference for the parameters?
I don't think this is possible since the Category property is actually a collection (TrackedList).
In theory you would need one of the collection items, let's say the first one, and your URL expression would be /[Category[0].Title]/[UrlName], but this is currently not supported by the expression parser.
Also, the idea of making the URL dependent on a complex (related) field is not a good idea. If someone deletes that category, they will break all your blog post URLs.
I would suggest you to create a custom text field for the blog post item (ex: CategoryUrl) and then you should be able to set the URL format to /[CategoryUrl]/[UrlName]. Make sure CategoryUrl field is required.

API code giving me a 4040 error

I am trying to create a link for making a Google review for my business. It asks to use my API, but when I attach the API with the corresponding code, it gives me a 404 error.
Here are their instructions:
Go to the Google Places API.
Enter your business information in the “Enter a location” field at the top of the map.
Click your business name in the list that appears.
Your Place ID will appear on the map, beneath your business name.
Add your Place ID to the following URL to create your link:
https:// search.google.com/local/writereview?placeid=
Using the example above, the URL with the Place ID added would be:
https:// search.google.com/local/writereview?placeid=ChIJj61dQgK6j4AR4GeTYWZsKWw
When I add my URL to this: https://search.google.com/local/writereview?placeid=EiUyNzg4IFNvdXRoIFN0LCBMaW5jb2xuLCBORSA2ODUwMiwgVVNB
I get a 404 error.
I am not tech savvy, but I am doing my best to understand this. What am I doing wrong?

Web Scraping through Excel VBA

I need to fetch company addresses(cim) from site http://www.ceginfo.hu/
Example Company Name: AB-KONTÍR Szolgáltató Bt.
I know how to do it using WinHttp.WinHttpRequest object and FireBug.
But I am not able to decide to which URL I should send this request.
When I analyse the request/responses using FireBug, I get the following URL:
http://www.ceginfo.hu/company/search/4221638
4221638 is CompanyID here I think. But in my case I will have company name only and that's what my problem is.
So can anybody please tell me where can I get URL using firebug or any other tool using which I can track the URL with Company Name as parameter which I can use in my VBA code.
Thanks in advance!
So can anybody please tell me where can I get URL using firebug or any
other tool using which I can track the URL with Company Name as
parameter which I can use in my VBA code.
No. Unless there is a publicly available database (I would suggest calling them, if you can) or an API that allows for programmatic access, the only way to arrive at this link slug is by executing the search.
Further, the post slog is not as relevant as you think. If you search for simply "Kontir", this is the resulting page -- with many results:
http://www.ceginfo.hu/company/search/4222407
You're going to have to automate the "search" -- passing the criteria to the Web Page and executing the button-click and/or HTTPPost, and then parse the result(s). In the example company name, there is only one result. But it is possible as in my example above, that there may be multiple matches for some queries, and then you will need to have a method of dealing with these, or ignoring them.

How to Get a value from the current SharePoint 2010 pages Page Conent Type?

I am looking to create a web part that will get the value of the consuming pages Page Content Type. For instance... I have a Page that has a custom Page Content Type that contains a column called ProductId. I would like to be able to access the value of the field from the web part. Can anyone steer me in the right direction?
Thanks for your help.
SPContext.Current.Item["ProductId"]
I'll take a stab without fully knowing the details. You can use SPMetal to create an entity class for your site/subsite and then use LINQ to SharePoint to get access to the data in the column.