-
AuthorPosts
-
September 23, 2014 at 6:39 pm #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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 24, 2014 at 3:39 am #550565Hi 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.
September 24, 2014 at 6:50 am #550586Hi Saguaros,
I have PM’d you admin and FTP access.Thanks for your help!
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 25, 2014 at 9:13 am #550723I 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.
September 25, 2014 at 11:12 am #550740Ok, 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 29, 2014 at 2:34 am #550935Hi 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
October 4, 2014 at 2:20 pm #551800Perfect! I think it goes well!
Thank you very much Saguaros 🙂
-
AuthorPosts
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