Prestashop configure product attribute without stock - prestashop

In PrestaShop, I saw that attributes are involved in stocks calculation. Is it possible to avoid that?
Here is an example: my shop sells a product with the option "Giftbox". The gift box has a cost of 2€, but it has not a stock. In the admin product page, Prestashop asks me for a stock, but the gift box is not related to the product itself.
Thank you

If you use Prestashop >= 1.7 you can set Gitf Options without attributes. You can find it in Preferences->Orders.

Related

On user selection, set product price to 0 for cart, checkout in shopify

I am facing a issue in shopify. The issue is I am listing products on a page with price. But i want whatever first 3 products customer click should be free for them. The fourth one they click should be of price set on backend.
So basically all products will have price. But first 3 client select should be free for them. Is this customization possible in shopify?
You have two choices. One, you use Shopify Plus, and with that you are free to script the checkout and change prices to free on items in the checkout. Or two, without Plus, you are free to use Discount Codes to bring the price of a checkout down to zero for items that meet criteria you setup. Those are your only sane choices at this time.

Recalculate discounts in prestashop cart

I'm working on prestashop shop where are used coupon with % discounts. We don't want to use coupons on products on sale but still want to buy products on sale and normal products in the same cart. I want to recalculate discounts in cart and order to apply only on non-sale products. I need help which file I should edit or where add functions to do it.
You should create a module that adds dedicated cart rules or customer-related specific prices on the products you are interested in when customer changes his cart or validate the order.
There are plenty of native Prestashop hooks you can use for that so you don't need tweaking with the core.
Keep in mind that there are a lot of "advanced cart rules" modules out there, so consider having a look before reinventing the wheel.

How to bundle product in shopify?

I tried to develop a Shopify application and I needed to bundle some products and sell those together with the special discount values.
There are some apps like product-bundle but I need bundling product in my app.
I tried to create one product similar to them and after the purchase completed I delete it but I think it's not a good solution because this product will be shown to shop and other customers can purchase that while I want to offer this product to a certain customer only.
In another way, I tried to use Shopify discount but can't satisfy my need or maybe I can't find true ways.
How can I do that?
There are multiple ways in which you can handle this.
1) Create a product itself:
Create a single product indicating a combination of your desired multiple products and combination of your price.
When the customer adds all the related products, detect it from cart webhook and update the cart of the customer by removing such products and adding the single product(i.e combination of all products).
2) Create a discount code: Create a discount code with your desired discount amount for each combo. Detect the products in the cart by cart webhook, if combo products found automatically apply the coupon to the cart.

Shopping cart - the right way?

I need to implement shopping cart for my website. I decided to store carts in database rather that in session. My website serves as a platform for selling items between users. That said, users can edit their own products any time.
I understand that I can't just use product ID in the cart, because user need to get whatever he put to the cart. If the product is being changed after he put it to the cart, it shouldn't affect what he ordered, correct?
How is it usually solved? Should I copy entire product to the cart? Or maybe rather save versions of particular product and link to them? Another idea would be to inform customer on checkout that the product changed.
How is it solved in popular e-commerce platforms?
I understand that I can't just use product ID in the cart, because
user need to get whatever he put to the cart. If the product is being
changed after he put it to the cart, it shouldn't affect what he
ordered, correct?
the product price is going to change. the inventory is going to change. if a product goes out of inventory you want the customer to know so they can make another choice. if the product price has gone up or down, the cart should reflect the current price. so that means the cart will check the product table for the product pricing and inventory at different steps before the final transaction.
as part of the cart to product lookup -- if the pricing has changed you can alert the user. just as important - if the customer has ordered quantity 4 of a product, but the inventory has gone down to just 3 of them -- you have to change the cart and make it very obvious to the customer what just happened.
there are only two things the cart is responsible for - the product id, and the quantity to be sold. anything else stored in the cart is just to make it easier to display the product on the cart page or information needed for the merchant.

Prestashop cross selling module not working

I am running prestashop shopping cart and I enabled its cross selling module. After enabling it I could not see any thing on cart saying "customer who bought this product also bought" etc
Is there anything I missed?
If you've only just enabled this, you won't be getting any information from this module just yet. If no one has purchased similar products since you've enabled this module, there won't be any information gathered just yet.
Give it some time to allow it to gather the data from your customers, right now it likely doesn't have anything to work with but it is working in the background.
The crosselling module needs some orders to check if a product was sold together with other products. A list of 'people who bought this product also bought' will only be shown with products that :
1) are already in any old order AND
2) has other products within that same order.
 
Only if those requirements are met, cross-sold product will be shown.