Display and calculate 3 different prices for every user in Ubercart - drupal

Is there any way to display 3 different prices for every user(not per role etc)? Every product should have 3 prices: default price, wholesale price and dealer price. So I should display all of them on product page and calculate 3 total prices for every type of price. P.S.: we can add CCK field, but how to calculate total prices for each of them?
P.P.S: users are anonimous, it means I do not know whether or not the user is authorized. So I should always show and calculate 3 prices.

THis module does exactly what you're looking for, I;ve used it before for wholesale and retail prices
https://drupal.org/project/uc_price_per_role

Related

How to define payment gateway based custom price per product in WooCommerce?

I want to set custom price per product based on selected payment gateway. For an example:
Cash price - 1000
Visa Master - 1100
PayPal - 1250
Likewise I want to show different price based on selected payment gateway. Also, I want to show lowest price as starting price for particular product when browsing the website.
Currently I have define the upper limit price and giving discount based on the selected payment method. But I don't like that way because when browsing it is showing the upper limit price instead of lowest price for users who are browsing. As this this example it is showing 1250 for user's who are browsing the website. Instead 1250 I want to show starting at 1000.
Hope you can help me out on this.
Thanks in advance
Use woo discount rules, with product adjusment

WooCommerce - 1 (One) product in 2 (two) categories with different price

I have two main categories i.e. Buy and Rent, and both having the same products. Now I want to show different prices for the buy category and a different one for the rent category for all products. Is there any way to do that?
You can't set the prices differently in woocommerce for different categories. You really have a few options:
Don't make rent and buy categories. Make them attributes or variations on products and use conditionals.
Use hooks at pretty much every stage of checkout to adjust the pricing based on a cookie or temp variable. This will be a nightmare for reporting.
Make separate products. You can use hooks to update the inventory levels on the sale/rental of the offsetting product if total inventory is an issue.

Aggregate events / goals per user

I would like to know if there's a way to display information based on how many (similar) goals or events were triggered by a unique user.
For instance, let's say I own amazon. For every product I sell, I trigger a 'Purchase' goal (by using an event).
I would like to know:
How many products does an average user buy, in multiple sessions, over a time span. for instance, how many products did an average user buy in the span of a month.
I would like to segment data by the amount of products bought by users. i.e. segmenting my data based on users that bought 0 products, 1-5 products, 6-10, products, and 11+ products.
Is there a way to do so?
You have to get custom dimension/metric in GA. Add a custom dimension 'product_quantity' and get actual number of products bought as metric value in the variable.
Once you get have it, you do calculation of total products divided by users or creating segments based on product_quantity dimension.
Find more info at https://support.google.com/analytics/answer/2709828?hl=en
It is easier with Google Tag Manager. Once you define custom dimension/metric, trigger may be completion of 'Purchase' goal or any event.

WooCommerce, sell by weight and by units

I would like to create a grocery store to sell meat and vegetables using the WooCommerce plugin.
My client wants that the visitors would be able to buy products by units (e.g 5 tomatoes) or by weight (e.g 1.5 KG of tomatoes).
It should be applied for all the products or most of them.
I am using the extension Measurement Price Calculator and it works fine cause I achieve to have a "weight" field where customers can enter an amount and it is converted into money.
But I can't find a way to have both options at the same time, weight field and unit field!
It’s possible to do it with the WooCommerce?
How can I achieve that?
Thank you!

Woocommerce Variable Stock

I feel dumb asking this but I can't find a clear answer anywhere. If I define stock at the Inventory level it says "this value will be used to control stock for all variations". Does that mean if I put 10 for the stock that each variation has a stock quantity of 10 or does it mean there is a total of 10 for the product that can be sold across all variations?
When you use the overall inventory option, the defined amount is for all variations together. When you go into the variations section (of that product), and collapse a variation, you can define inventory on a variation level.

Resources