woocommerce custom order request - wordpress

I am facing problems with custom order request. Actually I want to show 1 form in anywhere of my website and when any customer fill that form then as a admin I will get approve or disapprove option if I do Approve the customer will be get notified by email but if I approve this will be converted as a Order. also if I reject customer will be get notified How can I do this?

Related

Enhanced Ecommerce events from dataLayer are not sent

I'm working on the site that sells subscriptions.
On /subscribe page, there's a list of available subscription plans, that I push to Analytics as product impressions on page load using dataLayer syntax. On clicking the plan, its details are shown, so it'd be natural to send "productClick" in click handler. This info is sent to GA, but then product details is shown on the same page, changing the location hash.
GA documentation gives the only example on how to track product details given page view, but we don't actually have one here. Is there a way to manually send product detail?
In addition, there's a user flow which involves showing the same /subscribe page in an iframe. I'd like product impressions to be sent to GA too, but, once again, when I push to parent.dataLayer, the data is not sent to GA.
Also, clicking on plan maps to addToCart event, so I'd like to send it as well, but somehow what goes through is only a "productClick". Is there a way to push both "productClick" and "addToCart" events at the same time?
"Is there a way to manually send product detail?"
You need an interaction hit to send the data with Google Analytics. Plus the data must be available before (or alongside) the GTM event (be it native or a custom event in the datalayer) is fired, since GTM updates its internal data structure from the datalayer variable when an event occurs.
In your case, since the location hash changes you might be able to use GTMs history change event handler (or you push a custom event with your product data) to fire a Google Analytics event that sends your e-commerce data. Conceivably you could event do a pageview with a virtual pagename if the content changes enough to warrant to be counted as a new page.

Drupal Entity Registration module - List of deleted registrations

I have events (sport trainings), created manually. Users can register for that events with Entity Registration module.
What I need is a list of deleted registrations. I can create a rule "after deleting a registration create a new entity" with a date field (when registration was deleted) and a field contains user. But problem is... I don't know, how to store name of that related event.
Is there a way to store a name or date of related event, when registration was deleted? How can I do it?
It has been a while since I have messed with entity registration, but if I am not mistaken, isn't there a registration state option?
This may be a bit of a workaround, but could you disable the ability for users to delete a registration outright, but allow them to change the state of their registration to a state called "Deleted"? That way you would still have the registration and still have all of the data associated with it.
For a more streamlined method, you could add a button or something that runs an action that changes that user's registration to state "Deleted" but no button to change it back, so they cannot un-delete (assuming you don't want them to be able to un-delete).

Track user-id in button click - google analytics

I would like to track a button click event on my wordpress site. But i want the info in such a way that how many clicks were made by a particular user. Can i pass user-id from my website and get the number of clicks for the user-ids?
I'd split this out into two areas: (1) tracking the button click, and (2) collecting data by user. For tracking the button click, I would recommend Event Tracking. For collecting data by user, I would recommend passing in a non personally identifiable user ID as a user-scoped custom dimension. Then, you'll be able to create a flat table custom report with your custom dimension and event category as dimensions, and total events as a metric. Then you can see events per user.
One additional note here, you might want to explore using the User ID feature, which allows you to measure logged in users across browsers and devices. But even if you use the User ID feature, you'll still need to use custom dimensions to see data by User ID.
I have find a solution for this. I have used event tracking to achieve this. I have used the following function in the click event of the button.
_gaq.push(['_trackEvent','button-category','Click','Clicked by the user:User id from my site']);
In the label field i pass the user id from my site. Now, i can see the clicks of a particular user using his id under Behavior->Events->Pages->Your Page->Event Category->Event Action->Event Label. As username is personally identifiable info according to google, i didn't use username.

InfoPath conditional rules

Is there a way in InfoPath 2010 to require certain fields based on the action performed? I have a request approval view which essentially just contains all of the content of the original request form in read-only format, and the reviewer can approve the request, reject the request with feedback, or request ad-hoc review. If the reviewer chooses the 'reject' action, they should be required to provide feedback (but only if they choose this option). If the reviewer chooses to request an ad-hoc review, they should be required to choose a person from some sort of person picker.
TL;DR - I need to require certain fields based on the action the user chooses.
Use a custom button to submit the form and run set of rules when the button is clicked, i.e. a validate rule and a submit rule. Set the validate rule to run if Field1 is "foo" and Field2 is empty. The action is to set a trigger field that shows/hides a section with an error message. Stop rule execution after the validate rule, so the form won't be submitted.

cancel order from customer feature in nopcommerce

I am a newbie to nopcommerce 2.2 which uses mvc framework. In nopcommerce admin backend,there is option for admin to cancel the order. Then the mail goes to the customer saying that his order has been cancelled. I wanted to have the cancel order feature for customer,wherin he can cancel the order placed in his myaccount/orders tab.But the order should only be cancelled after the mail goes to the admin and he approves the cancellation.After the mail is sent to the admin,it should wait for admin's approval.
I'm assuming you're up for coding it because that functionality doesn't exist right now.
Add a "Cancel Order" button to the Order Details page if the order status is not Completed
Add a column to the Order table to indicate that a cancellation was requested.
Send an email to the store owner if the Cancel button is clicked by the customer
Add a field to the Admin/Order/Edit/ screen to show the customer wants to cancel.
The store owner clicks the Cancel Order button that is already there.

Resources