CS Cart Specific price per user group - php

Is it possible to add second price to each product and use that price if user in specific usergroup?
I was thinking doing that by adding another column to the product price table and then take advantage of the promotion function to somehow use that price instead of the usual discount you can set from admin.
Any pointers or ideas would be great, thank you.

Yes, it is possible to define price for product that is valid/shown only for users in specific usergroup.
To achieve this you need to use Quantity discounts tab on Editing product page.
Name of this tab implies as there must be some large amount of items bought (like volume discounts...), but quantity can also be just 1 item.
For this you first need to define usergroup (Customers->User groups).
Example is shown also on CS-Cart Knowledge base: Wholesale Prices
Best regards,
Bostjan

It is default CS-Cart feature. Please check the following article in the database:
http://kb.cs-cart.com/wholesale-prices

Related

Prestashop Real Quantity Different From Physical Quantity

In mine Prestdashop 1.6.1.9 I set up the POS and the e-commerce for selling in our shop and online.
In the last few days I saw an error inside the shop:
The real quantity is lower then the physical
the physical is negative in some product
if someone buy a 0 product, sometimes it can go in negative status
I have tried all the solutions of the prestashop forum and I've blocked the negative sell in any position however without success.
There's a chance to reset some quantity via Database or a code for prevent prestashop to go in negative?
Thank you so much!
I think you can create a mysql trigger when the stocks is update/insert
example:
CREATE TRIGGER ins_transaction BEFORE INSERT ON account
FOR EACH ROW PRECEDES ins_sum
SET
#deposits = #deposits + IF(NEW.amount>0,NEW.amount,0),
#withdrawals = #withdrawals + IF(NEW.amount<0,-NEW.amount,0);
You can add some similar and if the quantity is less 0, update the row.
https://dev.mysql.com/doc/refman/5.7/en/trigger-syntax.html
-EDIT-
Also you can try to change the functions updateQuantity() and setQuantity() in the class StockAvailable
try add some like:
if($delta_quantity<0)
$delta_quantity=0;
hope it help you
From the question I think the problem is negative quantity.
There is two places in prestashop's backoffice that you can set this behavior:
General for all products: Preferences -> Products ("Products Stock" section)
Product Specific: Catalog -> Products (Choose a product) ("Quantities" section)
In addition to setting the right choice in General settings, you should check for each product in its specific settings to see if it has overridden the general settings.
There is another way to have get the perfect one.
I got this error from the ORDER STATUS bar and the Cancelled Order.
When you cancel and order, this one still have product inside. You must remove all the product from the order then cancel it.
Another way it's on the order status:
You need to sign it as Shipped and and Validate!
Hope this can help :D

How to set custom price for a product in Magento for only the first of that product added to the cart?

I trying to allow users to get the first product sample they add to their cart for free, but any samples they add after (including the one they already added) should be normal price. Right now I using setOriginalCustomPrice in a module, but the customer can change the quantity, and the price stays at zero instead of going up. Anyone know how to go about this?
You can achieve this by a simple calculation where you are using setOriginalCustomPrice.Currently I think you are setting price 0.Instead of doing this,use following logic to set custom price.
$customPrice=$qtyincart*$productPrice-$productPrice.
So if user add 1 qty then $customPrice will be 0 else will equal to sum of qty-1.
I hope this solve your purpose.

Put minimum price order condition on single product in store

I have my shopping website in opencart and i want to put certain conditions on particular products in my store.
For example: I have a product in my store and i want to put following order condition on it.
Conditions: You need to order at least $50.00 in products to be able to to purchase this
Could you please tell me which is the correct way to do it?
There's no default method for that, AFAIK. You have to write a simple VQMod, which will check order subtotal upon add to cart operation.

Limit product quantity to 1 per customer in magento

I need to limit the quantity of a product purchased by a customer to 1 per day. We are going to have something like deal and day and targeting consumers. We do not want some one to buy high quantities. Could some one guide me as to what the general approach should be to do this? Thanks.
I noticed that there is a table sales_flat_order_item which contains products_id for an order, a join of this table with sales_flat_order should give me product_id for the orders placed by the customer. How do i access this table data directly and perform the join operation the magento way? Do i need to create a new module? or modify a existing module?
You could just create a coupon/coupons for this. Leave the product at the original price and hand out a coupon to the targeted customers. Make sure that you set it to "only applies to 1 item" and can only be used once.
Regards,
Kenny

Magento case price

I have two attributes for a product,first one is the unit price and second is the case price.
The unit price is the default price of the magento,for the case price i create a new attribute named case pirce.
My question is i display the prices in the product description,but it is not allowing me to add the case price to the shopping cart
Am i doing some thing wrong here,if so let me know the solution.
One way to achieve this is using the new "Qty Increments" feature in conjunction with Tier Pricing. If you look in the Inventory tab on the Product Edit screen, you can enable Qty Increments and set a value, which will enforce that the customer add products to the cart in batches equal to a multiple of the Qty Increment value.
Products are added in quantities of 1, so a "case" isn't really a logical unit to the system. Some options:
You could use javascript to add the product to the cart in the right quantity (for a case), but the user will be able to adjust this quantity.
You could create a second, related product as "Case of X", but the inventory will not match up.
You could create a product option for single/case quantities with a price, but this seems somewhat unintuitive and also has the quantity problem as above.*
You could create a grouped product with a fixed quantity. This is a bit contrived, but makes the most sense from a bookkeeping perspective.
Let me know if you have any questions. Hope that helps!
Thanks,
Joseph Mastey
magento calls it "tier pricing" you should try and configure your "cases" by quantity and assign a discount for it

Categories