test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • hanti Friend
    #201547

    Hi,
    I installed JA Hawkstore quickstart and am trying to set up Custom fields to display on individual product pages – these custom fields are set up correctly, but are NOT displaying on product pages.

    The code on the forum you post us a solution does not work. What else should I do?

    Please help me!

    Saguaros Moderator
    #550565

    Hi hanti,

    Could you send me the URL of product page where you want to show the custom fields? I will check it for you.

    Also go to template manager and turn OFF ‘Optimize CSS’ option.

    hanti Friend
    #550586

    Hi Saguaros,
    I have PM’d you admin and FTP access.

    Thanks for your help!

    Saguaros Moderator
    #550723

    I just made changes in this css file: /templates/ja_hawkstore/css/themes/yellow/vmsite-ltr.css

    On line 177:


    .addtocart-area .product-fields {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: #000
    bottom: 500%;
    left: 0;
    padding: 20px;
    position: absolute;
    text-align: left;
    margin: 0 20px;
    opacity: 0;
    filter: alpha(opacity=0);
    display: none;
    -webkit-transition: all 0.4s ease-out 0.2s;
    -moz-transition: all 0.4s ease-out 0.2s;
    -o-transition: all 0.4s ease-out 0.2s;
    transition: all 0.4s ease-out 0.2s;
    }

    pls change it to:


    .addtocart-area .product-fields {
    display: block;
    }

    – On line 375:


    .productdetails-view .addtocart-bar {
    margin: 20px 0 0;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5
    border-bottom: 1px solid #e5e5e5
    }

    change it to:


    .productdetails-view .addtocart-bar {
    margin: 20px 0 0;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5
    }

    The custom fields are showing now, kindly take a look.

    hanti Friend
    #550740

    Ok, thanks for your help!!

    But f I click “add to cart” in the page of a product with custom field I am taken to the cart page and the product is not added…

    Saguaros Moderator
    #550935

    Hi hanti,

    I spent lots of time to debug this issue and it seems that the error comes from the Custom stockable variants plugin of Virtuemart.

    I just edited the file: /plugins/vmcustom/stockable/stockable.php by replacing this code:
    [PHP]
    $(“.addtocart-bar”).append(‘<span class=”quantity-box”><input type=”text” class=”quantity-input js-recalculate” name=”quantity[]” value=”‘ + quantity + ‘” /></span><span class=”quantity-controls js-recalculate”><input type=”button” class=”quantity-controls quantity-plus” /><input type=”button” class=”quantity-controls quantity-minus” /></span><span class=”addtocart-button”><input type=”submit” name=”addtocart” class=”addtocart-button” value=”‘.JText::_(‘COM_VIRTUEMART_CART_ADD_TO’).'” title=”‘.JText::_(‘COM_VIRTUEMART_CART_ADD_TO’).'” /></span><div class=”clear”></div>’);
    Virtuemart.product($(“form.product”));
    [/PHP]

    With:
    [PHP]
    $(“.addtocart-bar”).append(‘<span class=”quantity-box”><input type=”text” class=”quantity-input js-recalculate” name=”quantity[]” value=”‘ + quantity + ‘” /></span><span class=”quantity-controls js-recalculate”><input type=”button” class=”quantity-controls quantity-plus” /><input type=”button” class=”quantity-controls quantity-minus” /></span><span class=”addtocart-button”><input type=”submit” name=”addtocart” class=”ja-addtocart-button” value=”‘.JText::_(‘COM_VIRTUEMART_CART_ADD_TO’).'” title=”‘.JText::_(‘COM_VIRTUEMART_CART_ADD_TO’).'” /></span><div class=”clear”></div>’);
    javmaddcart();
    [/PHP]

    I also backup the old file so that you can see the difference. Kindly take a look and let me know if this helps.

    Best

    hanti Friend
    #551800

    Perfect! I think it goes well!

    Thank you very much Saguaros 🙂

    Saguaros Moderator
    #551969

    Glad it helped 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 2 voices, and was last updated by  Saguaros 10 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum