Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Product linking issue

  1. #11
    stevenbhn is offline Junior Member
    Join Date
    Jun 2008
    Posts
    1

    Default

    any idea of the above problem solution?

  2. #12
    Bagi Zoltán's Avatar
    Bagi Zoltán is offline Boss Cart consultant
    Join Date
    Feb 2007
    Location
    Veszprém, Hungary
    Posts
    1,225

    Default

    I think that you see the decimals after saving a product at the admin interface. If i am right i have a tested solution for you.
    Please open /administrator/components/com_virtuemart/html/product.product_display.php file for editing and replace the code from 153rd line to 167th with this one
    PHP Code:
        <fieldset>
            <legend><strong><?php echo $dim_weight_label ?></strong></legend>
              
            <div class="formLabel"> <?php echo $VM_LANG->_PHPSHOP_PRODUCT_FORM_LENGTH ?>:</div>
            <div class="formField" > <?php echo round($db->f("product_length"),0) . " " $db->f("product_lwh_uom"); ?></div>
          
            <div class="formLabel"> <?php echo $VM_LANG->_PHPSHOP_PRODUCT_FORM_WIDTH ?>:</div>
            <div class="formField" > <?php echo round($db->f("product_width"),0) . " " $db->f("product_lwh_uom"); ?></div>
          
            <div class="formLabel"> <?php echo $VM_LANG->_PHPSHOP_PRODUCT_FORM_HEIGHT ?>:</div>
            <div class="formField"> <?php echo round($db->f("product_height"),0) . " " $db->f("product_lwh_uom"); ?></div>
            
            <div class="formLabel"> <?php echo $VM_LANG->_PHPSHOP_PRODUCT_FORM_WEIGHT ?>:</div>
            <div class="formField"><?php echo round($db->f("product_weight"),1) . " " $db->f("product_weight_uom"); ?></div>
        </fieldset>

  3. #13
    Join Date
    Jul 2008
    Location
    Lodnon, England
    Posts
    79

    Default

    mate

    you have javascript errors and that's gonna put people off.

    it seems you use mootools (EXCELLENT CHOICE! ) / slimbox but you've also added some pngfix shite that's not very compatible

    *edit* checked boss cart, it seems that it is provided alongside of the distribution of the software, nice!

    to bosscart devs:
    mootools 1.2 came out a while back and it is simply amazing


    anyway:

    http://www.propokerden.com/templates/js/iepng.js

    this:
    Code:
    window.attachEvent is not a function
    http://www.propokerden.com/templates/js/iepng.js
    Line 32
    
    32: window.attachEvent("onload", correctPNG);
    when mootools is being used, the window. is redefined/extened and events are added differently. rewrite this to:

    window.addEvent("domready", correctPNG);

    or even better,
    window.addEvent("domready, function() {
    correctPNG();
    // you can do other stuff on domready, for example, to avoid using http://www.propokerden.com/templates/js/top.js:
    new Element("a").injectTop(document.body).setProperty( "name", "top");
    });

    but really, you may want to look at unification of all your code to adhere to the same standards/namespaces

    here is a mootools compliant fix, provided by cnet's clientside: FixPNG » CNET Javascript Documentation

    in an ideal world, if you can do without png alpha channels, go with gif
    Last edited by Dimitar Christoff; 08-12-2008 at 02:18 PM.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124