How can I redirect users to login page and then add item to wishlist? - drupal-6

If a person clicks on add to wish list, would it be possible to redirect them to the login screen if they are not logged in and then add the item to the wish list after they login? If so, how would I go about doing this.

I would pass a variable through the url relating to that items unique id and a second variable to add to wishlist between the pages. Inside your code check for those variables and redirect where necessary

Related

Remove 'Finish Later' button from DocuSign powerform

I am using Powerform for the digital signature. I have kept the return URL in the Destination URL section. But for the Finish later URL, is there any way to identify the user who kept the form for 'Finish later'? Eg: Adding an extra parameter, email of the user filling the form. So that, the user details can be updated in my DB system one the user redirect back to my website. Or, Is it possible to remove the 'Finish Later' button from the power form?
Thanks in Advance.
In my DocuSign account, I have added custom 'Merge Fields', 'sec1_email', and dragged and kept it in the email section in the PDF. In the destination URL I have added, ''http://localhost/proj/testform/?docustatus=completed&email=[[sec1_email]]' expecting, the sec1_email will replace the email id entered by the user in the form. Then once the user submit the form and the return URL became, 'http://localhost/proj/testform/?docustatus=completed&email=[[sec1_email]]'. The URL returned the same string instead of the dynamic value email. How can I replace the custom field value 'sec1_email' which was entered in the form by the user in the URL? (In template settings, When I add the merge filed, those added fields appear in the custom fields.)
You should be able to pass a unique variable in and out of the PowerForm via URL parameters. https://support.docusign.com/en/guides/ndse-user-guide-populate-custom-document-fields-in-a-web-powerform
Essentially you would want to create a custom field on the envelope, then pass in a unique identifier via the PowerForm URL. When the PowerForm completes or someone hits Finish Later, it goes to your designated landing page. These landing pages can also have parameters passed back through them. Essentially it would go from Finish Later > http://www.yourdomain.com/landingpage?customerUserId=uniqueIdentifier.
https://support.docusign.com/en/articles/How-do-I-specify-a-URL-to-redirect-to-when-a-Powerform-is-completed

How to get a sales order ID and set it in a Custom Record in netsuite?

I am very new to netsuite. I want to redirect a user from sales order to a custom record I created on button click, I want to get sales order ID and set it in the custom form where the user is being redirected by clicking a button the way fulfillment works in netsuite. I am using client script to redirect user when the button is clicked. Is there a way to pass the sale order id to the next form/Record?
Like this
https://i.stack.imgur.com/QghDv.png
I tried to use the saved search feature but I couldn't fully understand it. If indeed it can be done through saved search, it would be a great help if someone could guide me.
In your Client Script you can use the N/currentRecord module to retrieve the ID of the record in context. It will allow you to retrieve a reference to the CurrentRecord object, which will have an id property.
See the Help page for N/currentRecord for details.

osclass current user id function returns 0 as result in plugin custom page

I want to list the current user items in my custom page and add some custom operations in that custom page, But i can't get current user id from hUsers helper using this function:
osc_user_id();
it returns 0 as the result.
what can i do to achieve this?
thanks in advance.
If you're on a custom plugin page, you have to export the user manually.
How to export the user on custom page in Osclass
View::newInstance()->_exportVariableToView("user", User::newInstance()->findByPrimaryKey($userId));
If you're in a controller,
$this->_exportVariableToView("user", User::newInstance()->findByPrimaryKey($userId));
Then, $userId will depend on which user you refer to:
You can get it from the URL: use Params::getParam('userId') and passing it as a GET parameter.
/index.php?page=custom&route=your_plugin_route&userId=12
Use the current logged user id: osc_logged_user_id()
See also
This tutorial on how to develop Osclass plugins, might be useful.

Changing my account to username in opencart

I have this small problem i am using open cart v 2.0.1.1 and when the user is logged in it shows my account with the drop down. I want to display the username of that particular user instead of " my account" can anyone help me with this problem?
in case of you don't know how start
(1) you will need to read this post How to become an open cart guru
(2) steps
you will need to pass the name of the customer in some variable to the template file by adding it to $data array in catalog/controller/common/header.php # class ControllerCommonHeader # function index
in the template file, change the part that checks whether the user is logged in or not, and add the passed customer name or the old header My Account depending on the branch

redirect item added in sharepoint list

how can i redirect to a "Thank You" page after a user has entered a new item into a custom list that I have provisioned.
one way i can think of is in the item adding event receiver but is there a CAML way of doing it?
You can use the "source" URL parameter.
For example, if the link to your list is:
http://server/SiteCollection/Site/Lists/MyCustomList/NewForm.aspx
Adding the Source URL parameter designates the next page:
http://server/SiteCollection/Site/Lists/MyCustomList/NewForm.aspx?Source=http://server/SiteCollection/Site/ThankYou.aspx
The downside to this, is that if they click cancel they will be redirected to this page as well. But you could probably alter this behavior with some JavaScript.

Resources