VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: easy on July 27, 2012, 13:59:45 PM

Title: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: easy on July 27, 2012, 13:59:45 PM
Hi there,
I want to sell prints and charge my clients per sq.m.
I want custom field cart attribute to increase product price before it will be multiply by customsize (surface = width x length).

At present "custom field" increase product price after (surface*price) multiplication is done.
How to get it to work in the right way?

Example:
a – width
b – length
c – product price
d – extra option price - custom field cart attribute

It works this way now:
[ (a*b*c) ] + d

but I want it to work this way:
[ (a*b)*(c+d) ]



I will appreciate any reply.

Thank you, arthur
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: John2400 on July 27, 2012, 14:07:28 PM
http://extensions.virtuemart.net/extensions-virtuemart-2/custom-size-detail
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: easy on July 27, 2012, 14:14:59 PM
thanks for the link, did I miss something?
I am using this plugin.
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: easy on July 28, 2012, 12:41:22 PM
Any idea guys?

still waiting for plugin developer response ...

I'll appreciate all your suggestions and advices
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: easy on August 10, 2012, 20:04:07 PM
OKEY,
Thanks to custom size plugin developer.
He has done great job and the plugin was upgraded + he changed the core code to get it work as it should be.

I have made some cosmetics changes to let it display correct units, both on product page and in cart and also I had to add a little mathematical trick to convert cm2 to m2.

I just need to move custom size fields to the top of all custom fields only now - but it can not be done by changing custom fields order because this custom size field has to be tha very last (!!!) to work as it works right now. So I need to change / override graphically product page or plugin layout now. The reason why I don't want it on the bottom - it is less logically from customer point now.

Thank you VM you plugin developer again!
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: Dezaine studio on December 10, 2012, 12:45:18 PM
Hi, i really need the same solution for the same problem, could you share your sollution?
Thank you
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: bytelord on December 10, 2012, 12:49:44 PM
The solution is using that commercial plugin: http://extensions.virtuemart.net/extensions-virtuemart-2/custom-size-detail

Regards
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: Dezaine studio on December 10, 2012, 14:15:51 PM
Yes, i've got it , install it, but it doesn't add the product to cart...
I've made has the plugin tutorial decribes, but it's not working.
I've posted a ticket but still no answer...
here is the link for a test product
http://www.teste.dezainedeparede.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=2082&virtuemart_category_id=78&Itemid=645&lang=pt

Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: bytelord on December 10, 2012, 14:22:38 PM
Hi,

This is not related how is working, but cause of your joomla site  bad configuration (jquery loaded more than once). Also please provide your joomla & vm2 versions you are using.

You are loading jquery more than once, please fix it... probably from k2 or any other module/component.

<script type="text/javascript" src="/media/system/js/mootools-core.js">
<script type="text/javascript" src="/media/system/js/core.js">
<script type="text/javascript" src="/media/system/js/mootools-more.js">
<script type="text/javascript" src="/media/system/js/modal.js">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js">
<script type="text/javascript" src="/components/com_k2/js/k2.js">
<script type="text/javascript" src="http://www.teste.dezainedeparede.com/components/com_k2store/js/k2store.js">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/jquery.noConflict.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/vmsite.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/facebox.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/vmprices.js">
<script type="text/javascript" src="http://www.teste.dezainedeparede.com/templates/gk_bikestore/js/gk.scripts.js">
<script type="text/javascript" src="http://www.teste.dezainedeparede.com/templates/gk_bikestore/js/gk.menu.js">
<script type="text/javascript" src="http://www.teste.dezainedeparede.com/modules/mod_cf_filtering/assets/general.js">
<script type="text/javascript" src="http://www.teste.dezainedeparede.com/modules/mod_cf_filtering/assets/slider.js">

Use firebug to examine your site code and styling .. also for checking js conflicts ...
http://forum.virtuemart.net/index.php?topic=102850.0

Javascript conflicts:
http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
http://dev.virtuemart.net/projects/virtuemart/wiki/JavascriptCSS_Template_Overrides_and_Avoiding_Conflicts_between_Libraries

Regards
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: Dezaine studio on December 11, 2012, 13:36:40 PM
I've disable the template, erased some components and modules, and the plugin now adds to cart, but doesn't change the price according dimension.
What could be wrong now?

http://www.teste.dezainedeparede.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=2082&virtuemart_category_id=78&Itemid=645&lang=pt

Thank you
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: bytelord on December 11, 2012, 13:48:07 PM
Hi,

You are still jquery twice.

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js">
<script type="text/javascript" src="/components/com_k2/js/k2.js">
<script type="text/javascript" src="http://www.teste.dezainedeparede.com/components/com_k2store/js/k2store.js">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/jquery.noConflict.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/vmsite.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/facebox.js">
<script type="text/javascript" src="/components/com_virtuemart/assets/js/vmprices.js">

One using k2 component and one from vm2 component

For how the plugin working please contact the Milbo (he haves created) and read carefully the documentation comes with it.

Regards
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: Dezaine studio on December 11, 2012, 14:12:17 PM
Ok thank you, i'll try with the support from the plugin creator.
Regards
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: bytelord on December 11, 2012, 14:21:35 PM
First try to unload one instance from jquery...
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: Milbo on December 23, 2012, 13:59:30 PM
Btw, the plugin developer is the same as the main vm core developer, me. Thanks :-)
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: Dezaine studio on December 29, 2012, 21:27:42 PM
I've disable the K2 shop component, and now it works fine.
Yupii ; )
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: Dezaine studio on December 30, 2012, 21:06:51 PM
Can you help to set it like this previous user explained?
My site selld wallpaper prints in various kinds if materials, with various prices by Square Meter.

Example:
a – width
b – length
c – product price
d – extra option price - custom field cart attribute

It works this way now:
[ (a*b*c) ] + d

but I want it to work this way:
[ (a*b)*(c+d) ]
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: ralphm71 on February 01, 2013, 23:00:38 PM
Quote from: Dezaine studio on December 30, 2012, 21:06:51 PM
Can you help to set it like this previous user explained?
My site selld wallpaper prints in various kinds if materials, with various prices by Square Meter.

Example:
a – width
b – length
c – product price
d – extra option price - custom field cart attribute

It works this way now:
[ (a*b*c) ] + d

but I want it to work this way:
[ (a*b)*(c+d) ]

Hi did you get a fix with this?
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: Dezaine studio on March 07, 2013, 13:18:30 PM
Not quite, can you give a hint about waht to change on the plugin code?
regards
pedro
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: zayac_karina on July 06, 2013, 04:37:44 AM
Hi! I 've the same problem.
I need this formula for calculation
(a*b*c)
c-sales price,
what i get now is (a*b*d)+c, which is totally wrong in my case.
d-plug-in price.
Joomla 2.5 VM 2.0.20
Thanks!
Title: Re: Custom Size + custom field - qty x [ (width x length) x (price+extras) ]
Post by: rinopiponte on May 16, 2015, 23:35:39 PM
You can always try our extension.
Price is calculated using users input for width and length, besides, you can set maximum and minimum width and set a minimum pricing rate.
Here is the link
http://design-it.es/diseno-web-extensiones/your-size-custom-size-virtuemart-detail (http://design-it.es/diseno-web-extensiones/your-size-custom-size-virtuemart-detail)
and here is a demo
http://design-it.es/lienzo-detail (http://design-it.es/lienzo-detail)