Forum Replies Created

Viewing 10 posts - 1 through 10 (of 23 total)
  • Author
    Posts
  • in reply to: Optimizing CSS/Javascript #11020
    cwhlin
    Member

    Sorry.. 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?

    in reply to: Optimizing CSS/Javascript #10997
    cwhlin
    Member

    No 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’).’

    in reply to: Add "add to cart" button at shop page #10963
    cwhlin
    Member

    This issue has been resolved.

    in reply to: Mobile "cart" link not working #10962
    cwhlin
    Member

    This issue has been resolved.

    in reply to: Optimizing CSS/Javascript #10961
    cwhlin
    Member

    1. 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.

    in reply to: Optimizing CSS/Javascript #10958
    cwhlin
    Member

    No. 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).

    in reply to: Optimizing CSS/Javascript #10953
    cwhlin
    Member

    I take it back… the new themevan-shortcodes crashed my site (I had to move my site because the previous one also crashed)…

    in reply to: Optimizing CSS/Javascript #10952
    cwhlin
    Member

    Works perfectly now. Thanks!

    in reply to: Product Grid Order Change #10951
    cwhlin
    Member

    Thank you!

    in reply to: Product Grid Order Change #10945
    cwhlin
    Member

    Yes, that’s what I want (to have the option to place the product header subtitle inserted between title and description). Thanks.

Viewing 10 posts - 1 through 10 (of 23 total)