× Post here your all VirtueMart related problems.

Întrebare My cart doesn't update?

20 Iun 2010 11:18 #49 de iwindsurf

  • Fresh Boarder
  • Fresh Boarder

  • Postări: 2
  • Ai primit o mulțumire:

  • Gen: Necunoscut
  • Data nașterii: Necunoscut
  • Hi Webgobe
    Really like your hack and the way you support it!

    I am using Virtuemart 1.1.4 with Joomla 1.5.18

    I installed the basic version of the customattributesextendedwindow and have used the basic example as given in the txt file -
    Fenetre (window)(|)(350|350|1800|2100|10|2|200);

    although the cart is updated it doesn't seem to change the price and I get an error -
    Error: Width not in allowed limits, values entered for dimensions will be ignored, defaults will be used instead.
    even though I clearly enter a width in limits

    I am thinking that the javascript isn't working and that the values aren't being sent with the form but can't work out why...

    The test environment is at;
    www.foamonline2000.co.uk/index.php?page=...virtuemart&Itemid=53

    I would appreciate any insight !

    regards
    Simon

    Vă rugăm Autentificare sau Crează un cont să participaţi la discuţie.

    21 Iun 2010 03:30 #50 de webgobe

  • Administrator
  • Administrator

  • Postări: 153
  • Karma: 4
  • Ai primit o mulțumire: 8

  • Gen: Bărbat
  • Data nașterii: 18 Ian 1960
  • Replied by webgobe on topic My cart doesn't update?
    Aaaargh... Mynxx again...
    OK, here what I think you have:
    a. You don't use the default VM template, but part of the hacked files are modifyed files belonging to the default VM template. So, you need to examine the files in the /components/com_virtuemart/themes/default folder of the hack, see which of them are missing from the /components/com_virtuemart/themes/default folder and replicate the changes/copy the files to your template, in your case the /components/com_virtuemart/themes/vm_mynxx files. Be aware, that simply overwritting here the existing files won't work, so I recommend you, to copy only the missing files, and replicate by hand the changes to the rest of the files. Can be tricky, I know...
    b. You use Mynxx... that's a problem. I love RocketTheme templates - I have developer account with them - but I guess Mynxx is the buggies theme ever from what they released. So performing the tasks in point a. may still leave you with some problems, but the good news are that those can be handled.

    Vă rugăm Autentificare sau Crează un cont să participaţi la discuţie.

    21 Iun 2010 18:59 #51 de iwindsurf

  • Fresh Boarder
  • Fresh Boarder

  • Postări: 2
  • Ai primit o mulțumire:

  • Gen: Necunoscut
  • Data nașterii: Necunoscut
  • Replied by iwindsurf on topic My cart doesn't update?
    Thanks for the pointers & advice - I still need to look through those files to see whats missing.
    meanwhile I spent some time playing with the javascript and got it working - I changed your totalprice function to use the getElementById

    Meanwhile my real purpose was to extend your 2D version to 3D and add a depth component so that I can work out the price of a block given a unit price per cubic metre etc.

    my javascript now looks like this;
    function totalprice()
    		{
    		var pricecbm = $price
    		if(document.getElementById('".$field['attr_pagevar']."_field1').value) 
    			a = document.getElementById('".$field['attr_pagevar']."_field1').value
    		else 
    			a = $default_block_width
    		if(document.getElementById('".$field['attr_pagevar']."_field2').value)
    			b = document.getElementById('".$field['attr_pagevar']."_field2').value
    		else 
    		    b = $default_block_height
    		if(document.getElementById('".$field['attr_pagevar']."_field3').value)
    			c = document.getElementById('".$field['attr_pagevar']."_field3').value
    		else 
    		    c = $default_block_depth
    		if(document.getElementById('".$field['attr_pagevar']."_field4').checked)
    			d = \"$with_rolo\"
    		else 
    		    d = \"\"
    		x = a * b * c /1000000 * pricecbm
    		y =  a+\"*\"+b+\"*\"+c
    		document.getElementById('".$field['attr_pagevar']."').value = y
    		document.getElementById('".$field['attr_pagevar']."_feedback').value = x
    		}

    I added an extra input field so that people can see what the new price is for the dimensions they enter...

    the extra html looks like this
    $html .= "<br /><input id=\"".$field['attr_pagevar']."_feedback\" name=\"".$field['attr_pagevar']."_feedback\" type=\"text\"  readonly=true />
    <input id=\"".$field['attr_pagevar']."\" name=\"".$field['attr_pagevar']."\" type=\"hidden\"  readonly=true />";

    the feedback field shows the dynamic price
    the other returns the values to the cart

    any ideas how to offer different substances the block is made of at different prices per unit volume and show a comparison?

    if not I'm happy with this result and can move forward...

    Thanks again for your effort and offering the downloads etc - very helpful

    :)

    Vă rugăm Autentificare sau Crează un cont să participaţi la discuţie.

    22 Iun 2010 06:11 #52 de webgobe

  • Administrator
  • Administrator

  • Postări: 153
  • Karma: 4
  • Ai primit o mulțumire: 8

  • Gen: Bărbat
  • Data nașterii: 18 Ian 1960
  • Replied by webgobe on topic My cart doesn't update?
    I'd like to test your mods - and eventually to include it in the download.
    For the other problem (substances and eventually price comparation) Look at the Pizza attribute I made, you will got some ideeas ;)

    Vă rugăm Autentificare sau Crează un cont să participaţi la discuţie.

    Recommendations

    I have had the pleasure of having Mr. Denes work on my project and apart from the fact that he is a web programming genius, he has a nice nature, hard working attitude and a positive attitude that will take him miles.

    Vabhav Jain
    Computer Software Consultant and Professional
    October 26, 2005

    Joomla Security

    Do you need a helping hand to keep your Joomla site in top shape?

    You need someone to keep your site safe? If you want to know, what we can do for you, here is a short list:

    • We are performing a security audit - and we repeating this regularly
    • We are appliying all upgrades to the site as needed
    • We are adding our mix of security tools, settings and patches
    • We are setting up a backup procedure to ensure, that your data is safe
    • We are monitoring for uptime and unwanted activity
    • We are correcting any issues found
    • We are supporting all current and upcoming Joomla versions

    Sit back and relax - we are doing the mundane work for you!

    You only need to get your portion of Joomla Security Update today!

     

    Forum

    Forum Statistics

    • Total utilizatori:14.79k
    • Ultimul membru:vascoo1
    • Total mesaje:336
    • Total subiecte:78
    • Secţiuni totale:2
    • Total categorii:16
    • Deschis astăzi:0
    • Deschis ieri:0
    • Răspuns astăzi:0
    • Răspuns ieri:0

    Act de renunțare

    webGóbé și acest site nu este afiliat sau aprobat de Joomla! Project™. Toate produsele și serviciile furnizate prin intermediul acestui site nu sunt suportate sau garantate de The Joomla! Proiect sau de Open Source Matters, Inc. Utilizarea numelui, simbolului, siglei și mărcilor asociate Joomla! ® este permisă în baza unei licențe limitate acordată de Open Source Matters, Inc.

    Toate articolele descărcate în aceste pagini sunt fișiere zip care nu conțin programe malware, adware sau alte tipuri de conținut periculos. Acestea sunt menite să fie utilizate ca extensii de Joomla CMS și nu instalați sau modificați nimic pe computer. Informații speciale despre instalare / dezinstalare - dacă este diferită de procedura standard de instalare / dezinstalare a extensiei Joomla - sunt conținute în fiecare pachet - și sunt disponibile pe pagina de descărcare înainte de a face clic pe butonul Descărcare.

    URL: http://www.webgobe.com/ro/forum/virtuemart-hacks/49-my-cart-doesn-t-update.html

    Sign In or Create Account

    URL: http://www.webgobe.com/ro/forum/modules/331-similar-tags-with-introtext-and-images-module-and-image-from-helix-ultimate.html