Author Topic: Is it possible that the weight depending on the length of a cable?  (Read 134 times)

nkamp

  • Jr. Member
  • **
  • Posts: 64
Hello,

I have made send tariffs like this:
  0.0 - 0.99kg = tariff price x
  1.0 - 4.99kg = tariff price y
5.00 - 19.99kg = tariff price z.

This is working for the discrete products so far. I don't know if this is the best way to implement the tariffs like I did. I'm curious how others that do.

My major question is we have big cable roll with a total length of 2000mtr.
We cut that off, the client can order per 50mtr.

What we want is:
         50 - 200 mtr. - tariff price x
and 200 - 750 mtr. - tariff price y
and 750 - 1000mtr - tariff price z

Or what is the best way in such a case?

Nico

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3040
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Is it possible that the weight depending on the length of a cable?
« Reply #1 on: June 09, 2018, 22:39:03 pm »
YOu can add price per quantity and quantity step 50.
Add new price
for quantity 50 to 200
for quantity 250 to 700
for quantity 750 to 1000
Thats all

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2740
  • VirtueMart Version: 3.2.15
Re: Is it possible that the weight depending on the length of a cable?
« Reply #2 on: June 10, 2018, 13:55:57 pm »
You can use this plugin

http://forum.virtuemart.net/index.php?topic=127362.0

Which lets you add a custom field for length - when you set the length of 50m for the single item along with the weight  you can add steps in the customfield and it can multiply the base weight by the length options

So you set the base product to be a 50 metre length with a price and weight for the 50 metre length

You then setup the customfield using the qvariant plugin

The variants are base on the number of 50 metre lengths you want
And you use the mutiplier for the weight

Your config will be like this potentially

3.Multiply the price *
Config: 50m,100m@*2,150m@*3,200m@*4   

etc etc
Gives prices of: 50m = Retail, 100m = Retail * 2, 150m = Retail * 3, 200m = Retail * 4  etc etc

You then set the checkbox - "Adjust product weight for options using the * multiplier"
This then multiplies the base single item weight by the same multiplier as the price

Example if weight of the item for 50m is 10kg
You will get cart weights of:
50m = 10kg, 100m = 10kg x 2, 150m = 10kg *3, 200 = 10kg *4


regards
A

Joomla 3.8.8
php 7.0