Forum Replies Created
-
AuthorPosts
-
cwhlin
MemberSorry.. I don’t think I was clear. I want to change “Add to Cart” link to “Download” (product download link). How do I do that?
cwhlin
MemberNo worries. I modified the Themevan Shortcode product grid as follows so that the free badge will show up when the sales price is 0 (and not just when the product price is 0).
$sale_price = get_post_meta($post->ID, ‘edd_sale_price’, true);
$preview=esc_attr(get_post_meta($post->ID, “_dgwork_preview_url”, true));
$short_description=esc_attr(get_post_meta($post->ID, “_dgwork_short_description”, true));
if (!empty($sale_price)){
$price = $sale_price;
}
else{$price=esc_attr(get_post_meta($post->ID, “edd_price”, true));}if($price == 0){
$freelabel = ‘<div class=”freeLabel”>’.esc_attr__(‘Free!’,’tvms’).'</div>’;
}else{
$freelabel = ”;
}I do have another quick question. Currently the two buttons (when hovering over the featured image) in the product grid shows Details and Add to Cart). What’s the href link if I would like the Add to Cart change the link to Download? Thank you!
<i class=”fa fa-eye”></i>’.esc_attr__(‘Details’,’tmvs’).’
ID.'” class=”button add_to_cart”><i class=”fa fa-shopping-cart”></i> ‘.esc_attr__(‘Buy Now’,’tmvs’).’cwhlin
MemberThis issue has been resolved.
cwhlin
MemberThis issue has been resolved.
cwhlin
Member1. THemevan shortcodes working in Visual Composer. Thank you.
2. I meant I modified the template for product grid slightly so that the free badge would also show up when I use the EDD Sale Price plugin and set the sale price to $0. Example — http://www.littlechinesereaders.com/books/
3. I had to turn off BWP Minify because it breaks the post/page templates. I guess I will see if I can minify the CSS/JV manually.Thank you for everything! You’ve been a great support.
cwhlin
MemberNo. I moved the site and installed everything anew but still cannot see themevan shortcodes with visual composer. I can use the shortcodes directly, just cannot see them in visual composer (which I believe just updated also.. maybe that’s the problem)?
If I may give a small suggestion, I also use the plugin EDD Sale Price to show items are on-sale. It would be cool if the FREE badge would also show up if the sale price is $0 (I tried changing the template, but haven’t figured out a solution because I think the sale price, if left empty, is read as equal to 0).
cwhlin
MemberI take it back… the new themevan-shortcodes crashed my site (I had to move my site because the previous one also crashed)…
cwhlin
MemberWorks perfectly now. Thanks!
cwhlin
MemberThank you!
cwhlin
MemberYes, that’s what I want (to have the option to place the product header subtitle inserted between title and description). Thanks.
-
AuthorPosts