Custom Size + custom field - qty x [ (width x length) x (price+extras) ]

Started by easy, July 27, 2012, 13:59:45 PM

Previous topic - Next topic

easy

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


easy

thanks for the link, did I miss something?
I am using this plugin.

easy

Any idea guys?

still waiting for plugin developer response ...

I'll appreciate all your suggestions and advices

easy

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!

Dezaine studio

Hi, i really need the same solution for the same problem, could you share your sollution?
Thank you

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Dezaine studio

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


bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Dezaine studio

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

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Dezaine studio

Ok thank you, i'll try with the support from the plugin creator.
Regards

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Milbo

Btw, the plugin developer is the same as the main vm core developer, me. Thanks :-)
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Dezaine studio

I've disable the K2 shop component, and now it works fine.
Yupii ; )