Magento 2 add custom option in cart without create - php

I have one virtual product in my backend. The flow is like user can purchase this product with different dynamic option. But I can not add that option in backend as custom option as those option is dynamic.
I want to add this product to cart with that option without create custom option in is it possible ?
For Example :
I have one virtual product that is Tour Package. User can purchase that package but with different duration and price and type. Tour type is dynamic admin can add this from backend. Tour type like golder, silver etc.
Duration is like 1 week, 2 week, 1 month this duration is also dynamic admin can add duration while create tour type.
Now I displayed this tour type in front-end page and added button to add to cart with that virtual product.
Now the issue is that if user purchase Gold tour then I want to pass "Gold" as addition option in cart. and if user select other tour at same time then that product should add to cart individually.
Please give me any solution.

David,
you can do it via Admin panel of Magento 2.
Go to Catalog > Add product. Choose Virtual product. Then edit it and add all information you need (such as name, price, category, etc). Once you are done with this settings scroll down to Configuration. At step 1 you should create and choose needed attributes, at step 2 you should select values from each attribute. You should go through all the steps and save them. Then put price and quantity.
We prepared some screenshots for you to help in this process.

Related

Price based on location and size in Opencart

I am developing a website in Opencart version 2.3. I have to change the price of the product based on user location and weight of the selected product. I am getting the User City from a popup in my home page. That stores the City name in session. I am storing the cities in a separate table. Every Product will have a weights of 250 grams, 500 grams and 1kg.
My requirement is to get the price of the item based on both location and weight. Each city will have different price for the same product.
Can someone suggest me how to achieve this. Explanation in a theoretical way is fine. I can code for that. I just need help with the approach.
Go to Admin --> Settings -->Localisation -->Geo Zones
Create your geo zones and then head over to Extensions --> modules--> shipping
Select weight based shipping
Click on your zone, add weights and prices in this format:
250:200.00, 500:400.00, 1000:800.00 (weight:price)
Enable the zones and save.

CS Cart Specific price per user group

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

Open cart multiple Quantities with different pricing

I was wondering if there was an easy way on opencart(2.0.x) to let a user buy a product in 3 different Quantity options. 3,6, or 12 quantity, with each quantity having a unique price. (I.E- QTY 3 would sell for 10, QTY 6, 8.50, then 12 pack for 7). I tried to use the options module, to create a few radio button options but that tacks on the option to the original set price. I want the only options available to be the 3 types of quantity options. so if i choose the 3 QTY option I only pay $10.
Thank you in advance
No modifications are needed for this.
Go to the product's edit page and look at the discounts tab. In here you can put different quantities and prices. Note that the price field is per item, so you just need to divide your total by the number of products.
You can leave the start and end dates empty if they aren't appropriate.
There is a demonstration of this functionality on the official demo site and (I think) the dummy data provided when you first install OpenCart.

How to add sub-products to a main product in Magento

I am designing a website for wedding cards with Magento.
Each wedding card which a user buys may come with few additional sub products like a Reply Card, an Additional Insert, etc.
For Example:
There is a wedding card named “A”. Now there is a minimum quantity check that we have put over this product. This product comes with 2 complementary inserts per product.
In addition to these 2 complementary inserts a user can buy additional inserts. The user should select the number of additional inserts from a drop down menu. According to whatever number is selected, additional inserts should be generated.
Now suppose he selected 2, so there would be 2 additional inserts. Each additional insert would have a minimum quantity linked to it. And there would be a fixed cost per additional insert.
I am stuck at this position. How can this be achieved in Magento?
This feature can be handled by the "configurable item type".
Make configurable item, select EAV attribute which connect that type selection.
This is way how you present an empty default product visible (with name image price) and after this you can make variables by another simple product with other prices store ammounts etc...
The same way is bundled item (there is no price, and is counted by sum of prices or selected sub-items by customer), magento shows "price starts by ...."

Make magento 3rd item from cart free

I need to know if there is a way to create this in Magento:
First of all, all my products price are fixed: 9.99$.
So i want to do this: if the client bought three products, the third is free, so it pays 2 products. He can do this as many times as they want, so if you buy 6 products, there will be 2 product free, if he buys 9 products, 3 are free
Magneto supports buy x get y free promotions. Information about setting them up is available at http://www.magentocommerce.com/knowledge-base/entry/how-to-setup-buy-x-get-y-free
It's possible to do this using magento Shoping Cart Price rules.
Create a Shoping cart price rule by going to your admin panel and clicking on Promotions -> Shoping Cart Price rules.
Create a condition for your rule. There is a nice GUI to define the conditions so they will look like: If an item is FOUND in the cart with ALL of these conditions true
Define an Action, actions describe how prices are updated when the conditions of the rule are met. In your case there is an specific action called: Buy X get Y Free, which defines a quantity that the customer must purchase to receive a quantity for free. (The Discount Amount is Y.)
Complete the labels: lables appears on the order below the subtotal to identify the discount. You can enter a default label for all store views, or enter a different label for each view.
Apply the rule. Make sure you save and enable the rule, also you can define a time range when the rule is valid and number of usages.
For more details check here:
http://docs.magento.com/m1/ce/user_guide/marketing/price-rule-shopping-cart-buy-x-get-y-free.html

Categories