× Post here your all VirtueMart related problems.

Question My cart doesn't update?

20 Jun 2010 11:18 #49 by iwindsurf

  • New Member
  • New Member

  • Posts: 2
  • Thank you received:

  • Gender: Unknown
  • Birthdate: Unknown
  • 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;

    I would appreciate any insight !


    Please Log in or Create an account to join the conversation.

    21 Jun 2010 03:30 #50 by webgobe

  • Administrator
  • Administrator

  • Posts: 154
  • Thank you received: 8

  • Gender: Male
  • Birthdate: 18 Jan 1960
  • Replied by webgobe on topic Re: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.

    Please Log in or Create an account to join the conversation.

    21 Jun 2010 18:59 #51 by iwindsurf

  • New Member
  • New Member

  • Posts: 2
  • Thank you received:

  • Gender: Unknown
  • Birthdate: Unknown
  • 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
    			a = document.getElementById('".$field['attr_pagevar']."_field1').value
    			a = $default_block_width
    			b = document.getElementById('".$field['attr_pagevar']."_field2').value
    		    b = $default_block_height
    			c = document.getElementById('".$field['attr_pagevar']."_field3').value
    		    c = $default_block_depth
    			d = \"$with_rolo\"
    		    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


    Please Log in or Create an account to join the conversation.

    22 Jun 2010 06:11 #52 by webgobe

  • Administrator
  • Administrator

  • Posts: 154
  • Thank you received: 8

  • Gender: Male
  • Birthdate: 18 Jan 1960
  • Replied by webgobe on topic Re: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 ;)

    Please Log in or Create an account to join the conversation.

    Successful websites evolve. Even when that spiffy new site is up and drawing traffic, the job is not complete. There’s always website maintenance service work to be done for SEO, performance and security.

    The reality of websites is that somebody needs to look after them on an ongoing basis.

    Forum Search



    Denes is a shining star in the otherwise dark and untalented world of Freelance Programmers. I run a successful Website Development Company and I hired Denes to help me finish a complex and multi-faceted online shopping website. Not only did he complete the tasks set for him, but went above and beyond the brief to create a workable bug free highly commented product which my client is ecstatically happy with. Denes is set to become one of my staple programmers who I can call on to fix problems quickly, efficiently and without the bulls*%t that goes with most programmers. Unlike those who talk the talk but don't walk the walk, Denes gets in there, and struts his stuff. A true consummate professional for whom I have the greatest respect. Thanks for saving my project, Denes, you are a Legend!

    Adam Wydeman
    Projects Associate at Charlies Garage Media Agency Pty Ltd
    July 29, 2009

    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 Statistics

    • Total Users:15.15k
    • Latest Member:FRIK
    • Total Posts:336
    • Total Topics:79
    • Total Sections:2
    • Total Categories:17
    • Today Open:0
    • Yesterday Open:0
    • Today Answer:0
    • Yesterday Answer:0


    webGóbé and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.

    All downloadable items in these pages are zip files containing no malware, adware or any other potentially dangerous content. They are meant to be used as extensions of Joomla CMS, and don't install or modify anything on your computer. Special install/uninstall info - if is different from standard Joomla extension install/uninstall procedure - is contained in each package - and available in the download page prior you click on the Download button.

    Joomla Registered Provider

    Joomla Registered Provider - Extensions Development, Security Services, Tehnical Support

    Expert SEO Services by Houts Graphics

    For additional local NJ Limousine Service New Jersey Limo Service visit nycairportslimo. If you are looking for Remote PC Help then read the info .

    Benefit from fantastic savings on UK betting sites , just by taking a look at https://bet1015.com It is so pleasant to work with experts. Visit this page to find out more regarding dentist Melbourne.

    Sign In or Create Account