Charging a fixed base price for a product

Jeveloper
New Member
4 0 0

Hi

I have a collection of products, where the price of the product is calculated from LxW. For each product I need to add an additional base price of ex. 20£. So the total price of thye product will be: Calculated price + fixed price.
How can this be achieved? 

BR - thanks

 

Replies 5 (5)

pioneer100
Shopify Partner
1119 145 481

there are 2 ways to do it

1. use bold product options app

or

2. develop code that add 1 more product(which costs 20£) with your original product.

If helpful, Please Like and accept The Solution.
Jeveloper
New Member
4 0 0

thx. 

I will take a look at the app, and see if it fits. 

I have developed some code that actually adds a second product to the cart, if a specific product is added. But the code doesn't fire every time, only sometimes. What can be the issue?

JCVisuel_0-1610564417226.png

 

pioneer100
Shopify Partner
1119 145 481

@Jeveloper , that doesn't seem the perfect code for adding multiple items to cart at once.

If helpful, Please Like and accept The Solution.
Jeveloper
New Member
4 0 0

In what file would this functionality be done then? 

Would it be to handle it at the same time the actual product is added?

pioneer100
Shopify Partner
1119 145 481

you should use any js file under assets section to make the code for multiple products add to cart.

- yes, you can add multiple products at once.

If helpful, Please Like and accept The Solution.