VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: kden on May 04, 2015, 21:45:19 PM

Title: Shipping per product/Add is as attribute/Add as part of base price?
Post by: kden on May 04, 2015, 21:45:19 PM
VM 3.0.8
Joomla 3.4.1

I'm working on a test site to update a joomla 2.5 and VM2 site. On the old site we used the VM Flat Rate Shipping Plugin which is no longer available. I see many threads about how to ship by products but no real answer. I feel like there must be some simple fix we are missing. My client will not work up a new shipping rate system, they have individual rates based on the sku. It is a smallish store with about 30 products (growing) and currently 13 different shipping rates based on sku. The rates range from 6.95 to 150.00. We don't really want it to look like there is free shipping but I'm not sure what else to do at this point.


My question is
a) if nobody is making a new extension, has anybody determined a way to add it as a mandatory attribute? One that is pre-selected and cannot be de-selected?
b) has anybody figured how to work it into the base price/cost price/final price?
c) has anybody figured out an easy hack for using the regular shipping by weight feature for this purpose?


I'm at a loss. It is so important to keep websites up to date but I am unable to determine a solution for them. I would love to stay away from a plugin or extension so this doesn't happen in the future. I'm hoping somebody else has solved this problem.
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: GJC Web Design on May 04, 2015, 23:54:59 PM
if it is only 30 products with 16 rates it would be simplest to code them into a shipping plugin..

A bit clonky having potentially 60 fields (sku + rate) but easiest/cheapest

Other than taht then it needs to go the old  flatrate plugin way and have it's own DB table etc
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: jenkinhill on May 05, 2015, 12:20:50 PM
ISTR that this plugin can provide shipping cost by SKU. Check with the developer.  http://extensions.joomla.org/profile/extension/extension-specific/virtuemart-extensions/advanced-shipping-by-rules-for-virtuemart
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: kden on May 05, 2015, 15:35:06 PM
My understanding was that the Advanced Shipping by Rules plugin did not allow shipping per sku, just that if a certain product was in the cart you can add modifiers but I can check with the developers.

Quote from: GJC Web Design on May 04, 2015, 23:54:59 PM
if it is only 30 products with 16 rates it would be simplest to code them into a shipping plugin..
I also was trying to work it into the vm shipping but I would end up having to write a new rule for 1 of product a, 2 of product a,3,4... I can't simply set a price per unit. It gets doubly confusing because it all has to be done by weight so there is a lot of potential for error. Not sure I have the skills to rewrite the old flat rate plugin.
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: kden on May 05, 2015, 15:36:56 PM
Advanced Shipping Rules clearly states "The plugin does not allow shipping costs on a per-product level (e.g. it is not possible that Article A has shipping costs of 3€, Article B 5€ and if you order both you pay 8€ shipping)"  http://open-tools.net/virtuemart/advanced-shipping-by-rules.html

That is what I need so if anybody had any other ideas, that would be great.
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: GJC Web Design on May 05, 2015, 16:06:41 PM
Quoteif it is only 30 products with 16 rates it would be simplest to code them into a shipping plugin..

A bit clonky having potentially 60 fields (sku + rate) but easiest/cheapest

Other than that then it needs to go the old  flatrate plugin way and have it's own DB table etc
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: kden on May 05, 2015, 16:25:15 PM
Quote from: GJC Web Design on May 05, 2015, 16:06:41 PM
Quoteif it is only 30 products with 16 rates it would be simplest to code them into a shipping plugin..

A bit clonky having potentially 60 fields (sku + rate) but easiest/cheapest

Other than that then it needs to go the old  flatrate plugin way and have it's own DB table etc

That is not helpful. I haven't been successful to put this into the standard virtuemart shipping module and I do not know how to code it into a custom plugin, or how to duplicate the old flatrate plugin. If I knew how to do any of that I would not be asking for help.
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: GJC Web Design on May 05, 2015, 16:54:30 PM
and I don't work for free  :) -- so up to you....

In life it is normal to pay for what you want... if u can't code then you need to employ someone who can
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: jenkinhill on May 05, 2015, 17:13:47 PM
Quote from: kden on May 05, 2015, 15:36:56 PM
Advanced Shipping Rules clearly states "The plugin does not allow shipping costs on a per-product level (e.g. it is not possible that Article A has shipping costs of 3€, Article B 5€ and if you order both you pay 8€ shipping)"  http://open-tools.net/virtuemart/advanced-shipping-by-rules.html

And on http://open-tools.net/documentation/shipping-by-rules-plugins-for-virtuemart.html   it says:
Shipping costs can depend on:
-------  SKUs of the products in the cart (advanced version)
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: kden on May 05, 2015, 17:24:54 PM
Thanks for looking into it jenkinhill. I may give it a try even though my goal is shipping cost on a per product level which that plug in does not allow.
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: jimjam on November 09, 2015, 18:49:51 PM
Did you have any luck with finding a plugin that will do this? I need the exact same thing....
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: PRO on November 09, 2015, 20:43:25 PM
serious?

http://forum.virtuemart.net/index.php?topic=100630.msg455995#msg455995


THEN: set your shipping rate 1 to   1-50000   lbs       $1 per pound.

THEN:
IN the product in the weight field , add the dollars you want to charge

this was actually 1 of the oldest methods to charge shipping per product
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: jimjam on November 10, 2015, 14:01:31 PM
Its a nice idea but I have to provide a handling fee dependant on price. Plus if you add more than one product to the cart it doesn't take into account the weight of both items....  :(
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: misterpo on November 21, 2015, 09:44:25 AM
Hi,

I am pretty much in the same situation as kden and jimjam, moving from an old VM2 site with VM Shipment V3 plugin to a brand new VM3 site without any solution to set shipping rates per sku.

My customers would like to keep the table with shipping costs and skus provided by the VM3 plugin.

What about sharing the cost of a specific development suggested by GJC Web Design to reach this purpose ?

Cheers
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: misterpo on November 21, 2015, 10:03:42 AM
I would add that the nearest solution I have found is Webkul Virtuemart Custom Shipping Cost Per Product (https://store.webkul.com/Joomla-Virtuemart-Custom-Shipping-Cost-Per-Product.html).

It unfortunately enables to define only 2 specific shipping costs (one for the selected products and one for the others), which is almost unacceptable.

I have a 300US$ customization proposal from Webkul.
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: GJC Web Design on November 21, 2015, 22:11:12 PM
Quoteold VM2 site with VM Shipment V3 plugin

which exact plugin are you referring to?

I know the VM1.1 thing that basically had a table that the rates were looked up from for each sku

e.g.
`id` int NOT NULL AUTO_INCREMENT, ".
         "`product_sku` varchar(64) NOT NULL, " .
         "`base_amount` decimal(10,2) NOT NULL, ".
         "`quantity` int NOT NULL, " .
         "`additional_charge` decimal(10,2) NOT NULL,

was there a vm2 version?

There seems to be a few floating around .. e.g.  http://attwebdev.com/att_projects/vms/documentation/  and one from http://www.Omkarsoft.com (Virtuemart VM Shipping v3 Component)  -- but neither are J3/VM3 - both say they will not be upgrading

Contact me if you would like to discuss the possibilities..  :)

Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: misterpo on November 23, 2015, 09:40:24 AM
Hey GJC Web Design,

So what is your proposal for developing such a plugin compliant with JM3/VM3 ?
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: GJC Web Design on November 23, 2015, 10:35:55 AM
well .. you haven't answered my question..  which one of the earlier ext. are you referring to?

If there is enough interest then I would think about upgrading and selling
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: misterpo on November 23, 2015, 17:04:11 PM
The one from http://www.Omkarsoft.com (Virtuemart VM Shipping v3 Component)
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: GJC Web Design on November 23, 2015, 20:51:46 PM
Ok -- if u want to discuss this further then PM or email me

Cheers
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: misterpo on November 25, 2015, 12:17:15 PM
Anybody here interested in sharing the cost of such a development ?
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: stargazer1682 on November 28, 2015, 21:39:15 PM
I contacted the original developer of the original VM Shipping Module over the summer; and he said he could do a Virtuemart 3 version, which would also add the same GUI for foreign shipping as it did for domestic, for $300.  That was well outside my budget to spend; however the original developer was willing to be flexible on the price.

I'm open to options, but in terms of financial commitments, I'm limited.  I would need to run any costs past my client, and the amount would need to be fairly nominal.  This is where I've been searching for alternatives, like adapting the shopper group to define the distinction between shopper countries; and then just building the shipping prices into the final sale price....
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: stargazer1682 on December 05, 2015, 08:02:43 AM
I came up with a work around for this, though there's one aspect I still need to address, if anyone has any thoughts.  Under Tax & Calculation Rules, I created a new Tax rule for each shipping amount. For each rule I set the "Type of Arithmetic Operation" to Tax per product and then set the value to the amount I wanted that rule for; and gave an descriptive name for what it is - the tax rule for shipping rate of $6 was called $6 Shipping, the $10 one was $10 shipping and so on; you can use whatever convention you want.  You then go in to each product and from the drop down menu next to base price you select the rule you want  applied to each product for shipping.
The next step is a hack of the code.

In /components/com_virtuemart/language/en-GB/en-GB.com_virtuemart.ini

Find
COM_VIRTUEMART_CART_SUBTOTAL_TAX_AMOUNT="Tax"
Change only the part in quotation marks ("Tax") whatever you want the column to say, "Shipping" or "S&H", etc. Make sure whatever you want to change the text to appears inside the quotes.

Also find
COM_VIRTUEMART_PRODUCT_TAX_AMOUNT="Tax amount: "
Edit the text in the quotes here as well. Where the first one is the column that appears in the shopping cart, this one appears in certain instances, like as part of the short description when listed by category. 

There are other lines in this file with labeling lines referring to tax that you may or may not need to change, depending on what you what turned on to appear in the cart; so you should do a word search for the word tax, and using use your discretion whether or not to change it.  I may likely go back through and do that too, just to be on the safe side.
And of course, save changes and re-upload, or however you chose to edit those types of files.
Done this way, each product ends up showing it's own shipping total separately, which I'm okay with; though I am going to look further into at what point it will show the grand total of the "shipping" (formerly tax) amount, and the product prices together; which it hasn't done yet, despite the options to show that being enabled.

The final part to this I just need to resolve, is to "turn off" the original shipment method line(s); so that they are neither necessary or displayed.  I don't want to just create a $0 shipping method, as that would be confusing, obviously. This is where, if anyone knows how to do that, it'd pretty much be set and ready to go.

I'm sure the weight based shipping method could be edited and adapted as an alternative way of applying tax, if that were needed in addition to flat shipping.
What would be even better would be to find a way of copying all the necessary code, et al, for the Tax & Calculation Rules, and find a way to rename it and incorporate the basic functions as a shipping method, adding that extra drop down box too, to each product, configuring shipping that way.  Perhaps someone involved with the Virtuemart project would know where all of that would be, and how that would work; and ideally wouldn't be as huge of undertaking as it might be for others...
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: GJC Web Design on December 05, 2015, 11:44:38 AM
QuoteThe next step is a hack of the code.

In /components/com_virtuemart/language/en-GB/en-GB.com_virtuemart.ini

Use the native Joomla Language over ride system

QuoteThe final part to this I just need to resolve, is to "turn off" the original shipment method line(s); so that they are neither necessary or displayed.  I don't want to just create a $0 shipping method

you will need one..  then just hide with css

QuoteWhat would be even better would be to find a way of copying all the necessary code, et al, for the Tax & Calculation Rules

I will be completing a per product shipping component shortly and offering for sale
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: kden on April 13, 2016, 14:28:01 PM
Has anybody ever created or found one of these by sku shipping plugins? We are revisiting to update and would still like to find one.
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: GJC Web Design on April 14, 2016, 13:32:51 PM
yes.. I have developed one.. haven't had time to release but the start of documentation attached

email me if u want to go further..
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: cjcatalano on June 13, 2016, 20:03:23 PM
So this doesn't install properly, so I moved the folder into the VM plugins directory on the server. I had joomla do a "Discover" and complete the installation. I can create a new Shipping Method in VM with Proship, but none of the changes I make to the configuration get saved. It just reverts back to all empty fields. If this worked it would be quite useful.

Quote from: PRO on November 09, 2015, 20:43:25 PM
serious?

http://forum.virtuemart.net/index.php?topic=100630.msg455995#msg455995


THEN: set your shipping rate 1 to   1-50000   lbs       $1 per pound.

THEN:
IN the product in the weight field , add the dollars you want to charge

this was actually 1 of the oldest methods to charge shipping per product
Title: Re: Shipping per product/Add is as attribute/Add as part of base price?
Post by: prakash.sahu on June 15, 2016, 14:20:34 PM
Hello

We would like to inform you that we have updated our Joomla Virtuemart Shipping Cost Per Product "https://store.webkul.com/Joomla-Virtuemart-Custom-Shipping-Cost-Per-Product.html (https://store.webkul.com/Joomla-Virtuemart-Custom-Shipping-Cost-Per-Product.html)". Cost calculations updated in case of multiple products in cart. Now cost will be calculated considering each product as an individual cost/product, this condition was missing previously.


Thank you

Regards
Webkul