Is there a way to make an online customer tax exempt? - drupal-6

In Ubercart, Is there a way to make an online customer tax exempt and if so, how? I have tried creating a role called 'tax_exempt' and editing the conditions so that this role does not apply to the tax (admin/store/ca/uc_taxes_1/edit/conditions), but when I go to the checkout page, it is still calculated taxes for this user (I have added them to the tax_exempt role)
Here is the condition setup:
Operator: AND
Condition: Check an order's billing State/Province
State/Province: New York
Condition: Check the role of the user.
Negate this condition = true
Operator: OR
Roles: tax_exempt, wholesale

I had to go into admin/store/ca/ and enable the tax trigger for it to work

Related

Show Filtered Stock Item in a certain Branch

how to show a filtered non-stock/stock items in a certain Branch in #acumatica?
Have tried to limit it with following action, but still didn't work
the branches in Users Management,
Manage Restriction Group in Items.
need advice on how to add a filtered non-stock/stock items in a certain transactional Branch (Request, PO)
If you are looking to force purchase orders only for the items in that users branch, I would use the Create Purchase Orders screen (PO505000)
Make a graph extension that will default the WarehouseID to the default warehouse that is in their profile
Then you would lock down the field with user security for users who need it locked. I would also lock down the default warehouse on the user profile, or else the employees could change it themselves and access another branch.
The same could be done for the Prepare Replenishment screen (IN508000)

Express Checkout Customization in Hybris

Suppose a user has 2 items in his cart. He goes to another item detail page and clicks buy now. Now, by default, all the two products also add up and go for checkout. My requirement is that when the user clicks buy now, then only that product should proceed and not merge with the other two items in the cart. If the user does not complete the order placement procedure, then it should be added to the cart with the other 2 items. But if he completes the order placement procedure, the other 2 items should stay in the cart.
This is what Flipkart does. Any suggestions in how to achieve this?
Usually, such tasks require a big amount of analytics to find all cases. But a simple plan is:
Create a new button for "Buy now" that will call your own controller/facade/service instead of de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService#addToCart
Add a new boolean property buyNow to the CartModel
Your new service needs to clean the session from the previous cart. Create a new one with cart.buyNow = true
redirect your customer directly to the checkout
If a customer leaves the checkout or successfully places an order. Clean up all his carts with the buyNow flag. And run a cart restoration process that will return his original cart.

NetSuite Workflow - Set Field Mandatory Option

I am creating a NetSuite workflow to set a field mandatory. Use case as follows:
If custom field "Customer Has Billing Issue" checkbox is checked, then make "Billing Issue Ticket Number" (custom field) mandatory.
Settings as follows:
Workflow:
Name: (any)
Record Type: Customer
Sub Types: Customer
Execute as admin: checked
Status: Released (in Sandbox)
Event definition: On create, on view or update
Trigger type (I've tried all): Current set to Before Record Load
State:
Action 1: Set field Mandatory:
Condition: Company has billing issue = T
Trigger on (I've tried them all) currently on: After field edit
Triggering Client fields: Customer has billing issue
Parameters: Field: Billing Issue Ticket Number
Mandatory = Checked
Action 2: Set field Mandatory:
Condition: Company has billing issue = F
Trigger on (I've tried them all) currently on: After field edit
Triggering Client fields: Customer has billing issue
Parameters: Field: Billing Issue Ticket Number
Mandatory = Unchecked
I tried all combinations. The workflow is triggering but I cant seem to make the field mandatory. Any suggestions?
I got it to work like this. Actions have the "Customer Has Billing Issue" field as the triggering field

User event Before Submit doesn't work in case of automatic PO creation (NETSUITE)

Is it possible to restrict the purchase order created automatically like when any dropship or special offer item selected in sales order?
I can confirm as of very recent discussions and testing with Netsuite that before submit does not trigger on automatically generated purchase orders.
We have an approvals system in place and were hoping purchase orders could be auto generated and stay pending supervisor approval but this is not possible as the before submit does not trigger.
An enhancement request has been raised by Netsuite for this functionality.
The behaviour of dropship and special order items is dependent on a checkbox. If you clear the checkbox when the order is approved then the automatic POs will not be created.
Checkbox clearing may be done by the user or may be done via a Before Submit user event script on the Sales Order.
If the need to restrict PO creation has something to do with PO vendor characteristics where you may also need to restrict general PO creation then you should extract the vendor check to a library file. that way it could be used in the SO beforeSubmit to clear the createpo flag and the PO beforeSubmit to throw an error.
You could also use the PO After Submit "specialorder" or "dropship" events to check the PO vendor after submit and delete the created PO.
However given your explanation in the comments the SO shouldn't be able to be approved. i.e. why take a drop ship order where the components are not orderable?

magento Enable 'free shipping' only when certain discount code used

we have a discount code set-up for friends. When they use it they get 10% off. In reality many friends logically live nearby and hence ask me: why cant I also pickup the items this weekend? We do however in general not support pickup.
What we would like is the following. When the "friend discount code" is used - only known to friends - the option 'free shipping/pickup' should become available. Only in this case. (ad. We dont want to offer free shipping persé. Some friends do live far away and get it per post, but we want them to have the option to choose)
Any tips or ideas on how this could be accomplished?
[UPDATE]
I am thinking 2 solutions.
Create a second discount code that enables free shipping (and you also only tell your friends to use when they want to pickup)
Little more difficult - but does what we want: Edit files in /public_html/app/design/frontend/base/default/template/checkout/onepage/shipping_method
(are these the right ones?)
a. in loop addding shipping methods add free shipping
b. but only if variable get couponcode is value XYZ
Create a customer group for special customers
Assign those special customers to this group
Create a shopping cart price rules for %10 discount
Select the customer group that we created above from "customer groups" section
Apply necessary settings for the rule ( coupon code etc.. )
also, take the following references :
What are Shopping Cart Price Rules and how do I use them?
How to Setup Simple Customer Specific Discount Pricing
The easiest way is to
create a website on your store for friends only.
Forbid guest buy there.
Forbid open registration.
(you can forbid browsing without login)
Configure settings for website, you need.

Resources